fix: correct hardcoded folder paths to use underscores

- Fix transcript-extract.sh: `00 Inbox/Clippings` → `00_Inbox/Clippings/`
- Fix firecrawl-batch.sh: `00 Inbox/Clippings` → `00_Inbox/Clippings/`
- Add `-o|--output-dir` flag to firecrawl-batch.sh for custom paths
- Fix update-attachment-links.js: `05 Attachments` → `05_Attachments`
- Fix fix-renamed-links.js: `05 Attachments` → `05_Attachments`
- Fix GEMINI_VISION_QUICK_START.md example paths
- Update README.md with new flag documentation

All folder paths now match actual repo structure (underscores not spaces).
This prevents scripts from failing due to incorrect directory references.

Fixes #9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Noah Brier
2025-10-12 21:25:52 -04:00
co-authored by Claude
parent d2a3b58937
commit 5b00b25240
7 changed files with 62 additions and 37 deletions
+5 -5
View File
@@ -23,7 +23,7 @@ if (args.length !== 2) {
}
const [oldName, newName] = args
const newPath = `05 Attachments/Organized/${newName}`
const newPath = `05_Attachments/Organized/${newName}`
console.log(`Fixing links: ${oldName}${newName}`)
@@ -59,9 +59,9 @@ walkDir('.', (filepath) => {
const pattern1 = new RegExp(`!\\[\\[${escapedOld}\\]\\]`, 'g')
content = content.replace(pattern1, `![[${newPath}]]`)
// Pattern 2: ![[05 Attachments/oldname]]
// Pattern 2: ![[05_Attachments/oldname]]
const pattern2 = new RegExp(
`!\\[\\[05 Attachments/${escapedOld}\\]\\]`,
`!\\[\\[05_Attachments/${escapedOld}\\]\\]`,
'g',
)
content = content.replace(pattern2, `![[${newPath}]]`)
@@ -70,9 +70,9 @@ walkDir('.', (filepath) => {
const pattern3 = new RegExp(`(?<!!)\\[\\[${escapedOld}\\]\\]`, 'g')
content = content.replace(pattern3, `[[${newPath}]]`)
// Pattern 4: [[05 Attachments/oldname]] without !
// Pattern 4: [[05_Attachments/oldname]] without !
const pattern4 = new RegExp(
`(?<!!)\\[\\[05 Attachments/${escapedOld}\\]\\]`,
`(?<!!)\\[\\[05_Attachments/${escapedOld}\\]\\]`,
'g',
)
content = content.replace(pattern4, `[[${newPath}]]`)