From 8e3a9c9585a5ccdce7038d7d8ef2257ad1c68bf0 Mon Sep 17 00:00:00 2001 From: Raoul Wols Date: Mon, 31 Jul 2017 18:53:09 +0200 Subject: [PATCH 1/2] Add Sublime Text 3 completions --- share/completions/subl.fish | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 share/completions/subl.fish diff --git a/share/completions/subl.fish b/share/completions/subl.fish new file mode 100644 index 000000000..26adfa769 --- /dev/null +++ b/share/completions/subl.fish @@ -0,0 +1,32 @@ +# Sublime Text build 3142 + +# Usage: subl [arguments] [files] edit the given files +# or: subl [arguments] [directories] open the given directories +# or: subl [arguments] - edit stdin + +# Arguments: +# --project : Load the given project +# --command : Run the given command +# -n or --new-window: Open a new window +# -a or --add: Add folders to the current window +# -w or --wait: Wait for the files to be closed before returning +# -b or --background: Don't activate the application +# -s or --stay: Keep the application activated after closing the file +# -h or --help: Show help (this message) and exit +# -v or --version: Show version and exit + +# --wait is implied if reading from stdin. Use --stay to not switch back +# to the terminal when a file is closed (only relevant if waiting for a file). + +# Filenames may be given a :line or :line:column suffix to open at a specific +# location. + +complete -c subl --long-option project --require-parameter --description "Load the given project" +complete -c subl --long-option command --require-parameter --description "Run the given command" +complete -c subl --short-option n --long-option new-window --no-files --description "Open a new window" +complete -c subl --short-option a --long-option add --require-parameter --description "Add folders to the current window" +complete -c subl --short-option w --long-option wait --description "Wait for the files to be closed before returning" +complete -c subl --short-option b --long-option background --description "Don't activate the application" +complete -c subl --short-option s --long-option stay --description "Keep the application activated after closing the file" +complete -c subl --short-option h --long-option help --exclusive --description "Show help and exit" +complete -c subl --short-option v --long-option version --exclusive --description "Show version and exit" From 067892c4f1f4a6e1a76fc345c586fbe665d51ff0 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Mon, 31 Jul 2017 22:14:22 -0700 Subject: [PATCH 2/2] update changelog to document sublime completions --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c96ff1d88..507adce9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ - Added completions for: - `as` (#4130). - `jest` (#4142). + - `subl` (Sublime Text 3 editor, #4277) ---