Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leighleighleigh
Copy link

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:

  • ALT-<K/J/H/L>, change focus UP/DOWN/LEFT/RIGHT between windows
  • ALT-O, move focus to the previously active window

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant