git gui 中是否有舞台台词的快捷键?
Is there a keyboard shortcut for stage lines in git gui?
标准 git gui, there are options to stage selected lines 或舞台帅哥。我发现自己经常使用这些选项,但每次我都必须右键单击,这在敏感的工作笔记本电脑触控板上可能很棘手。 'stage selected lines' 功能是否有键盘快捷键?
这是一个解决方案:
打开此文件:
c:/Program Files (x86)/Git/libexec/git-core/git-gui.tcl
添加以下内容:
bind . <$M1B-Key-d> stagelines
proc stagelines {} {
apply_or_revert_range_or_line %X %Y 0
# for older versions of git-gui, use this line instead:
#apply_range_or_line %X %Y
do_rescan
}
重启git-gui
现在您可以突出显示这些台词并按 CTRL-D 来设置它们。
标准 git gui, there are options to stage selected lines 或舞台帅哥。我发现自己经常使用这些选项,但每次我都必须右键单击,这在敏感的工作笔记本电脑触控板上可能很棘手。 'stage selected lines' 功能是否有键盘快捷键?
这是一个解决方案:
打开此文件:
c:/Program Files (x86)/Git/libexec/git-core/git-gui.tcl
添加以下内容:
bind . <$M1B-Key-d> stagelines
proc stagelines {} {
apply_or_revert_range_or_line %X %Y 0
# for older versions of git-gui, use this line instead:
#apply_range_or_line %X %Y
do_rescan
}
重启git-gui
现在您可以突出显示这些台词并按 CTRL-D 来设置它们。