2017-08-01 00:53:09 +08:00
|
|
|
# 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 <project>: Load the given project
|
|
|
|
# --command <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.
|
|
|
|
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c subl --long-option project --require-parameter -d "Load the given project"
|
|
|
|
complete -c subl --long-option command --require-parameter -d "Run the given command"
|
2018-03-18 04:06:44 +08:00
|
|
|
complete -c subl --short-option n --long-option new-window -d "Open a new window"
|
2017-10-12 01:17:35 +08:00
|
|
|
complete -c subl --short-option a --long-option add --require-parameter -d "Add folders to the current window"
|
|
|
|
complete -c subl --short-option w --long-option wait -d "Wait for the files to be closed before returning"
|
|
|
|
complete -c subl --short-option b --long-option background -d "Don't activate the application"
|
|
|
|
complete -c subl --short-option s --long-option stay -d "Keep the application activated after closing the file"
|
|
|
|
complete -c subl --short-option h --long-option help --exclusive -d "Show help and exit"
|
|
|
|
complete -c subl --short-option v --long-option version --exclusive -d "Show version and exit"
|