clack icon indicating copy to clipboard operation
clack copied to clipboard

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

Open mindgitrwx opened this issue 2 years ago • 0 comments

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 avatar Apr 21 '23 05:04 mindgitrwx