blob: 253e5d3aa2ce0376a7492afff3c7eb9723710445 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|