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

Allow numbers as second input event #8113

Closed
areux opened this issue Aug 30, 2023 · 0 comments · Fixed by #8471
Closed

Allow numbers as second input event #8113

areux opened this issue Aug 30, 2023 · 0 comments · Fixed by #8471
Labels
A-keymap Area: Keymap and keybindings C-enhancement Category: Improvements

Comments

@areux
Copy link
Contributor

areux commented Aug 30, 2023

I'm a long time emacs user and I'm used to split window with C-x 3 (vertical) and C-x 2 (horizontal).
Right now this config doesn't work:

"C-x" = { "3" = "vsplit", "2" = "hsplit", "0" = "wclose" }

this is my setup for neovim:

local map = function(mode, key, cmd, opts)
  vim.api.nvim_set_keymap(mode, key, cmd, opts or { noremap = true, silent = true })
end
map('n', '<C-x>0', '<C-w>q')
map('n', '<C-x>2', '<C-w>s')
map('n', '<C-x>3', '<C-w>v')

I know numbers are reserved for movements but being inspired by vim, I can't see why helix shouldn't be able to do the same.

@areux areux added the C-enhancement Category: Improvements label Aug 30, 2023
@pascalkuthe pascalkuthe added the A-keymap Area: Keymap and keybindings label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-keymap Area: Keymap and keybindings C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants