mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fix pandoc completion error
Pandoc completions would give an error if the folder `~/.pandoc` does exist. This commit fixes that.
This commit is contained in:
parent
aa608a42ff
commit
2719179bc1
1 changed files with 3 additions and 3 deletions
|
@ -98,9 +98,9 @@ complete -c pandoc -r -f -l bibliography -k -a "(__fish_complete_suffix 'ria')"
|
|||
complete -c pandoc -r -f -l lua-filter -k -a "(__fish_complete_suffix 'lua')"
|
||||
|
||||
# options that take files in DATADIR
|
||||
complete -c pandoc -r -s F -l filter -a "(find $datadir/filters/** | string replace -- '$datadir/filters/' '')"
|
||||
complete -c pandoc -r -l template -a "(find $datadir/templates/** | string replace -- '$datadir/templates/' '')"
|
||||
complete -c pandoc -r -f -l lua-filter -a "(find $datadir/** | string match -r '.lua\$' | string replace -- '$datadir/' '')"
|
||||
complete -c pandoc -r -s F -l filter -a "(find $datadir/filters -type f 2>/dev/null | string replace -- '$datadir/filters/' '')"
|
||||
complete -c pandoc -r -l template -a "(find $datadir/templates -type f 2>/dev/null | string replace -- '$datadir/templates/' '')"
|
||||
complete -c pandoc -r -f -l lua-filter -a "(find $datadir -type f 2>/dev/null | string match -r '.lua\$' | string replace -- '$datadir/' '')"
|
||||
|
||||
# options that require arguments which cannot be autocompleted
|
||||
complete -c pandoc -x -l indented-code-classes
|
||||
|
|
Loading…
Reference in a new issue