Ji4n1ng / OpenInTerminal

✨ Finder Toolbar app for macOS to open the current directory in Terminal, iTerm, Hyper or Alacritty.
MIT License
5.88k stars 235 forks source link

Support for passing raw strings to `open -a` (for editor defaults) #201

Open 0rphee opened 10 months ago

0rphee commented 10 months ago

Summarize this feature

My editor of choice is helix. However, it is a terminal application, and thus, I cannot use it like I would use any other .app editor for OpenInEditor-Lite.

After a quick glance at the code it seems you use the open command to launch editors/terminals.

If OpenInEditor-Lite passed the raw editor defaults to the open command we would be able to do something like this: defaults write wang.jianing.app.OpenInEditor-Lite LiteDefaultEditor "kitty --args hx", and the path to the file to be edited is appended to the end.

Why should this feature be included?

This would make it easier to launch terminal-based editors like vim, neovim, kakoune, helix, etc, with OpenInEditor-Lite