Do you remember list.com? it was a program for the dos command prompt that listed the files in the current directory, allowed to view them and to browse the filesystem. It was a 16 bit application and unfortunately cannot be longer used on modern PCs.
But you can simulate it with vifm and less! Here’s how:
Use chocolatey, a package manager for windows that makes easy to install command line applications. After installing it run a command prompt as administrator and type
choco install vifm and
choco install less
In order to create the configuration file run once vifm and quit by typing “:q”
Go to C:\Users\<your user name>\AppData\Roaming\Vifm e open the vifmrc file in a editor. Replace the first line which is not a comment with:
set vicmd=less\ -C
At the end of the file add
map e :e<cr>
map q :q<cr>
map x :cq<cr>
map . za
map <space> <pagedown>
In this way if you exit from vifm by pressing the “q” key, you will be in the chosen directory.
If you exit with “x” instead, you will be in the beginning directory.
To make it more user friendly, you can create a batch file list.bat, that calls vifm, with these content
for /f "delims=" %%i in ('vifm --choose-dir - %1') do IF "%%i" NEQ "" (cd %%i)
and put it in a directory included in path, for instance C:/ProgramData/chocolatey/bin
Now you have the list command available in the command prompt!
the batch file does not work if the directory contains newline characters (\r or \n) or double quotes “
in order to have a more detailed prompt when viewing files (with less), you can of course change the environment variable LESS, for example by assigning “-Q -M -i” to it