Normalize *tex completions

This commit is contained in:
Fabian Homborg 2015-07-20 12:34:18 +02:00 committed by ridiculousfish
parent f70b1ffbbf
commit 7add4d5782
12 changed files with 26 additions and 35 deletions

View file

@ -1,2 +1,2 @@
__fish_complete_tex elatex
complete -c tex -w elatex

View file

@ -1 +1 @@
__fish_complete_tex etex
complete -c tex -w etex

View file

@ -1,2 +1,2 @@
__fish_complete_tex latex
complete -c tex -w latex

View file

@ -1,2 +1,2 @@
__fish_complete_tex lualatex
complete -c tex -w lualatex

View file

@ -1,2 +1,2 @@
__fish_complete_tex omega
complete -c tex -w omega

View file

@ -1,3 +1,3 @@
__fish_complete_tex pdfelatex
complete -c tex -w pdfelatex

View file

@ -1,3 +1,3 @@
__fish_complete_tex pdfetex
complete -c tex -w pdfetex

View file

@ -1,2 +1,2 @@
__fish_complete_tex pdflatex
complete -c tex -w pdflatex

View file

@ -1,3 +1,3 @@
__fish_complete_tex pdftex
complete -c tex -w pdftex

View file

@ -1,5 +1,17 @@
complete -c tex -o help --description "Display help and exit"
complete -c tex -o version --description "Display version and exit"
complete -c tex -x -a "(
__fish_complete_suffix (commandline -ct) .tex '(La)TeX file'
)"
set -l cmds -c etex -c tex -c elatex -c latex -c pdflatex -c pdfelatex -c pdftex -c pdfetex -c omega
__fish_complete_tex tex
complete -c tex -o file-line-error -d "Show errors in style file:line"
complete -c tex -o no-file-line-error -d "Show errors not in style file:line"
complete -c tex -o halt-on-error -d "Stop processing at the first error"
complete -c tex -o interaction=batchmode -d "Set interaction mode"
complete -c tex -o interaction=nonstopmode -d "Set interaction mode"
complete -c tex -o interaction=scrollmode -d "Set interaction mode"
complete -c tex -o interaction=errorstopmode -d "Set interaction mode"
complete -c tex -o output-directory= -x -a "(__fish_complete_directories (commandline -ct))" -d "Output directory"
complete -c tex -o shell-escape -d "Enable \write18{SHELL COMMAND}"
complete -c tex -o no-shell-escape -d "Disable \write18{SHELL COMMAND}"
complete -c tex -o src-specials -d "Insert source specials into the DVI file"

View file

@ -1,2 +1,2 @@
__fish_complete_tex xelatex
complete -c tex -w xelatex

View file

@ -1,21 +0,0 @@
function __fish_complete_tex -d "Common completions for all tex commands"
complete -c $argv -o help --description "Display help and exit"
complete -c $argv -o version --description "Display version and exit"
complete -c $argv -x -a "(
__fish_complete_suffix (commandline -ct) .tex '(La)TeX file'
)"
complete -c $argv -o file-line-error -d "Show errors in style file:line"
complete -c $argv -o no-file-line-error -d "Show errors not in style file:line"
complete -c $argv -o halt-on-error -d "Stop processing at the first error"
complete -c $argv -o interaction=batchmode -d "Set interaction mode"
complete -c $argv -o interaction=nonstopmode -d "Set interaction mode"
complete -c $argv -o interaction=scrollmode -d "Set interaction mode"
complete -c $argv -o interaction=errorstopmode -d "Set interaction mode"
complete -c $argv -o output-directory= -x -a "(__fish_complete_directories (commandline -ct))" -d "Output directory"
complete -c $argv -o shell-escape -d "Enable \write18{SHELL COMMAND}"
complete -c $argv -o no-shell-escape -d "Disable \write18{SHELL COMMAND}"
complete -c $argv -o src-specials -d "Insert source specials into the DVI file"
end