summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e100712)
raw | patch | inline | side by side (parent: e100712)
author | Paul Mackerras <paulus@samba.org> | |
Tue, 4 Apr 2006 23:39:51 +0000 (09:39 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Tue, 4 Apr 2006 23:39:51 +0000 (09:39 +1000) |
Suggested by Paul Schulz. I made it a separate entry under the Help
menu rather than putting it in the About box, though.
Signed-off-by: Paul Mackerras <paulus@samba.org>
menu rather than putting it in the About box, though.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 4bc7946aeef65f919f638cedcd0263874d8c11bd..472c12afcb27edcbd2d60c217ee8223374435e1a 100755 (executable)
--- a/gitk
+++ b/gitk
menu .bar.help
.bar add cascade -label "Help" -menu .bar.help
.bar.help add command -label "About gitk" -command about
+ .bar.help add command -label "Key bindings" -command keys
. configure -menu .bar
if {![info exists geometry(canv1)]} {
pack $w.ok -side bottom
}
+proc keys {} {
+ set w .keys
+ if {[winfo exists $w]} {
+ raise $w
+ return
+ }
+ toplevel $w
+ wm title $w "Gitk key bindings"
+ message $w.m -text {
+Gitk key bindings:
+
+<Ctrl-Q> Quit
+<Up>, p, i Move up one commit
+<Down>, n, k Move down one commit
+<Left>, z, j Go back in history list
+<Right>, x, l Go forward in history list
+<Page up> Scroll commit list up one page
+<Page down> Scroll commit list down one page
+<Delete>, b Scroll diff view up one page
+<Backspace> Scroll diff view up one page
+<Space> Scroll diff view down one page
+u Scroll diff view up 18 lines
+d Scroll diff view down 18 lines
+<Ctrl-F> Find
+<Ctrl-G> Move to next find hit
+<Ctrl-R> Move to previous find hit
+<Return> Move to next find hit
+/ Move to next find hit, or redo find
+? Move to previous find hit
+f Scroll diff view to next file
+<Ctrl-KP+> Increase font size
+<Ctrl-plus> Increase font size
+<Ctrl-KP-> Decrease font size
+<Ctrl-minus> Decrease font size
+} \
+ -justify left -bg white -border 2 -relief sunken
+ pack $w.m -side top -fill both
+ button $w.ok -text Close -command "destroy $w"
+ pack $w.ok -side bottom
+}
+
proc shortids {ids} {
set res {}
foreach id $ids {
showstuff $commitidx
set drawmsecs [expr {[clock clicks -milliseconds] - $startmsecs}]
- puts "overall $drawmsecs ms for $numcommits commits"
+ #puts "overall $drawmsecs ms for $numcommits commits"
}
proc findmatches {f} {