codesoap via public-inbox
~chambln via public-inbox
pathmenu is a purely POSIX shell script that allows the user to browse the filesystem and select files with dmenu(1).
As in the example below, the
-c command option makes
it possible to use something else like fzf(1) or rofi(1) as a
drop-in replacement for dmenu.
pathmenu -c 'fzf --prompt "$PWD/"'
Optionally specify a prefix; for example:
make PREFIX=~/.local install
See pathmenu(1) and the example scripts in
Hint: When using dmenu(1), partial matches can be ‘selected’ explicitly (i.e. without completing them) using Shift + Return; this is useful for selecting a non-existent file whose name is a substring of an existing file.
*/when there are at least two visible directories present); it should consider all matches as final selections for the secondary
dicemenu to act upon, rather than trying to cd(1) to it.