From 8aa3987c1b91600cf87649366f5a377bfbc5e4da Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Wed, 10 Dec 2025 16:37:24 -0500 Subject: [PATCH] generation 547 25.11.20250714.62e0f05 --- home/programs/sxhkd/sxhkdrc | 5 ++++- home/programs/zsh/zshrc | 9 +++++++++ home/scripts/journal/nf.sh | 9 +++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/home/programs/sxhkd/sxhkdrc b/home/programs/sxhkd/sxhkdrc index deae6d7..6536ae3 100644 --- a/home/programs/sxhkd/sxhkdrc +++ b/home/programs/sxhkd/sxhkdrc @@ -186,7 +186,10 @@ super + bracket{left,right} super + {o} sh nf daily -super + {i} +super + {;} + sh nf idk + +super + {m} sh nf idk # open my notes without goyo and with nvimteee diff --git a/home/programs/zsh/zshrc b/home/programs/zsh/zshrc index 9018a4b..8e3fc37 100644 --- a/home/programs/zsh/zshrc +++ b/home/programs/zsh/zshrc @@ -220,11 +220,20 @@ alias dnsblock-add="nvim /home/synchronous/nix-cfg/system/networking/blockers.sh alias focus-wifi="nvim /home/synchronous/nix-cfg/system/networking/blockers.sh" alias verus-dir="cd /home/synchronous/code/verus" alias cure="cd /home/synchronous/code/cure53" +alias scripts="cd /home/synchronous/nix-cfg/home/scripts" +alias bookmarks="vim -c '80' /home/synchronous/nix-cfg/home/programs/firefox/default.nix" stack() { find . -type f -exec echo -e "\n--- {} ---\n" \; -exec cat {} \; } +stack-fast() { + rg -l . | while read -r file; do + echo -e "\n--- $file ---\n" + cat "$file" + done +} + stack-b() { ( while IFS= read -r -d '' file; do diff --git a/home/scripts/journal/nf.sh b/home/scripts/journal/nf.sh index f4477b0..a806c31 100644 --- a/home/scripts/journal/nf.sh +++ b/home/scripts/journal/nf.sh @@ -159,6 +159,14 @@ search_by_title() { fi } +open_misc() { + tf=$(mktemp --suffix=.md) + # sh -c keeps window open for nvim, then deletes file immediately on exit + alacritty -t "scratch" -e sh -c "nvim '$tf' \ + -c 'execute \"lua vim.g.goyo_if = 1\" | Goyo | set wrap | autocmd BufEnter * let b:coc_suggest_disable=1'; \ + rm '$tf'" &! +} + run_command() { case $1 in "search") search ;; @@ -168,6 +176,7 @@ run_command() { "find") notes_find ;; "tags") search_by_tags ;; "title") search_by_title ;; + "misc") open_misc ;; *) esac }