history for any menu (like dmenu, fzf, ...)
dm9pZCAq 3ed9c9e2d2 update to zig-0.13.0 | 5 ヶ月 前 | |
---|---|---|
src | 5 ヶ月 前 | |
.gitignore | 5 ヶ月 前 | |
LICENSE | 10 ヶ月 前 | |
README.md | 5 ヶ月 前 | |
build.zig | 6 ヶ月 前 | |
build.zig.zon | 5 ヶ月 前 |
history for any menu (like dmenu, fzf, ...)
requires: zig-0.13.0
zig build -Doptimize=ReleaseFast
# see also: https://ziglang.org/documentation/0.13.0/#Build-Mode
# this will build menu-history and path-cache
ls -l zig-out/bin/
# menu-history -h
menu-history [-Vh] [-H <path>] [-m <menu>] <arg>...
-V, --version
print version
-h, --help
show this help
-H, --history <path>
set path for history file (default: '${XDG_CACHE_HOME}/${menu}-history')
-m, --menu <menu>
set menu program (default: 'dmenu')
<arg>...
menu args
path-cache
is helper program to get all runnable executables and cache them
default cache file path: ${XDG_CACHE_HOME}/path-cache
, can be changed with PATH_CACHE_FILE
environment variable
example usage as dmenu_run:
~/.config/sxhkd/sxhkdrc
:
# program launcher
@Menu
$(path-cache | menu-history)