From b7a85fe172d4ccc1214972a23579265c65c5e3a4 Mon Sep 17 00:00:00 2001 From: Amy Grace Date: Sun, 10 Dec 2023 03:50:22 -0700 Subject: [PATCH] completions: add smerge (Sublime Merge CLI tool) (#10135) * completions: add smerge (Sublime Merge CLI tool) * completions: add `-o` (and file completion) to `smerge mergetool` --- share/completions/smerge.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 share/completions/smerge.fish diff --git a/share/completions/smerge.fish b/share/completions/smerge.fish new file mode 100644 index 000000000..588426bf0 --- /dev/null +++ b/share/completions/smerge.fish @@ -0,0 +1,14 @@ +# Sublime Merge CLI tool + +complete -c smerge -s n -l new-window -d 'Open a new window' +complete -c smerge -l launch-or-new-window -d 'Open new window only if app is running' +complete -c smerge -s b -l background -d "Don't activate the application" +complete -c smerge -l safe-mode -d 'Launch in a sandboxed environment' +complete -c smerge -s h -l help -d 'Show help (this message) and exit' +complete -c smerge -s v -l version -d 'Show version and exit' +complete -c smerge -a search -x -d 'Search for commits in the current repository' +complete -c smerge -a blame -r -d 'Blame the given file in the current repo' +complete -c smerge -a log -r -d 'Show the file history in the current repo' +complete -c smerge -a mergetool -rF -d 'Open the merge tool for the given files' +complete -c smerge -l no-wait -d "Don't wait for the application to close" -n '__fish_seen_subcommand_from mergetool' +complete -c smerge -s o -rF -d "Merged output file" -n "__fish_seen_subcommand_from mergetool"