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

[Request] Ctrl-n to Down, Ctrl-p to Up #121

Open
mindgitrwx opened this issue Apr 21, 2023 · 0 comments
Open

[Request] Ctrl-n to Down, Ctrl-p to Up #121

mindgitrwx opened this issue Apr 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mindgitrwx
Copy link

Is your feature request related to a problem? Please describe.
screenshot 2023-04-17 at 11 24 26 PM

I would like to add functionality to toggle up or down using the Ctrl-n or Ctrl-p keys.

Describe the solution you'd like

type KeyAlias = {
  key: string;
  ctrl: boolean;
};

const aliases = new Map<string | KeyAlias, string>([
  ['k', 'up'],
  ['j', 'down'],
  ['h', 'left'],
  ['l', 'right'],
  [{ key: 'n', ctrl: true }, 'down'],
  [{ key: 'p', ctrl: true }, 'up'],
]);

I believe this code is functioning correctly.

Additional context
The Mac operating system universally employs this type of method for moving.

@mindgitrwx mindgitrwx added the enhancement New feature or request label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant