aboutsummaryrefslogtreecommitdiff
path: root/bookmark-type
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
committerLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
commit83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch)
tree19110702c7d740f6bd8ee4f5d2ebcb97442be237 /bookmark-type
parent51d43498b07dc97d795947964534f0903cd05db5 (diff)
downloadbin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz
bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'bookmark-type')
-rwxr-xr-xbookmark-type15
1 files changed, 15 insertions, 0 deletions
diff --git a/bookmark-type b/bookmark-type
new file mode 100755
index 0000000..253e5d3
--- /dev/null
+++ b/bookmark-type
@@ -0,0 +1,15 @@
+#!/bin/sh
+# Bind this script to a shortcut key in dwm config.h
+# Lines starting with # are section headers and hidden from results
+# Tab-separated comments are shown in dmenu for context but stripped before pasting
+
+xdotool type "$(grep -v '^#' "$HOME/.bookmarks" | dmenu -i -l 50 | sed 's/\t.*//')"
+```
+
+---
+
+In `.snippets` manually edited it looks like this (tab between bookmark and `# comment`):
+```
+# --- git ---
+git log --oneline --graph --all # pretty git tree
+git reset --soft HEAD~1 # undo last commit