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

Hi, I've been using VIFM for some time now and I've found the programm so useful and efficient that I'd like to do some seminars or put some videos on YouTube to make it more widely available.

I downloaded the sources for version 13 from https://vifm.info/downloads.shtml

then I made

sudo apt-get install libncursesw5-dev

after having decompressed the sources I went to the vifm-0.13 folder where the INSTALL file can be found.

There I opened a terminal and did ./configure then make and finally make install and voila the program was compiled.

To open the program I went to the src folder and opened a terminal, after typing ./vifm the program was launched... I had to press ctrl-c to clear a small error which must be due to the PATH.

My question is as follows:

is it possible to use the :find function in VIFM - to search for files or directories - in upper or lower case - as in a Linux terminal ?

Here's an example of how to find all files containing the word width - case insensitive

find . -type f -iname "*width*"

result:

may I change something in ~/.config/vifm/vifmrc

thx

1 Answer

0 votes
by
selected by
 
Best answer

Hi, I've been using VIFM for some time now and I've found the programm so useful and efficient that I'd like to do some seminars or put some videos on YouTube to make it more widely available.

Hello,

More instructional videos will be useful. In case you haven't seen, there is a list of such videos on the Wiki.

is it possible to use the :find function in VIFM - to search for files or directories - in upper or lower case - as in a Linux terminal ?

Yes, use the second form of :find command:

:find -type f -iname "*width*"
by

@xaizek thank you very much for your answer.

Is it possible to make a shortcut command with:

ff (find file) for search files :find -type f -iname "*width*" - and after ff just type width (the word you want to search in the file name)

and

fd (find directories) for search directories :find -type d -iname "*width*" - but after ff just type width (the word you want to search in the directories names)

Nice Week-end

by

in ~/.config/vifm/vifmrc I add:

command! ff :find . -type f -iname "*%a*"

command! fd :find . -type d -iname "*%a*"

after restart VIFM

to invoke the command

:ff witdth

gives the result:

vifm-0.13/tests/column_view/width.c
vifm-0.13/tests/escape/get_char_width_esc.c
vifm-0.13/src/compat/wcwidth.c
vifm-0.13/src/compat/wcwidth.h

and

:fd engine

gives the result:

Yes, got it !

...