prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.52k stars 160 forks source link

keybinding configuration -- global view -- conflict resolution #104

Open luffah opened 6 years ago

luffah commented 6 years ago

hello, just adding in wishlist, an idea like a bottle in the sea.

Using decorator for defining keybinding make difficult to abstract keybind from function and globally to see keybinds.

A consequence of that, is that, for a people like me which use almost 160 keybinds and aliases, it becomes difficult to customize/organise the behavior to match ergonomic/UX issues.

I use a personnal format in vim, which is not the best but still really usefull to remember custom keybinds and macros.

" keybind(s)    comment                 action    modes
<A-c>           "Set tmp mark"           m`      %  I n
<A-v>           "Select from tmp mark"   v``     %  I n

The idea is that it could be nice to have a format definition allowing to easily remember and organizing keybinds.