auto up 00:24:13 up 0:32, 2 users, load average: 0.84, 0.77, 0.74

This commit is contained in:
2025-11-02 00:24:15 +01:00
parent 3d53b2213c
commit a0b2186b1a
3 changed files with 45 additions and 0 deletions

16
shell/traverse_rnote.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Directory to search (default: current directory or given argument)
SEARCH_DIR="${1:-.}"
# Your Rnote file viewer (default command to open .rnote files)
RNOTE_VIEWER="rnote"
# Ensure fzf and the viewer exist
command -v fzf >/dev/null 2>&1 || { echo "fzf not found"; exit 1; }
command -v "$RNOTE_VIEWER" >/dev/null 2>&1 || { echo "$RNOTE_VIEWER not found"; exit 1; }
# Find all .rnote files recursively and open them interactively with fzf
find "$SEARCH_DIR" -type f -iname '*.rnote' | sort | \
fzf --multi \
--bind "enter:execute-silent($RNOTE_VIEWER {} &)" \