The plugin with the following features:
-
Make all lines in a find-in-files result buffer double-clickable.
-
Bind
<enter>
to do the same thing, namely go to that line. (But also set the column, well ... just the complete selection.) -
Bind
,
and.
to go to the previous or next match staying in the result buffer. Just move the cursor ("navigate") around. Wraps at the edges but stays in the same search. [1]But you can also bind
fif_addon_prev_match
andfif_addon_next_match
on your own. -
Bind
F5
to refresh the view, t.i. redo the last search. Hm, 🤔, maybe we can change that and redo the search the cursor is currently in. But for now it is the last search in the buffer. -
Bind
+
and-
to change the number of context lines. For ease of use, hit-
repeatedly as a toggle between no context and your default, or if your default is no context between that and some context. -
If you reuse the result buffer (and it is a tab, not the panel thing at the bottom of the window), the tab moves with you so that closing the tab (aka
ctrl+w
) brings you to the view where you initiated the search. -
Re-bind
ctrl+shift+f
to immediately do the search if you have exactly one selection. Exclude untitled buffers in that case. (You can turn this off by setting"leave_my_keys_alone.FindInFiles-addon": true
in the user preferences.)
[1] You know, the result buffer can be re-used and then holds the results of multiple searches.