rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

gnvim not working in zsh environment #275

Open ray-x opened 8 years ago

ray-x commented 8 years ago

when I type "gnvim filename", the file wont be open with neovim. An empty file open instead.

Need to change the gnvim to : open -a Neovim --args --cwd "$PWD" "$@" to make it work

rogual commented 8 years ago

Still happening? I did merge some gnvim changes recently. If it is, and you can do a PR, I'd happily merge it.

JackCA commented 8 years ago

Just ran into this as well off of current head

Viraj3f commented 8 years ago

Having this issue as well. Can confirm that @ray-x's solution works properly.

bambu commented 7 years ago

I just tried this and experienced the same issue. Does it work if you change the mode line in gnvim from old to new or if you pass an argument to gnvim starting with a -? That seems to have resolved it for me. The line to change can be found at:

https://github.com/rogual/neovim-dot-app/blob/master/gnvim#L10

@rogual why is there an old / new mode?

bobzoller commented 7 years ago

same in bash as well, FWIW. OSX 10.11.3

rogual commented 7 years ago

@bambu The old/new thing is part of “option detection” — there's a short overview in the commit message of https://github.com/rogual/neovim-dot-app/commit/ad28e52ca76d57f63e41959d00c14451965082bf

In general, I tend to put a lot of architectual “why”s in commit messages rather than comments, so if something flummoxes you, it's always worth checking the blame view :)

In this case, old and new are short for “use old instance if present” and “start a new instance”. Naming could be better I guess.