Skip to content

Keybinding to open external application #6790

Answered by digitallyserviced
ian-rose asked this question in Q&A
Discussion options

You must be logged in to vote

@ian-rose

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ian-rose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants