Score:2

File manager - jump to file/folder by line number

gb flag

Is there any file manager that shows a number (similar to line number in vim) for each folder/files in the current directory and you can jump to any folder/file by typing the corresponding number with an action, just like vim?

When dealing with long list of files and folders in a file manager, moving up and down to get to the right file/folder takes time and there must be a better way.

Using commandline would be faster, but still takes time especially if you want to pick a file with long name and lots of other similar filenames in the same directory.

Score:3
cn flag

Yes, there's a file manager that's just like vim, vifm. To quote its manpage:

Vifm is an ncurses based file manager with vi like keybindings. If you use vi, vifm gives you complete keyboard control over your files without having to learn a new set of commands.

You can install it with:

sudo apt install vifm

After the command :set nu (which you can set as a default in a ~/.config/vifm/vifmrc file) it shows line numbers, allowing you to jump to any file with the G or gg commands just like in vim.

NESHOM avatar
gb flag
Is there a way to also run command on the files by just entering their number?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.