Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtfo does not support opening terminal on MacOS not using open -a #54

Open
andrewferrier opened this issue Apr 1, 2020 · 1 comment
Labels

Comments

@andrewferrier
Copy link

It seems, inspecting the code (

silent call system("open -a ".shellescape(s:termpath)." ".shellescape(l:dir))
), that vim-gtfo always prepends open -a when running a terminal on MacOS. This does not always seem appropriate. For example, I am trying to use kitty (https://sw.kovidgoyal.net/kitty/) as my terminal, however there does not seem to be an option for it (using /Applications/kitty.app) to create a new window in an existing instance - this is only possible by directly using the kitty command in /Applications/kitty.app/Contents/MacOS/kitty. This seems reasonable, but vim-gtfo always expects a GUI-style application open using open -a instead.

It would be great to either remove that or (more likely, since backward-compatibility is likely needed) to support a new type of "OS" - e.g. "macos-noopen".

Happy to create a pull request if you agree.

@justinmk
Copy link
Owner

Thanks for the note/investigation. I think let g:gtfo#terminals needs to be reworked to be more flexible, probably accepting a lambda or something and not always prepending open ....

@justinmk justinmk added the bug label Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants