docrev 0.9.13 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +9 -9
- package/.gitattributes +1 -1
- package/CHANGELOG.md +149 -149
- package/PLAN-tables-and-postprocess.md +850 -850
- package/README.md +411 -391
- package/bin/rev.js +11 -11
- package/bin/rev.ts +145 -145
- package/completions/rev.bash +127 -127
- package/completions/rev.ps1 +210 -210
- package/completions/rev.zsh +207 -207
- package/dev_notes/stress2/build_adversarial.ts +186 -186
- package/dev_notes/stress2/drift_matcher.ts +62 -62
- package/dev_notes/stress2/probe_anchors.ts +35 -35
- package/dev_notes/stress2/project/discussion.before.md +3 -3
- package/dev_notes/stress2/project/discussion.md +3 -3
- package/dev_notes/stress2/project/methods.before.md +20 -20
- package/dev_notes/stress2/project/methods.md +20 -20
- package/dev_notes/stress2/project/rev.yaml +5 -5
- package/dev_notes/stress2/project/sections.yaml +4 -4
- package/dev_notes/stress2/sections.yaml +5 -5
- package/dev_notes/stress2/trace_placement.ts +50 -50
- package/dev_notes/stresstest_boundaries.ts +27 -27
- package/dev_notes/stresstest_drift_apply.ts +43 -43
- package/dev_notes/stresstest_drift_compare.ts +43 -43
- package/dev_notes/stresstest_drift_v2.ts +54 -54
- package/dev_notes/stresstest_inspect.ts +54 -54
- package/dev_notes/stresstest_pstyle.ts +55 -55
- package/dev_notes/stresstest_section_debug.ts +23 -23
- package/dev_notes/stresstest_split.ts +70 -70
- package/dev_notes/stresstest_trace.ts +19 -19
- package/dev_notes/stresstest_verify_no_overwrite.ts +40 -40
- package/dist/lib/build.d.ts +38 -1
- package/dist/lib/build.d.ts.map +1 -1
- package/dist/lib/build.js +68 -30
- package/dist/lib/build.js.map +1 -1
- package/dist/lib/commands/build.d.ts.map +1 -1
- package/dist/lib/commands/build.js +38 -5
- package/dist/lib/commands/build.js.map +1 -1
- package/dist/lib/commands/utilities.js +164 -164
- package/dist/lib/commands/word-tools.js +8 -8
- package/dist/lib/grammar.js +3 -3
- package/dist/lib/pdf-comments.js +44 -44
- package/dist/lib/plugins.js +57 -57
- package/dist/lib/pptx-themes.js +115 -115
- package/dist/lib/spelling.js +2 -2
- package/dist/lib/templates.js +387 -387
- package/dist/lib/themes.js +51 -51
- package/eslint.config.js +27 -27
- package/lib/anchor-match.ts +276 -276
- package/lib/annotations.ts +644 -644
- package/lib/build.ts +1300 -1251
- package/lib/citations.ts +160 -160
- package/lib/commands/build.ts +833 -801
- package/lib/commands/citations.ts +515 -515
- package/lib/commands/comments.ts +1050 -1050
- package/lib/commands/context.ts +174 -174
- package/lib/commands/core.ts +309 -309
- package/lib/commands/doi.ts +435 -435
- package/lib/commands/file-ops.ts +372 -372
- package/lib/commands/history.ts +320 -320
- package/lib/commands/index.ts +87 -87
- package/lib/commands/init.ts +259 -259
- package/lib/commands/merge-resolve.ts +378 -378
- package/lib/commands/preview.ts +178 -178
- package/lib/commands/project-info.ts +244 -244
- package/lib/commands/quality.ts +517 -517
- package/lib/commands/response.ts +454 -454
- package/lib/commands/section-boundaries.ts +82 -82
- package/lib/commands/sections.ts +451 -451
- package/lib/commands/sync.ts +706 -706
- package/lib/commands/text-ops.ts +449 -449
- package/lib/commands/utilities.ts +448 -448
- package/lib/commands/verify-anchors.ts +272 -272
- package/lib/commands/word-tools.ts +340 -340
- package/lib/comment-realign.ts +517 -517
- package/lib/config.ts +84 -84
- package/lib/crossref.ts +781 -781
- package/lib/csl.ts +191 -191
- package/lib/dependencies.ts +98 -98
- package/lib/diff-engine.ts +465 -465
- package/lib/doi-cache.ts +115 -115
- package/lib/doi.ts +897 -897
- package/lib/equations.ts +506 -506
- package/lib/errors.ts +346 -346
- package/lib/format.ts +541 -541
- package/lib/git.ts +326 -326
- package/lib/grammar.ts +303 -303
- package/lib/image-registry.ts +180 -180
- package/lib/import.ts +911 -911
- package/lib/journals.ts +543 -543
- package/lib/merge.ts +633 -633
- package/lib/orcid.ts +144 -144
- package/lib/pdf-comments.ts +263 -263
- package/lib/pdf-import.ts +524 -524
- package/lib/plugins.ts +362 -362
- package/lib/postprocess.ts +188 -188
- package/lib/pptx-color-filter.lua +37 -37
- package/lib/pptx-template.ts +469 -469
- package/lib/pptx-themes.ts +483 -483
- package/lib/protect-restore.ts +520 -520
- package/lib/rate-limiter.ts +94 -94
- package/lib/response.ts +197 -197
- package/lib/restore-references.ts +240 -240
- package/lib/review.ts +327 -327
- package/lib/schema.ts +417 -417
- package/lib/scientific-words.ts +73 -73
- package/lib/sections.ts +335 -335
- package/lib/slides.ts +756 -756
- package/lib/spelling.ts +334 -334
- package/lib/templates.ts +526 -526
- package/lib/themes.ts +742 -742
- package/lib/trackchanges.ts +247 -247
- package/lib/tui.ts +450 -450
- package/lib/types.ts +550 -550
- package/lib/undo.ts +250 -250
- package/lib/utils.ts +69 -69
- package/lib/variables.ts +179 -179
- package/lib/word-extraction.ts +806 -806
- package/lib/word.ts +643 -643
- package/lib/wordcomments.ts +817 -817
- package/package.json +137 -137
- package/scripts/postbuild.js +28 -28
- package/skill/REFERENCE.md +473 -431
- package/skill/SKILL.md +274 -258
- package/tsconfig.json +26 -26
- package/types/index.d.ts +525 -525
package/completions/rev.zsh
CHANGED
|
@@ -1,207 +1,207 @@
|
|
|
1
|
-
#compdef rev
|
|
2
|
-
|
|
3
|
-
# Zsh completion for rev (docrev)
|
|
4
|
-
# Install: add to fpath or run:
|
|
5
|
-
# eval "$(rev completions zsh)"
|
|
6
|
-
|
|
7
|
-
_rev() {
|
|
8
|
-
local -a commands build_formats doi_actions eq_actions help_topics journals preview_formats
|
|
9
|
-
|
|
10
|
-
commands=(
|
|
11
|
-
'build:Build PDF/DOCX/TEX from sections'
|
|
12
|
-
'new:Create new project from template'
|
|
13
|
-
'import:Import Word document'
|
|
14
|
-
'sections:Import to section files'
|
|
15
|
-
'extract:Extract text from Word'
|
|
16
|
-
'review:Interactive review TUI'
|
|
17
|
-
'status:Show annotation counts'
|
|
18
|
-
'comments:List comments'
|
|
19
|
-
'resolve:Mark comment as resolved'
|
|
20
|
-
'reply:Reply to comments'
|
|
21
|
-
'strip:Output clean markdown'
|
|
22
|
-
'refs:Show reference status'
|
|
23
|
-
'migrate:Convert hardcoded refs'
|
|
24
|
-
'config:Configure settings'
|
|
25
|
-
'install:Check dependencies'
|
|
26
|
-
'doi:DOI validation'
|
|
27
|
-
'citations:Validate citations'
|
|
28
|
-
'equations:Extract equations'
|
|
29
|
-
'figures:List figures'
|
|
30
|
-
'response:Generate response letter'
|
|
31
|
-
'anonymize:Prepare for blind review'
|
|
32
|
-
'validate:Check journal requirements'
|
|
33
|
-
'merge:Merge reviewer feedback'
|
|
34
|
-
'diff:Compare against git history'
|
|
35
|
-
'history:Show revision history'
|
|
36
|
-
'help:Show help'
|
|
37
|
-
'init:Initialize project'
|
|
38
|
-
'split:Split paper.md to sections'
|
|
39
|
-
'word-count:Show word counts per section'
|
|
40
|
-
'wc:Show word counts (alias)'
|
|
41
|
-
'stats:Show project statistics'
|
|
42
|
-
'search:Search across files'
|
|
43
|
-
'backup:Create timestamped backup'
|
|
44
|
-
'export:Export project as zip'
|
|
45
|
-
'preview:Build and open document'
|
|
46
|
-
'watch:Watch and auto-rebuild'
|
|
47
|
-
'lint:Check for issues'
|
|
48
|
-
'grammar:Check grammar and style'
|
|
49
|
-
'annotate:Add comments to DOCX'
|
|
50
|
-
'apply:Apply annotations as track changes'
|
|
51
|
-
'comment:Interactive comment mode'
|
|
52
|
-
'completions:Generate shell completions'
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
preview_formats=(
|
|
56
|
-
'pdf:Preview PDF'
|
|
57
|
-
'docx:Preview Word document'
|
|
58
|
-
)
|
|
59
|
-
|
|
60
|
-
build_formats=(
|
|
61
|
-
'pdf:Build PDF'
|
|
62
|
-
'docx:Build Word document'
|
|
63
|
-
'tex:Build LaTeX'
|
|
64
|
-
'all:Build all formats'
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
doi_actions=(
|
|
68
|
-
'check:Validate DOIs'
|
|
69
|
-
'lookup:Find missing DOIs'
|
|
70
|
-
'fetch:Get BibTeX from DOI'
|
|
71
|
-
'add:Add citation by DOI'
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
eq_actions=(
|
|
75
|
-
'list:List equations'
|
|
76
|
-
'extract:Extract to file'
|
|
77
|
-
'convert:Convert to Word'
|
|
78
|
-
'from-word:Extract from Word'
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
help_topics=(
|
|
82
|
-
'workflow:Review workflow'
|
|
83
|
-
'syntax:CriticMarkup syntax'
|
|
84
|
-
'commands:All commands'
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
journals=(
|
|
88
|
-
'nature:Nature journal'
|
|
89
|
-
'science:Science journal'
|
|
90
|
-
'plos:PLOS ONE'
|
|
91
|
-
'cell:Cell journal'
|
|
92
|
-
'ecology:Ecology journals'
|
|
93
|
-
'custom:Custom profile'
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
case "$words[2]" in
|
|
97
|
-
build)
|
|
98
|
-
_describe -t formats 'format' build_formats
|
|
99
|
-
_arguments \
|
|
100
|
-
'--toc[Include table of contents]' \
|
|
101
|
-
'--show-changes[Show track changes in DOCX]' \
|
|
102
|
-
'--clean[Clean build files]'
|
|
103
|
-
;;
|
|
104
|
-
new)
|
|
105
|
-
_arguments \
|
|
106
|
-
'--list[List templates]' \
|
|
107
|
-
'--template[Template name]:template:(paper minimal thesis proposal)'
|
|
108
|
-
;;
|
|
109
|
-
doi)
|
|
110
|
-
_describe -t actions 'action' doi_actions
|
|
111
|
-
;;
|
|
112
|
-
equations|eq)
|
|
113
|
-
_describe -t actions 'action' eq_actions
|
|
114
|
-
;;
|
|
115
|
-
validate)
|
|
116
|
-
_arguments \
|
|
117
|
-
'--list[List journals]' \
|
|
118
|
-
'--journal[Journal name]:journal:($journals)'
|
|
119
|
-
;;
|
|
120
|
-
help)
|
|
121
|
-
_describe -t topics 'topic' help_topics
|
|
122
|
-
;;
|
|
123
|
-
config)
|
|
124
|
-
_values 'setting' 'user[Set user name]'
|
|
125
|
-
;;
|
|
126
|
-
word-count|wc)
|
|
127
|
-
_arguments \
|
|
128
|
-
'--limit[Word limit]:number:' \
|
|
129
|
-
'--journal[Use journal word limit]:journal:'
|
|
130
|
-
;;
|
|
131
|
-
preview)
|
|
132
|
-
_describe -t formats 'format' preview_formats
|
|
133
|
-
;;
|
|
134
|
-
watch)
|
|
135
|
-
_arguments \
|
|
136
|
-
'--no-open[Do not open after build]'
|
|
137
|
-
_values 'format' 'pdf' 'docx' 'all'
|
|
138
|
-
;;
|
|
139
|
-
lint)
|
|
140
|
-
_arguments \
|
|
141
|
-
'--fix[Auto-fix issues]'
|
|
142
|
-
;;
|
|
143
|
-
grammar)
|
|
144
|
-
_arguments \
|
|
145
|
-
'--learn[Add word to dictionary]:word:' \
|
|
146
|
-
'--forget[Remove from dictionary]:word:' \
|
|
147
|
-
'--list[List dictionary words]' \
|
|
148
|
-
'--rules[List grammar rules]' \
|
|
149
|
-
'--no-scientific[Disable science rules]' \
|
|
150
|
-
'--severity[Minimum severity]:level:(error warning info)'
|
|
151
|
-
_files -g '*.md'
|
|
152
|
-
;;
|
|
153
|
-
annotate)
|
|
154
|
-
_arguments \
|
|
155
|
-
'-m[Comment message]:text:' \
|
|
156
|
-
'-s[Search text]:text:' \
|
|
157
|
-
'-a[Author name]:name:'
|
|
158
|
-
_files -g '*.docx'
|
|
159
|
-
;;
|
|
160
|
-
apply)
|
|
161
|
-
_arguments \
|
|
162
|
-
'-a[Author name]:name:'
|
|
163
|
-
_files -g '*.md'
|
|
164
|
-
;;
|
|
165
|
-
comment)
|
|
166
|
-
_arguments \
|
|
167
|
-
'-a[Author name]:name:'
|
|
168
|
-
_files -g '*.docx'
|
|
169
|
-
;;
|
|
170
|
-
completions)
|
|
171
|
-
_values 'shell' 'bash' 'zsh'
|
|
172
|
-
;;
|
|
173
|
-
import|sections|extract|review|status|comments|strip|refs|migrate|figures|response|anonymize|split|search|stats)
|
|
174
|
-
_files -g '*.md' -g '*.docx'
|
|
175
|
-
;;
|
|
176
|
-
resolve|reply)
|
|
177
|
-
_arguments \
|
|
178
|
-
'-n[Comment number]:number:' \
|
|
179
|
-
'-m[Reply message]:message:'
|
|
180
|
-
_files -g '*.md'
|
|
181
|
-
;;
|
|
182
|
-
check|lookup|add|citations)
|
|
183
|
-
_files -g '*.bib'
|
|
184
|
-
;;
|
|
185
|
-
merge)
|
|
186
|
-
_files -g '*.md' -g '*.docx'
|
|
187
|
-
;;
|
|
188
|
-
backup)
|
|
189
|
-
_arguments \
|
|
190
|
-
'--name[Custom backup name]:name:' \
|
|
191
|
-
'--output[Output directory]:dir:_files -/'
|
|
192
|
-
;;
|
|
193
|
-
export)
|
|
194
|
-
_arguments \
|
|
195
|
-
'--output[Output filename]:file:' \
|
|
196
|
-
'--include-output[Include built files]'
|
|
197
|
-
;;
|
|
198
|
-
*)
|
|
199
|
-
_describe -t commands 'command' commands
|
|
200
|
-
_arguments \
|
|
201
|
-
'--help[Show help]' \
|
|
202
|
-
'--version[Show version]'
|
|
203
|
-
;;
|
|
204
|
-
esac
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
_rev "$@"
|
|
1
|
+
#compdef rev
|
|
2
|
+
|
|
3
|
+
# Zsh completion for rev (docrev)
|
|
4
|
+
# Install: add to fpath or run:
|
|
5
|
+
# eval "$(rev completions zsh)"
|
|
6
|
+
|
|
7
|
+
_rev() {
|
|
8
|
+
local -a commands build_formats doi_actions eq_actions help_topics journals preview_formats
|
|
9
|
+
|
|
10
|
+
commands=(
|
|
11
|
+
'build:Build PDF/DOCX/TEX from sections'
|
|
12
|
+
'new:Create new project from template'
|
|
13
|
+
'import:Import Word document'
|
|
14
|
+
'sections:Import to section files'
|
|
15
|
+
'extract:Extract text from Word'
|
|
16
|
+
'review:Interactive review TUI'
|
|
17
|
+
'status:Show annotation counts'
|
|
18
|
+
'comments:List comments'
|
|
19
|
+
'resolve:Mark comment as resolved'
|
|
20
|
+
'reply:Reply to comments'
|
|
21
|
+
'strip:Output clean markdown'
|
|
22
|
+
'refs:Show reference status'
|
|
23
|
+
'migrate:Convert hardcoded refs'
|
|
24
|
+
'config:Configure settings'
|
|
25
|
+
'install:Check dependencies'
|
|
26
|
+
'doi:DOI validation'
|
|
27
|
+
'citations:Validate citations'
|
|
28
|
+
'equations:Extract equations'
|
|
29
|
+
'figures:List figures'
|
|
30
|
+
'response:Generate response letter'
|
|
31
|
+
'anonymize:Prepare for blind review'
|
|
32
|
+
'validate:Check journal requirements'
|
|
33
|
+
'merge:Merge reviewer feedback'
|
|
34
|
+
'diff:Compare against git history'
|
|
35
|
+
'history:Show revision history'
|
|
36
|
+
'help:Show help'
|
|
37
|
+
'init:Initialize project'
|
|
38
|
+
'split:Split paper.md to sections'
|
|
39
|
+
'word-count:Show word counts per section'
|
|
40
|
+
'wc:Show word counts (alias)'
|
|
41
|
+
'stats:Show project statistics'
|
|
42
|
+
'search:Search across files'
|
|
43
|
+
'backup:Create timestamped backup'
|
|
44
|
+
'export:Export project as zip'
|
|
45
|
+
'preview:Build and open document'
|
|
46
|
+
'watch:Watch and auto-rebuild'
|
|
47
|
+
'lint:Check for issues'
|
|
48
|
+
'grammar:Check grammar and style'
|
|
49
|
+
'annotate:Add comments to DOCX'
|
|
50
|
+
'apply:Apply annotations as track changes'
|
|
51
|
+
'comment:Interactive comment mode'
|
|
52
|
+
'completions:Generate shell completions'
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
preview_formats=(
|
|
56
|
+
'pdf:Preview PDF'
|
|
57
|
+
'docx:Preview Word document'
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
build_formats=(
|
|
61
|
+
'pdf:Build PDF'
|
|
62
|
+
'docx:Build Word document'
|
|
63
|
+
'tex:Build LaTeX'
|
|
64
|
+
'all:Build all formats'
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
doi_actions=(
|
|
68
|
+
'check:Validate DOIs'
|
|
69
|
+
'lookup:Find missing DOIs'
|
|
70
|
+
'fetch:Get BibTeX from DOI'
|
|
71
|
+
'add:Add citation by DOI'
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
eq_actions=(
|
|
75
|
+
'list:List equations'
|
|
76
|
+
'extract:Extract to file'
|
|
77
|
+
'convert:Convert to Word'
|
|
78
|
+
'from-word:Extract from Word'
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
help_topics=(
|
|
82
|
+
'workflow:Review workflow'
|
|
83
|
+
'syntax:CriticMarkup syntax'
|
|
84
|
+
'commands:All commands'
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
journals=(
|
|
88
|
+
'nature:Nature journal'
|
|
89
|
+
'science:Science journal'
|
|
90
|
+
'plos:PLOS ONE'
|
|
91
|
+
'cell:Cell journal'
|
|
92
|
+
'ecology:Ecology journals'
|
|
93
|
+
'custom:Custom profile'
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
case "$words[2]" in
|
|
97
|
+
build)
|
|
98
|
+
_describe -t formats 'format' build_formats
|
|
99
|
+
_arguments \
|
|
100
|
+
'--toc[Include table of contents]' \
|
|
101
|
+
'--show-changes[Show track changes in DOCX]' \
|
|
102
|
+
'--clean[Clean build files]'
|
|
103
|
+
;;
|
|
104
|
+
new)
|
|
105
|
+
_arguments \
|
|
106
|
+
'--list[List templates]' \
|
|
107
|
+
'--template[Template name]:template:(paper minimal thesis proposal)'
|
|
108
|
+
;;
|
|
109
|
+
doi)
|
|
110
|
+
_describe -t actions 'action' doi_actions
|
|
111
|
+
;;
|
|
112
|
+
equations|eq)
|
|
113
|
+
_describe -t actions 'action' eq_actions
|
|
114
|
+
;;
|
|
115
|
+
validate)
|
|
116
|
+
_arguments \
|
|
117
|
+
'--list[List journals]' \
|
|
118
|
+
'--journal[Journal name]:journal:($journals)'
|
|
119
|
+
;;
|
|
120
|
+
help)
|
|
121
|
+
_describe -t topics 'topic' help_topics
|
|
122
|
+
;;
|
|
123
|
+
config)
|
|
124
|
+
_values 'setting' 'user[Set user name]'
|
|
125
|
+
;;
|
|
126
|
+
word-count|wc)
|
|
127
|
+
_arguments \
|
|
128
|
+
'--limit[Word limit]:number:' \
|
|
129
|
+
'--journal[Use journal word limit]:journal:'
|
|
130
|
+
;;
|
|
131
|
+
preview)
|
|
132
|
+
_describe -t formats 'format' preview_formats
|
|
133
|
+
;;
|
|
134
|
+
watch)
|
|
135
|
+
_arguments \
|
|
136
|
+
'--no-open[Do not open after build]'
|
|
137
|
+
_values 'format' 'pdf' 'docx' 'all'
|
|
138
|
+
;;
|
|
139
|
+
lint)
|
|
140
|
+
_arguments \
|
|
141
|
+
'--fix[Auto-fix issues]'
|
|
142
|
+
;;
|
|
143
|
+
grammar)
|
|
144
|
+
_arguments \
|
|
145
|
+
'--learn[Add word to dictionary]:word:' \
|
|
146
|
+
'--forget[Remove from dictionary]:word:' \
|
|
147
|
+
'--list[List dictionary words]' \
|
|
148
|
+
'--rules[List grammar rules]' \
|
|
149
|
+
'--no-scientific[Disable science rules]' \
|
|
150
|
+
'--severity[Minimum severity]:level:(error warning info)'
|
|
151
|
+
_files -g '*.md'
|
|
152
|
+
;;
|
|
153
|
+
annotate)
|
|
154
|
+
_arguments \
|
|
155
|
+
'-m[Comment message]:text:' \
|
|
156
|
+
'-s[Search text]:text:' \
|
|
157
|
+
'-a[Author name]:name:'
|
|
158
|
+
_files -g '*.docx'
|
|
159
|
+
;;
|
|
160
|
+
apply)
|
|
161
|
+
_arguments \
|
|
162
|
+
'-a[Author name]:name:'
|
|
163
|
+
_files -g '*.md'
|
|
164
|
+
;;
|
|
165
|
+
comment)
|
|
166
|
+
_arguments \
|
|
167
|
+
'-a[Author name]:name:'
|
|
168
|
+
_files -g '*.docx'
|
|
169
|
+
;;
|
|
170
|
+
completions)
|
|
171
|
+
_values 'shell' 'bash' 'zsh'
|
|
172
|
+
;;
|
|
173
|
+
import|sections|extract|review|status|comments|strip|refs|migrate|figures|response|anonymize|split|search|stats)
|
|
174
|
+
_files -g '*.md' -g '*.docx'
|
|
175
|
+
;;
|
|
176
|
+
resolve|reply)
|
|
177
|
+
_arguments \
|
|
178
|
+
'-n[Comment number]:number:' \
|
|
179
|
+
'-m[Reply message]:message:'
|
|
180
|
+
_files -g '*.md'
|
|
181
|
+
;;
|
|
182
|
+
check|lookup|add|citations)
|
|
183
|
+
_files -g '*.bib'
|
|
184
|
+
;;
|
|
185
|
+
merge)
|
|
186
|
+
_files -g '*.md' -g '*.docx'
|
|
187
|
+
;;
|
|
188
|
+
backup)
|
|
189
|
+
_arguments \
|
|
190
|
+
'--name[Custom backup name]:name:' \
|
|
191
|
+
'--output[Output directory]:dir:_files -/'
|
|
192
|
+
;;
|
|
193
|
+
export)
|
|
194
|
+
_arguments \
|
|
195
|
+
'--output[Output filename]:file:' \
|
|
196
|
+
'--include-output[Include built files]'
|
|
197
|
+
;;
|
|
198
|
+
*)
|
|
199
|
+
_describe -t commands 'command' commands
|
|
200
|
+
_arguments \
|
|
201
|
+
'--help[Show help]' \
|
|
202
|
+
'--version[Show version]'
|
|
203
|
+
;;
|
|
204
|
+
esac
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
_rev "$@"
|