-
|
I am using ranger as my file manager and ranger can open files directly and if the app to open it is a terminal based one, like say nvim, then it opens it in the same window and upon closing the window it goes back to the ranger screen. What I want to do is open a file from ranger in a new tab. From what I have gathered, it is a terminal based options which sends the command to a new window. The default options to open a text file in ranger is defined in the config file as follows - which can be changed to the following for termite (from https://superuser.com/questions/1388604/ranger-open-with-vim-in-new-windo) How can I achieve the same in wezterm? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Take a look at: https://wezfurlong.org/wezterm/cli/cli/spawn.html |
Beta Was this translation helpful? Give feedback.
Thanks @wez, I seem to have gotten it to work.
Worked -
mime ^text, label editor = wezterm cli spawn -- nvim -- "$@"Didn't work -
mime ^text, label editor = wezterm cli spawn -- ${VISUAL:-$EDITOR} -- "$@"