Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Summon it with a hotkey. Jot. Dismiss. It stays out of your way until you need i
- **Reactive math & variables** — define `/var x = 10`, write `x * 3 =`, get `30`. Change the variable, everything updates. Works across notes with `/globvar`.
- **Inline AI** — type `/ai <prompt>`, press enter, get the answer inserted directly into your note. No sidebar, no context switch.
- **Auto-highlights hex colors, dates, and times** — `#D97757` renders as a color pill. `2024-05-31` gets highlighted. Useful at a glance.
- **Interactive Checkboxes** — Type `/check` to create an interactive checkbox that strikes through text when clicked.
- **Tags & folders** — `!tagname` for tags, `/` in note titles for folders. Simple conventions, no UI overhead.
- **Graph view** — see how your notes connect (`Cmd+G`).

Expand Down
3 changes: 3 additions & 0 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@

To navigate, use **Cmd + Click** (or **Ctrl + Click**) on any internal link. You can look at all the files in the order you want!

Here's an interactive checkbox to try out right now:
/check I am learning PaperCache!

Try Cmd+Clicking these to learn the ropes:
- [1. Basics](/file commands/basics.md)
- [2. Folders](/file commands/folders.md)
Expand Down Expand Up @@ -230,7 +233,7 @@
const state = JSON.parse(fs.readFileSync(STATE_FILE, 'utf-8'))
return { ...state }
}
} catch (e) {

Check warning on line 236 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

'e' is defined but never used

Check warning on line 236 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

'e' is defined but never used
// Ignore error
}
return { width: defaultWidth, height: defaultHeight, x: defaultX, y: defaultY }
Expand All @@ -244,7 +247,7 @@
fs.mkdirSync(NOTES_DIR, { recursive: true })
}
fs.writeFileSync(STATE_FILE, JSON.stringify(bounds))
} catch (e) {

Check warning on line 250 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

'e' is defined but never used

Check warning on line 250 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

'e' is defined but never used
// Ignore error
}
}
Expand Down Expand Up @@ -362,7 +365,7 @@
win.webContents.send('trigger-new-note')
}
})
} catch (e) {}

Check warning on line 368 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

Empty block statement

Check warning on line 368 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

'e' is defined but never used

Check warning on line 368 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

Empty block statement

Check warning on line 368 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

'e' is defined but never used
}

const registerToggleShortcut = (combo: string) => {
Expand All @@ -371,7 +374,7 @@
globalShortcut.unregister(combo)
}
globalShortcut.register(combo, toggleWindow)
} catch (e) {}

Check warning on line 377 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

Empty block statement

Check warning on line 377 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

'e' is defined but never used

Check warning on line 377 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

Empty block statement

Check warning on line 377 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

'e' is defined but never used
}

ipcMain.on('update-global-shortcut', (event, { action, oldShortcut, newShortcut }) => {
Expand All @@ -384,7 +387,7 @@
} else if (action === 'toggle') {
registerToggleShortcut(newShortcut)
}
} catch (e) {}

Check warning on line 390 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

Empty block statement

Check warning on line 390 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

'e' is defined but never used

Check warning on line 390 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

Empty block statement

Check warning on line 390 in electron/main.ts

View workflow job for this annotation

GitHub Actions / build-and-test (ubuntu-latest)

'e' is defined but never used
})

app.on('activate', () => {
Expand Down
1 change: 1 addition & 0 deletions features.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This document outlines every feature available in the PaperCache codebase, organ
- **Code Snippets**: Supports triple backtick fenced code blocks with language-specific syntax highlighting, along with a built-in one-click "Copy Code" button that displays a checkmark upon success.
- **Color Format Recognition**: Automatically detects hex colors (e.g., `#D97757` or `#fff`) and renders a small inline preview color pill.
- **Date & Time Formats**: Highlights standard date (`YYYY-MM-DD`) and time (`HH:MM` or `HH:MM:SS`) formats into clean, distinct pills.
- **Interactive Checkboxes**: Type `/check` to create an interactive checkbox widget. Clicking it changes it to `/checked` and visually strikes through the text on that line!
- **Customizable Theming & Fonts**: Customize fonts, text colors, background colors, background images, and individual highlight colors for variables, AI, and math. Supports full dark mode (`grid-dark`, `blueprint`) and custom zoom scaling.

## Math, Variables, and Calculations
Expand Down
Loading
Loading