about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDCsunset <DCsunset@users.noreply.github.com>2021-08-18 13:37:12 -0400
committerdana <dana@dana.is>2021-08-24 02:16:45 -0500
commitcd89e1937daa9dcfa6b372ec56018904c0f34581 (patch)
tree5540ddf7f94e009656f154c9ebddadeb874ab23b
parent78961f8870e9b665076cb28bf1bc71d0f9641dca (diff)
downloadzsh-cd89e1937daa9dcfa6b372ec56018904c0f34581.tar.gz
zsh-cd89e1937daa9dcfa6b372ec56018904c0f34581.tar.xz
zsh-cd89e1937daa9dcfa6b372ec56018904c0f34581.zip
github #78: Fix completions in _pandoc
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_pandoc6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 09bfe7839..3d1a97e41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-08-24  dana  <dana@dana.is>
+
+	* github #78: DCsunset: Completion/Unix/Command/_pandoc: Fix
+	completions in _pandoc
+
 2021-08-16  Oliver Kiddle  <opk@zsh.org>
 
 	* 49268: Completion/Unix/Command/_texinfo: use an empty string search
diff --git a/Completion/Unix/Command/_pandoc b/Completion/Unix/Command/_pandoc
index 98e5abc70..e694606c0 100644
--- a/Completion/Unix/Command/_pandoc
+++ b/Completion/Unix/Command/_pandoc
@@ -183,7 +183,7 @@ _arguments -s \
   {-t+,-w+,--to=,--write=}'[specify output format]: :_pandoc_format -T output' \
   {-o+,--output=}'[write output to FILE instead of stdout]:file:_files' \
   '--data-dir=[specify the user data directory to search for pandoc data files]:data directory:_files -/' \
-  {-d+,--defauls=}'[read default from YAMAL file]: :_pandoc_defaults_file' \
+  {-d+,--defaults=}'[read default from YAML file]: :_pandoc_defaults_file' \
   '--shift-heading-level-by=[shift heading levels by specified number]:positive or negative integer: ' \
   '!--base-header-level=:number [1]:(1 2 3 4 5)' \
   '!--strip-empty-paragraphs[deprecated. Use the +empty_paragraphs extension instead]' \
@@ -193,7 +193,7 @@ _arguments -s \
   {\*-F+,\*--filter=}'[specify an executable to be used as a filter transforming the pandoc AST after the input is parsed and before the output is written]: :_pandoc_filter' \
   {\*-L+,\*--lua-filter=}"[transform the document by using pandoc's built-in lua filtering system]: :_pandoc_lua_filter" \
   {\*-M+,\*--metadata=}'[set the metadata field KEY to the value VALUE]:key\:value: ' \
-  '*--metadata_file=[read metadata from file]:YAML or JSON file:_files' \
+  '*--metadata-file=[read metadata from file]:YAML or JSON file:_files' \
   {-p,--preserve-tabs}'[preserve tabs instead of converting them to spaces]' \
   '--tab-stop=[specify the number of spaces per tab]:spaces [4]' \
   '--track-changes=[specifies what to do with insertions, deletions, and comments produced by the MS Word "Track Changes" feature]: :_pandoc_track_changes' \
@@ -264,7 +264,7 @@ _arguments -s \
   '--verbose[give verbose debugging output]' \
   '--quiet[suppress warning messages]' \
   '--fail-if-warnings[exit with error status if there are any warnings]' \
-  '--log=[write log messages in machine-readable JSON format to FILE]:file:_file' \
+  '--log=[write log messages in machine-readable JSON format to FILE]:file:_files' \
   '(- :)--bash-completion[generate a bash completion script]' \
   '(- :)--list-input-formats[list supported input formats, one per line]' \
   '(- :)--list-output-formats[list supported output formats, one per line]' \