Skip to content

feat: add keyboard shortcuts to insert current date/time#1668

Open
pannous wants to merge 3 commits intoBoostIO:masterfrom
pannous:feature/insert-date-time-shortcut
Open

feat: add keyboard shortcuts to insert current date/time#1668
pannous wants to merge 3 commits intoBoostIO:masterfrom
pannous:feature/insert-date-time-shortcut

Conversation

@pannous
Copy link

@pannous pannous commented Mar 18, 2026

Fixes #515 — adds keyboard shortcuts to insert the current date or date+time at the cursor position in the editor.

Shortcuts

Shortcut Output
Shift+Ctrl+/ / Shift+Cmd+/ (macOS) Locale date, e.g. 3/18/2026
Ctrl+Alt+/ / Shift+Alt+/ (macOS) Locale date & time, e.g. 3/18/2026, 2:45:00 PM

Implementation

Added four entries to the CodeMirror extraKeys config in the cloud editor. Uses cm.replaceSelection() so it inserts at the cursor or replaces any selected text. Uses toLocaleDateString() / toLocaleString() to respect the user's system locale.

This matches the approach previously implemented for BoostNote.next in #1018.


Funded via IssueHunt

- Shift+Ctrl+/ (Shift+Cmd+/ on macOS): inserts locale date (e.g. 3/18/2026)
- Ctrl+Alt+/ (Shift+Alt+/ on macOS): inserts locale date and time

Closes BoostIO#515
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

pannous added 2 commits March 18, 2026 16:50
- Add dependabot.yml: weekly npm and GitHub Actions updates with grouped PRs
- Add security.yml workflow: weekly npm audit with artifact upload
- Update node.js.yml: upgrade actions to v4, test on Node 18+20, add npm cache
- Enable Dependabot vulnerability alerts and automated security fixes via GitHub API
Enables GitHub CodeQL analysis for JavaScript/TypeScript with
security-extended and security-and-quality query suites.
Results surface in GitHub Security tab / Copilot code scanning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shortcut to insert current date/time

2 participants