There are some issues with the way commands / mappings are setup currently.
Not every mapping is available as a command. This makes comprehensive key remapping via other means such as which-key difficult.
When mappings_disable_default is true, certain features fail to work because they rely explicitly on mappings being configured, for example when submitting a review via Octo review submithere I'm confronted with the error "attempt to index field 'approve_review' (a nil value)" due to the fact that these mappings don't exist.
I think the configuration could be made more ergonomic by creating a command for every feature, and then modifying mappings such that they always invoke a command.
This gives users maximum flexibility to customize their own mappings to their liking and prevents bugs like 2 above.
Issue Description
Type: feature request
Describe what happened (or what feature you want)
There are some issues with the way commands / mappings are setup currently.
which-key
difficult.mappings_disable_default
istrue
, certain features fail to work because they rely explicitly on mappings being configured, for example when submitting a review viaOcto review submit
here I'm confronted with the error "attempt to index field 'approve_review' (a nil value)" due to the fact that these mappings don't exist.I think the configuration could be made more ergonomic by creating a command for every feature, and then modifying mappings such that they always invoke a command.
This gives users maximum flexibility to customize their own mappings to their liking and prevents bugs like 2 above.