fix: resolve lonely if ESLint warning

This commit is contained in:
Noah Brier
2025-09-15 08:49:07 -04:00
parent 61d14875d5
commit 3909ab476c
29 changed files with 1300 additions and 790 deletions
+26 -13
View File
@@ -5,22 +5,29 @@ Helper scripts for vault automation and web content capture.
## Available Scripts
### Attachment Management
These are primarily called via npm/pnpm commands in package.json:
- `update-attachment-links.js` - Updates note links after moving attachments
- `fix-renamed-links.js` - Fixes links after renaming files
### Web Content Capture
**Note**: These scripts require API keys to function:
#### firecrawl-scrape.sh
Scrapes a single URL and saves as markdown.
```bash
# Requires FIRECRAWL_API_KEY environment variable
.scripts/firecrawl-scrape.sh <url> <output_file>
```
#### firecrawl-batch.sh
Scrapes multiple URLs and auto-generates filenames.
```bash
# Requires FIRECRAWL_API_KEY environment variable
.scripts/firecrawl-batch.sh <url1> <url2> <url3>
@@ -28,8 +35,11 @@ Scrapes multiple URLs and auto-generates filenames.
```
### Transcript Extraction
#### transcript-extract.sh
Extracts transcripts from YouTube videos.
```bash
.scripts/transcript-extract.sh <youtube-url>
```
@@ -38,21 +48,22 @@ Extracts transcripts from YouTube videos.
Run these from the vault root with `pnpm`:
| Command | Description |
|---------|-------------|
| `attachments:list` | Show first 20 unprocessed attachments |
| `attachments:count` | Count unprocessed attachments |
| `attachments:organized` | Count files in Organized folder |
| `attachments:unprocessed` | Same as count |
| `attachments:refs <file>` | Find references to a specific file |
| `attachments:sizes` | Show 20 largest attachment files |
| `attachments:orphans` | Find unreferenced attachments |
| `attachments:recent` | Show files added in last 7 days |
| `attachments:create-organized` | Create the Organized subfolder |
| Command | Description |
| ------------------------------ | ------------------------------------- |
| `attachments:list` | Show first 20 unprocessed attachments |
| `attachments:count` | Count unprocessed attachments |
| `attachments:organized` | Count files in Organized folder |
| `attachments:unprocessed` | Same as count |
| `attachments:refs <file>` | Find references to a specific file |
| `attachments:sizes` | Show 20 largest attachment files |
| `attachments:orphans` | Find unreferenced attachments |
| `attachments:recent` | Show files added in last 7 days |
| `attachments:create-organized` | Create the Organized subfolder |
## Setup Requirements
### For Web Scraping
1. Get a Firecrawl API key from [firecrawl.dev](https://firecrawl.dev)
2. Add to your shell profile:
```bash
@@ -60,11 +71,13 @@ Run these from the vault root with `pnpm`:
```
### For Transcript Extraction
- Requires `yt-dlp` and `jq` installed:
```bash
# macOS
brew install yt-dlp jq
# Linux
apt-get install yt-dlp jq
```
@@ -81,4 +94,4 @@ Run these from the vault root with `pnpm`:
- Scripts assume Unix-like environment (macOS/Linux)
- Windows users may need WSL or Git Bash
- All paths are relative to vault root
- Check script comments for additional requirements
- Check script comments for additional requirements