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

For example, the vifm panel is open in a directory containing 100 files. After searching for the filename *foo*, I get three matches displayed in the menu:
a_foo.txt
e_foo.txt
i_foo.txt

I press b to import the three files into the custom view. Then, I want to grep them with :grep -i bar

However, I notice that grep runs on all 100 files instead of just the three selected in the custom view. Does vifm have a specific reason for behaving this way?

1 Answer

+1 vote
by

:grep does the same regardless of the kind of a view you're in: searches in the current directory. If you want to search in files of the view instead, use % for the range:

:%grep -i bar
by

great ! Thank you so much

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.
...