lib/sup/modes/search-results-mode.rb in sup-0.4 vs lib/sup/modes/search-results-mode.rb in sup-0.5
- old
+ new
@@ -7,16 +7,16 @@
super [], { :qobj => @qobj }.merge(@qopts)
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, @qopts
+ SearchResultsMode.spawn_from_query query
end
## a proper is_relevant? method requires some way of asking ferret
## if an in-memory object satisfies a query. i'm not sure how to do
## that yet. in the worst case i can make an in-memory index, add