Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

I've been experimenting with fast navigation mode and it seems super useful, but I have a problem going to the next match when searching. Is there a key for this, or how can we setup one?

Here's the relevant part of the manual:

Fast navigation~

In order to streamline navigation through directory tree, you can enter a
special form of command-line mode from search or local filter prompt.  Once
activated, pressing Enter opens currently selected directory and clears the
prompt in anticipation of the next component of the path.  If entry under the
cursor is a file, it is opened and the mode is finished.

This behaviour is embedded in a command-line mode, but doesn't update input
histories nor expands abbreviations and redefines some of the mode's mappings
for the purpose of faster navigation through the file system rather than
command-line editing.  When on, prompt gets "nav" prefix.

You can enable this behaviour on search by default via a mapping like: >
    nnoremap / /<c-y>

Ctrl-Y                                         *vifm-c_CTRL-Y*
    enter navigation mode.  Works only for search and local filter started
    from a normal mode and only when |vifm-'incsearch'| is set
    (|vifm-'wrapscan'| is also nice to have set for search).

Ctrl-Y                                         *vifm-a_CTRL-Y*
    return to a regular command-line mode.

1 Answer

0 votes
by
 
Best answer

That's not available in v0.13, will be in v0.14. Here is a workaround you can use:

anoremap <silent> <tab> <c-y><esc>n/<c-p><c-y>
anoremap <silent> <s-tab> <c-y><esc>N/<c-p><c-y>
by

Works well thanks!

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...