tig
tig copied to clipboard
Truly remove any binds from key?
If you bind main q none and then bind generic q quit, in main view tig will prefer view-specific none over a generic not-none command.
To prevent the "XY problem" - I've encountered this while trying to bind <mode> <key> none for every key in every mode, in order to remove default bindings and setup my own.
The easiest way to remove all default bindings is probably to compile Tig with make NO_BUILTIN_TIGRC=y and remove, not load (export TIGRC_SYSTEM=/dev/null) or override the system tigrc.
+1. I need this feature for a use case described here https://github.com/jonas/tig/issues/483#issuecomment-215185424. An 'unbind' command sounds proper to me, especially if you can unbind a key for all views+generic with one command. The workaround mentioned there still works but does not scale if updated default keymaps introduce a new bind interfering with your custom one.