tig icon indicating copy to clipboard operation
tig copied to clipboard

Truly remove any binds from key?

Open Artalus opened this issue 7 years ago • 2 comments

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.

Artalus avatar Apr 21 '18 10:04 Artalus

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.

jonas avatar May 18 '18 21:05 jonas

+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.

wsakernel avatar Jun 06 '20 10:06 wsakernel