tig icon indicating copy to clipboard operation
tig copied to clipboard

key binding @ in vim.tigrc not working

Open liming01 opened this issue 3 years ago • 1 comments

The key binding @ in contrib/vim.tigrc is not working,

bind generic @  none
bind generic @j :/^@@
bind generic @k :?^@@
bind generic @- :toggle diff-context -1
bind generic @+ :toggle diff-context +1

because the default config tigrc is

bind stage	@	:/^@@			# Jump to next (c)hunk
bind stage	[	:toggle diff-context -1	# Decrease the diff context
bind stage	]	:toggle diff-context +1	# Increase the diff context
bind diff	@	:/^@@			# Jump to next (c)hunk
bind diff	[	:toggle diff-context -1	# Decrease the diff context
bind diff	]	:toggle diff-context +1	# Increase the diff context
bind pager	@	:/^@@			# Jump to next (c)hunk

The unbind statement can not work because generic can not overwrite the stage&diff&pager.

If not working, please remove them in contrib/vim.tigrc. Thanks.

liming01 avatar Jul 19 '22 03:07 liming01

Easily fixed with:

bind diff  @ none
bind stage @ none
bind pager @ none

instead of:

bind generic @ none

Daghall avatar Jul 24 '22 13:07 Daghall