summaryrefslogtreecommitdiff
path: root/.local/bin/desktop/dmenu-file-history
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-06-13 08:37:31 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-06-13 08:37:31 +0530
commit28ea0e3cbe1c0f980a05d6fb13a428bcab2ea1c5 (patch)
treeb44f5301c4f60b1dae51a91e72b614996ee074ce /.local/bin/desktop/dmenu-file-history
parent311a468de08231c3dd2327473b79066a25e67462 (diff)
neovim updatesHEADmaster
Diffstat (limited to '.local/bin/desktop/dmenu-file-history')
-rwxr-xr-x.local/bin/desktop/dmenu-file-history6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/desktop/dmenu-file-history b/.local/bin/desktop/dmenu-file-history
new file mode 100755
index 0000000..0997c76
--- /dev/null
+++ b/.local/bin/desktop/dmenu-file-history
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -n "$OPEN_HISTFILE" ] ||
+ export OPEN_HISTFILE="${XDG_STATE_HOME:-$HOME/.local/state}/open_history"
+
+tac "$OPEN_HISTFILE" | dmenu -i -l 30 | xargs -I{} "${OPENER:-xdg-open}" "{}"