clack
clack copied to clipboard
[Request] Ctrl-n to Down, Ctrl-p to Up
Is your feature request related to a problem? Please describe.

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.