deadpixi / mtm

Perhaps the smallest useful terminal multiplexer in the world.
1.12k stars 53 forks source link

`ALT-<KEY>` commands for VI-style navigation (`ALT-<H/J/K/L>`) #76

Open leighleighleigh opened 9 months ago

leighleighleigh commented 9 months ago

This PR adds ALT-key-combo commands, as an alternative to the default CTRL-G command-mode shortcut. This was done mostly out of personal preference - they require less keystrokes to activate (and more ergonomic, imo).

So far I've added the following 'alternate' commands:

Additional handling for ESCAPE keys was also added. This is because ESC and ALT are hard to distinguish. These changes improve the responsiveness of pressing ESC, e.g, while using vim.

I'm not super familiar with this code base, but it doesn't seem to have broken anything in my (albeit light) usage :)