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
+10 -10
View File
@@ -11,7 +11,7 @@
import fs from 'node:fs'
import path from 'node:path'
const organizedDir = '05 Attachments/Organized'
const organizedDir = '05_Attachments/Organized'
const args = process.argv.slice(2)
const specificFile = args[0]
@@ -69,24 +69,24 @@ walkDir('.', (filepath) => {
const pattern1 = new RegExp(`!\\[\\[${escapedFile}\\]\\]`, 'g')
content = content.replace(
pattern1,
`![[05 Attachments/Organized/${filename}]]`,
`![[05_Attachments/Organized/${filename}]]`,
)
// Pattern 2: ![[05 Attachments/filename]] (file in root being moved)
// Pattern 2: ![[05_Attachments/filename]] (file in root being moved)
const pattern2 = new RegExp(
`!\\[\\[05 Attachments/${escapedFile}\\]\\]`,
`!\\[\\[05_Attachments/${escapedFile}\\]\\]`,
'g',
)
content = content.replace(
pattern2,
`![[05 Attachments/Organized/${filename}]]`,
`![[05_Attachments/Organized/${filename}]]`,
)
// Pattern 3: [[filename]] without ! (for PDFs and other non-embedded links)
// Only if not already pointing to Organized
const pattern3 = new RegExp(`\\[\\[${escapedFile}\\]\\]`, 'g')
const pattern3Organized = new RegExp(
`\\[\\[05 Attachments/Organized/${escapedFile}\\]\\]`,
`\\[\\[05_Attachments/Organized/${escapedFile}\\]\\]`,
'g',
)
@@ -94,18 +94,18 @@ walkDir('.', (filepath) => {
if (!pattern3Organized.test(content)) {
content = content.replace(
pattern3,
`[[05 Attachments/Organized/${filename}]]`,
`[[05_Attachments/Organized/${filename}]]`,
)
}
// Pattern 4: [[05 Attachments/filename]] without !
// Pattern 4: [[05_Attachments/filename]] without !
const pattern4 = new RegExp(
`\\[\\[05 Attachments/${escapedFile}\\]\\]`,
`\\[\\[05_Attachments/${escapedFile}\\]\\]`,
'g',
)
content = content.replace(
pattern4,
`[[05 Attachments/Organized/${filename}]]`,
`[[05_Attachments/Organized/${filename}]]`,
)
})