TerminalOne icon indicating copy to clipboard operation
TerminalOne copied to clipboard

[Feature] More flexible keybinds

Open gplusplus314 opened this issue 1 year ago • 1 comments

I'm honestly really loving this terminal so far. It's shockingly good and fills the niche I happen to be part of: native Windows development while also having to cycle between Linux and Mac.

Feature Request

It would be nice to bind keys with and without leaders. In fact, I think this should be generalized to any arbitrary sequence of keys, similar to Vim keybinds. This would also open the door for other QOL enhancements, such as "which-key" types of menus often found in NeoVim configs.

One way to accomplish this from a configuration perspective could be something like this hypothetical config.js:

keybinds:  [
  { keys: ['leader', 'c'], action: 'createTab' },
  { keys: ['alt+w'], action: 'closeTab' },
]

Not a priority, but action could be generalized down the road to accept arbitrary JS functions, too. I'm not tied to this schema, I was just giving an example to illustrate the point.

gplusplus314 avatar Jan 16 '24 20:01 gplusplus314