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

Support number mapping #8796

Closed
abiriadev opened this issue Nov 12, 2023 · 1 comment
Closed

Support number mapping #8796

abiriadev opened this issue Nov 12, 2023 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@abiriadev
Copy link

The problem

In Vim, I used to map 8 and 9(which are too big numbers to repeat a single command in 99% of cases) to 10j and 10k, respectively, to quickly move the cursor.

What I tried

[keys.normal]
"8" = [
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
  "move_visual_line_down",
]
"9" = [
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
  "move_visual_line_up",
]

Expected result

It should work like Vim.
Or at least, it should show a warning message that it won't support number mapping.

Actual result

The editor starts without any error message, and the mappings are completely ignored.

Do you have any plans to support this feature? (I know this is not a common use case)

Regards.

@abiriadev abiriadev added the C-enhancement Category: Improvements label Nov 12, 2023
@pascalkuthe
Copy link
Member

duplicate of #8113

Generally this seems really niche to me (why not just type 10j/10k) and don't really have an interest in this. If somebody implements a fix that does not regress any existing functionality and is small/easy to review and well implemented I wouldn't be opposed

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants