From 51d43498b07dc97d795947964534f0903cd05db5 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 13 Apr 2026 17:37:26 +0200 Subject: routine backup --- typebookmarks | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'typebookmarks') diff --git a/typebookmarks b/typebookmarks index 559075a..a0bcab7 100755 --- a/typebookmarks +++ b/typebookmarks @@ -1,5 +1,15 @@ -#! /bin/sh +#!/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 -# map this script as a shortcut key for dwm in config.h +xdotool type "$(grep -v '^#' "$HOME/.snippets" | dmenu -i -l 50 | sed 's/\t.*//')" +``` -xdotool type "$(grep -v '^#' ${HOME}/.snippets | dmenu -i -l 50 | sed 's/\s*#.*//')" +--- + +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 -- cgit v1.3