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
- Host: GitHub
- URL: https://github.com/chambln/pathmenu
- Owner: chambln
- License: mit
- Created: 2019-07-21T08:25:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T02:08:17.000Z (about 4 years ago)
- Last Synced: 2025-02-14T11:26:50.829Z (over 1 year ago)
- Topics: browse-directories, dmenu, file-manager
- Language: Roff
- Homepage: https://git.sr.ht/~chambln/pathmenu
- Size: 112 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pathmenu
[](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.