summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a483e5)
raw | patch | inline | side by side (parent: 9a483e5)
author | David Fries <david@fries.net> | |
Sat, 16 Jul 2011 16:59:45 +0000 (11:59 -0500) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 19 Jul 2011 14:31:29 +0000 (15:31 +0100) |
Use forward-slash or Control-S to bring up the search dialog.
In the blame view, Enter or 'n' jump to the next selected region while
Shift-Enter or Shift-n will jump to the previous selected region.
Within the search control, hitting Enter will now jump to the next matching
region.
Signed-off-by: David Fries <David@Fries.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
In the blame view, Enter or 'n' jump to the next selected region while
Shift-Enter or Shift-n will jump to the previous selected region.
Within the search control, hitting Enter will now jump to the next matching
region.
Signed-off-by: David Fries <David@Fries.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/blame.tcl | patch | blob | history | |
lib/search.tcl | patch | blob | history |
diff --git a/lib/blame.tcl b/lib/blame.tcl
index 14fde81761315aa67363fa549d78a56413f86069..bc81e29b4399a1fcb7d651d247528162229b4eda 100644 (file)
--- a/lib/blame.tcl
+++ b/lib/blame.tcl
bind $w_cviewer <Button-1> [list focus $w_cviewer]
bind $w_file <Visibility> [cb _focus_search $w_file]
bind $top <F7> [list searchbar::show $finder]
+ bind $top <Key-slash> [list searchbar::show $finder]
+ bind $top <Control-Key-s> [list searchbar::show $finder]
bind $top <Escape> [list searchbar::hide $finder]
bind $top <F3> [list searchbar::find_next $finder]
+ bind $top <Key-n> [list searchbar::find_next $finder]
bind $top <Shift-F3> [list searchbar::find_prev $finder]
+ bind $top <Shift-Key-n> [list searchbar::find_prev $finder]
bind $top <Control-Key-g> [list linebar::show $gotoline]
catch { bind $top <Shift-Key-XF86_Switch_VT_3> [list searchbar::find_prev $finder] }
diff --git a/lib/search.tcl b/lib/search.tcl
index 7fdbf87bcdcf3e6d5a928dd4ac8a323509ea7953..ef3486f083c74f7f5e5fe9af861818ed0d64e89c 100644 (file)
--- a/lib/search.tcl
+++ b/lib/search.tcl
grid remove $w
trace add variable searchstring write [cb _incrsearch_cb]
+ bind $w.ent <Return> [cb find_next]
+ bind $w.ent <Shift-Return> [cb find_prev]
bind $w <Destroy> [list delete_this $this]
return $this
}
}
-}
\ No newline at end of file
+}