Keybinding to open external application #6790
-
What Operating System(s) are you running on?macOS Which Wayland compositor or X11 Window manager(s) are you using?No response WezTerm version20240203-110809-5046fc22 Ask your question!I am trying to make WezTerm behave similar to other application on MacOS where Without a keybinding the command I am trying to run is This is what I have to get the keybinding working in vim, what would it take to make this work with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Simply use background_child_process in a custom action. https://wezterm.org/config/lua/wezterm/background_child_process.html?h=back local wezterm = require 'wezterm'
return {
keys = {
{
mods = 'CTRL|SHIFT',
key = 'm',
action = wezterm.action_callback(function(win, pane)
wezterm.background_child_process {
'edit',
'~/.wezterm.lua'
}
end),
},
},
} Edit for inclusion into your config. |
Beta Was this translation helpful? Give feedback.
@ian-rose
Simply use background_child_process in a custom action.
https://wezterm.org/config/lua/wezterm/background_child_process.html?h=back
Edit for inclusion into your config.