From 5e259cafc87c96bbe6ab6c4a498099c1ffef0fac Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 19 Apr 2026 16:31:25 +0300 Subject: feat: replace fish integration files with built-in fish subcommand (task u6) Add `foostore fish` subcommand that prints the complete fish shell integration script (tab completions for foostore + the ge wrapper function) to stdout so users can source it with `foostore fish | source`. Remove install-fish.sh, FISH_INTEGRATION.md, and completions/ directory. Update CLAUDE.md and README.md to document the new workflow. Co-Authored-By: Claude Sonnet 4.6 --- completions/foostore.fish | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 completions/foostore.fish (limited to 'completions/foostore.fish') diff --git a/completions/foostore.fish b/completions/foostore.fish deleted file mode 100644 index 88056f1..0000000 --- a/completions/foostore.fish +++ /dev/null @@ -1,33 +0,0 @@ -# Fish completion for foostore -# Install to ~/.config/fish/completions/foostore.fish - -# Dynamically load commands from foostore -function __fish_foostore_commands - foostore commands 2>/dev/null -end - -# Get list of entries for completion -function __fish_foostore_entries - # Only run if PIN is set to avoid interactive prompt - if set -q PIN - foostore ls 2>/dev/null | string replace -r ';.*$' '' | string trim - end -end - -# Complete subcommands -complete -c foostore -f -n "__fish_use_subcommand" -a "(__fish_foostore_commands)" - -# Complete search terms for commands that need them -complete -c foostore -f -n "__fish_seen_subcommand_from search cat paste export pathexport open edit rm" -a "(__fish_foostore_entries)" - -# Complete file paths for import -complete -c foostore -n "__fish_seen_subcommand_from import" -F - -# Complete directory paths for import destination -complete -c foostore -n "__fish_seen_subcommand_from import; and __fish_is_nth_token 3" -F -a "(__fish_complete_directories)" - -# Force flag for import -complete -c foostore -n "__fish_seen_subcommand_from import; and __fish_is_nth_token 4" -f -a "force" - -# Complete directory paths for import_r -complete -c foostore -n "__fish_seen_subcommand_from import_r" -F -a "(__fish_complete_directories)" -- cgit v1.2.3