]> git.cworth.org Git - sup/commitdiff
tweak Refine Search keybinding
authorChristopher Warrington <chrisw@rice.edu>
Sun, 3 Feb 2008 03:49:19 +0000 (21:49 -0600)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 3 Feb 2008 05:06:54 +0000 (21:06 -0800)
Refine Search is now bound to |. On most standard 104-key keyboards,
this appears to be shifted \, which fits in nicely since \ is global
search now.

lib/sup/modes/search-results-mode.rb

index a03f0a2b7b8e551f28ead9c288b9e4de9883988e..6fdc58a0c9da1f0df907ce8e29d786a36db9b4d7 100755 (executable)
@@ -9,11 +9,11 @@ class SearchResultsMode < ThreadIndexMode
   end
 
   register_keymap do |k|
-    k.add :refine_search, "Refine search", '.'
+    k.add :refine_search, "Refine search", '|'
   end
 
   def refine_search
-    query = BufferManager.ask :search, "query: ", (@qobj.to_s + " ")
+    query = BufferManager.ask :search, "refine query: ", (@qobj.to_s + " ")
     return unless query && query !~ /^\s*$/
     SearchResultsMode.spawn_from_query query
   end