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
ago in vifm by

In Vifm source code, I activated the quick view in the build-aux/ directory by pressing w. The result is:

As shown at the end of the output, there is one directory and 13 files.

Doing the same on the directory data/ produces:

The output is much longer and it is not possible to see the number of directories and files at the end.

Is it possible to scroll through the output, as with e?

If not, could the sentence containing the number of directories and files be moved to the top, so that it provides a quick summary?

1 Answer

0 votes
ago by

You can do as shown here:

nnoremap <silent> <PageDown>  <C-w>w5j<C-w>w
nnoremap <silent> <PageUp>    <C-w>w5k<C-w>w

It works by switching into preview window (similarl to e), scrolling it, and then switching back.

If not, could the sentence containing the number of directories and files be moved to the top, so that it provides a quick summary?

This can be done as well, but at the cost of traversing directory tree to collect the statistics:

set previewoptions+=toptreestats
...