feat(functions): derive the shared help palette from the fish theme #159

Merged
rootiest merged 5 commits from feat/theme-driven-help-palette into main 2026-09-21 05:53:22 +00:00
2 changed files with 9 additions and 9 deletions
Showing only changes of commit 58d5cf3fae - Show all commits
+5 -5
View File
@@ -50,16 +50,16 @@ function logs --description 'Browse terminal log files interactively with fzf'
if set -q _flag_help
__fish_palette
echo "Usage: "$c_accent"logs"$c_reset" ["$c_arg"OPTIONS"$c_reset"]"
echo "$c_head""Usage:$c_reset "$c_cmd"logs"$c_reset" ["$c_arg"OPTIONS"$c_reset"]"
echo ""
echo "Browse and open terminal log files interactively."
echo "Logs sorted newest-first. Type to fuzzy-filter by date or category."
echo ""
echo "Options:"
echo " "$c_arg"-h, --help"$c_reset" Show this help"
echo " "$c_arg"-c, --category"$c_reset" Limit to one category: scrollback, paru, yay"
echo "$c_head""Options:$c_reset"
echo " "$c_flag"-h, --help"$c_reset" Show this help"
echo " "$c_flag"-c, --category"$c_reset" Limit to one category: scrollback, paru, yay"
echo ""
echo "Keys in fzf:"
echo "$c_head""Keys in fzf:$c_reset"
echo " "$c_arg"Enter"$c_reset" Open in \$PAGER"
echo " "$c_arg"Ctrl-E"$c_reset" Open in \$EDITOR"
echo " "$c_arg"Ctrl-D"$c_reset" Delete selected log"
+4 -4
View File
@@ -47,13 +47,13 @@ function smart_exit --description 'Capture colorized scrollback before exiting,
__fish_palette
if set -q _flag_help
echo -e "Usage: $c_accent"exit"$c_reset [$c_arg""OPTIONS""$c_reset]"
echo -e "$c_head""Usage:$c_reset $c_cmd"exit"$c_reset [$c_arg""OPTIONS""$c_reset]"
echo ""
echo "Closes the current shell session, automatically archiving the window scrollback."
echo ""
echo "Options:"
echo -e " $c_arg""-h, --help""$c_reset Show this help message"
echo -e " $c_arg""-n, --no-log""$c_reset Exit immediately $c_cmd""without""$c_reset saving a scrollback history log"
echo "$c_head""Options:$c_reset"
echo -e " $c_flag""-h, --help""$c_reset Show this help message"
echo -e " $c_flag""-n, --no-log""$c_reset Exit immediately without saving a scrollback history log"
return 0
end