Hi All,
I want to fire off MacVim with a keyword action and a shortcut for where to open MacVim, e.g.:
mvim d -> open MacVim in the folder ~/Downloads
mvim h -> open MacVim in the folder ~/
...
I wrote a case statement in bash like this:
MVIM=/usr/local/bin/mvim
case "{query}" in
"h")
cd ~/ && $MVIM
;;
"d")
cd ~/Downloads && $MVIM
;;
*)
echo "unknown directory specified"
;;
esac
And when I run (e.g., mvim d) it once works flawlessly. However, if I want to open a second window of MacVim by running e.g. 'mvim h' nothing happens until I close the first window. It feels like the calls are queued (or mvim is not detached from the shell and keeps the workflow open and blocks it).
Is this by design or could somebody give me a hint how to work around this?
Thanks in advance,
jochen