@qvac/skills 0.1.3 → 0.1.5
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/bundled.js +9 -9
- package/hash.js +1 -1
- package/package.json +1 -1
- package/skills/apple-notes/create-note.applescript +6 -3
- package/skills/apple-notes/references/write.md +9 -0
- package/skills/spotify/SKILL.md +26 -21
- package/skills/weather/SKILL.md +39 -23
- package/skills/word/SKILL.md +37 -43
- package/skills/word/references/create.md +39 -7
- package/skills/word/references/{replace.md → paragraphs.md} +49 -10
- package/skills/word/references/{edit.md → rework.md} +77 -14
- package/skills/word/scripts/list_paragraphs.py +6 -0
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
Usage: list_paragraphs.py <input.docx>
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
+
import glob
|
|
6
7
|
import sys
|
|
7
8
|
|
|
8
9
|
from docx import Document
|
|
9
10
|
|
|
11
|
+
|
|
12
|
+
# A call that stages the document but forgets scriptArgs still means that document.
|
|
13
|
+
staged = glob.glob("*.docx")
|
|
14
|
+
if len(sys.argv) == 1 and len(staged) == 1:
|
|
15
|
+
sys.argv.append(staged[0])
|
|
10
16
|
if len(sys.argv) != 2:
|
|
11
17
|
sys.exit(f"usage: list_paragraphs.py <input.docx> — got {sys.argv[1:]}")
|
|
12
18
|
|