~chambln/pathmenu

Browse directories and select files with dmenu

clone

read-only
https://git.sr.ht/~chambln/pathmenu
read/write
git@git.sr.ht:~chambln/pathmenu

You can also use your local clone with git send-email.

#pathmenu

builds.sr.ht status

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/"'

#Installation

make install

Optionally specify a prefix; for example:

make PREFIX=~/.local install

#Usage

See pathmenu(1) and the example scripts in examples/*.

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.

#To-do

  • [ ] Improve dicemenu
  • [ ] Fix dicemenu globs for multiple directories (e.g. */ when there are at least two visible directories present); it should consider all matches as final selections for the secondary dice menu to act upon, rather than trying to cd(1) to it.