You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I say {key1, key2, key3...} I do not mean for them to be pressed simultaneously but instead to be able to press them one-after-another. That is, I want keynav to keep listening for key presses till it finds a matching key-sequence to which a command-sequence has been assigned.
(Remark: Of course the user has to take care to keep all key-sequences prefix-free. But this is similar to expecting the user to not use the same keybinding multiple times in their config file.)
keynav already implements this in a limited manner with grid-nav. When grid-nav is on, keynav waits for two key-presses before executing the corresponding cell-select command.
Why?:
Say, I would like to work on a 20x20 grid and want to assign custom key-bindings for cell-select-ing each of the 400 cells then, there are not enough keybindings for all the cells!
And the desired behavior is: When you enter a mode, the keybindings defined for that mode overrides the global keybindings.
Once again keynav already implements this in a limited manner with grid-nav. Well, grid-nav is like a mode. When grid_nav is on keynav ignores the keybindings in the keynavrc until one Escapes out of grid-nav mode.
Why?:
I would like to reuse same keybindings to do different things (like in vim) by some prefacing them with some mode or context. For example I would like my h,j,k,l to do different things depending on whether I am on grid size 3x3 versus on grid size 2x2.
The text was updated successfully, but these errors were encountered:
Feature-1: Sequence of Keys for keybinding
What?:
The current supported format in
keynavrc
is:However I want to do this:
When I say
{key1, key2, key3...}
I do not mean for them to be pressed simultaneously but instead to be able to press them one-after-another. That is, I wantkeynav
to keep listening for key presses till it finds a matching key-sequence to which a command-sequence has been assigned.(Remark: Of course the user has to take care to keep all key-sequences prefix-free. But this is similar to expecting the user to not use the same keybinding multiple times in their config file.)
keynav
already implements this in a limited manner withgrid-nav
. Whengrid-nav
is on,keynav
waits for two key-presses before executing the correspondingcell-select
command.Why?:
Say, I would like to work on a
20x20
grid and want to assign custom key-bindings forcell-select
-ing each of the 400 cells then, there are not enoughkeybindings
for all the cells!Feature-2: Modes
I also want to do something like this:
And the desired behavior is: When you enter a mode, the keybindings defined for that mode overrides the global keybindings.
Once again
keynav
already implements this in a limited manner withgrid-nav
. Well,grid-nav
is like a mode. Whengrid_nav
is onkeynav
ignores the keybindings in thekeynavrc
until oneEscape
s out ofgrid-nav
mode.Why?:
I would like to reuse same keybindings to do different things (like in
vim
) by some prefacing them with somemode
or context. For example I would like myh,j,k,l
to do different things depending on whether I am ongrid size 3x3
versus ongrid size 2x2
.The text was updated successfully, but these errors were encountered: