【发布时间】:2019-06-01 14:36:51
【问题描述】:
我正在尝试在 tig 中重新映射/绑定 G 以匹配所有 tig 键盘映射中的 vim 功能(移至最后一行)。
我阅读了 tigrc 手册页,这里是关于绑定到键盘映射的所有内容
Keymaps
Valid keymaps are: main, diff, log, help, pager, status, stage,
tree, blob, blame, refs, stash, grep and generic. Use generic to
set key mapping in all keymaps. Use search to define keys for
navigating search results during search.
这是目前有效的,但不是最佳或可取的:
bind main G move-last-line
bind help G move-last-line
bind grep G move-last-line
这是我期望的工作:
bind generic G move-last-line 或 bind main,help,grep G move-last-line
PS:我觉得这种类型的问题更适合unix堆栈交换,但是there's no tag for tig there yet,SO上也有类似的问题。
【问题讨论】: