[PR #1018] [MERGED] Add shortcuts to keymap for inserting date strings #1086

Closed
opened 2026-03-03 00:24:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/1018
Author: @Komediruzecki
Created: 6/22/2021
Status: Merged
Merged: 6/23/2021
Merged by: @Rokt33r

Base: masterHead: feature/add-date-shortcuts-for-editor


📝 Commits (1)

  • 19800c6 Add shortcuts to keymap for inserting date strings

📊 Changes

2 files changed (+90 additions, -8 deletions)

View changed files

📝 src/components/atoms/CodeEditor.tsx (+48 -2)
📝 src/lib/keymap.ts (+42 -6)

📄 Description

Add shortcuts to keymap for inserting date strings

  • Also fix codemirror order in which shortcut is generated
    • must be Shift->Ctrl/Cmd/->Alt->Key

Default shortcuts are:
Shift+Ctrl+/ or Shift+Cmd+/ for macOS - Inserts locale date (for example: 6/22/2021)
Ctrl+Alt+/ or Shift+Alt+/ for macOS - Inserts date and time (for example: 6/22/2021, 6:47:46 PM)

Tested in local development mode and AppImage:

  • Change keymaps to something different, test with default shortcuts
  • Add locale date inside editor
  • Add date and time inside editor

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/1018 **Author:** [@Komediruzecki](https://github.com/Komediruzecki) **Created:** 6/22/2021 **Status:** ✅ Merged **Merged:** 6/23/2021 **Merged by:** [@Rokt33r](https://github.com/Rokt33r) **Base:** `master` ← **Head:** `feature/add-date-shortcuts-for-editor` --- ### 📝 Commits (1) - [`19800c6`](https://github.com/BoostIO/BoostNote-App/commit/19800c6819908e0364c462e0dde2a75274ebd95a) Add shortcuts to keymap for inserting date strings ### 📊 Changes **2 files changed** (+90 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/components/atoms/CodeEditor.tsx` (+48 -2) 📝 `src/lib/keymap.ts` (+42 -6) </details> ### 📄 Description Add shortcuts to keymap for inserting date strings - Also fix codemirror order in which shortcut is generated - must be Shift->Ctrl/Cmd/->Alt->Key Default shortcuts are: `Shift+Ctrl+/` or `Shift+Cmd+/` for `macOS` - Inserts locale date (for example: `6/22/2021`) `Ctrl+Alt+/` or `Shift+Alt+/` for `macOS` - Inserts date and time (for example: `6/22/2021, 6:47:46 PM`) Tested in local development mode and AppImage: - Change keymaps to something different, test with default shortcuts - Add locale date inside editor - Add date and time inside editor --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 00:24:35 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#1086
No description provided.