summaryrefslogtreecommitdiff
path: root/completions/foostore.fish
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-19 16:31:25 +0300
committerPaul Buetow <paul@buetow.org>2026-04-19 16:31:25 +0300
commit5e259cafc87c96bbe6ab6c4a498099c1ffef0fac (patch)
tree87eac0697f0f93a4d2f2f9faf62b1f08ae10f62e /completions/foostore.fish
parent7292a5db4e96ffeb30697ce3308d47777bf7c2f5 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'completions/foostore.fish')
-rw-r--r--completions/foostore.fish33
1 files changed, 0 insertions, 33 deletions
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)"