An open API service indexing awesome lists of open source software.

https://github.com/chambln/pathmenu

Mirror of https://git.sr.ht/~chambln/pathmenu
https://github.com/chambln/pathmenu

browse-directories dmenu file-manager

Last synced: 5 months ago
JSON representation

Mirror of https://git.sr.ht/~chambln/pathmenu

Awesome Lists containing this project

README

          

# pathmenu

[![builds.sr.ht status](https://builds.sr.ht/~chambln/pathmenu.svg)](https://builds.sr.ht/~chambln/pathmenu)

pathmenu is a purely POSIX shell script that allows
the user to browse the filesystem and select files with
[**dmenu**(1)](https://tools.suckless.org/dmenu/).

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.