Commit Graph

596 Commits

Author SHA1 Message Date
1f3a197e93 Upgrade playwright to latest version 2025-04-19 13:37:23 +02:00
cf63ce920d Make sure editor element is visible at the start of tests 2025-04-19 13:37:23 +02:00
ed3a35af2c Remove unnecessary syntax 2025-04-19 13:37:23 +02:00
2859250def Fix binding of Enter key 2025-04-19 13:37:23 +02:00
829806d265 Fix flaky tests 2025-04-19 13:37:23 +02:00
d7ceab52f9 Add wait time to make test less flaky 2025-04-19 13:37:23 +02:00
94f5534611 Revamp key bindings
This is a work in progress revamp of the key binding system. It implements a system, built on top of CodeMirror's key binding system, for defining key bindings. 

The system uses a dumb "KeyShortcut" -> "Command" mapping with a set of default keys (which will be different if Heynote's Emacs mode is used) that can be overridden by user key bindings.

The key bindings are *displayed* in the Settings, and it's possible to set user defined key bindings in Heynote's config file, but it's not yet possible to define custom key bindings in the UI.

Previously we Heynote on a bunch of default key bindings from CodeMirror (some of which was not "block aware"). This is no longer the case, and because of this, it's quite likely that there are key bindings that was previously working that is now missing (if so, these can easily be added later).
2025-04-19 13:37:23 +02:00
9be328cbe4 Remove old unused code 2025-04-19 13:37:23 +02:00
ffec1c498d Return true from delete block commands (to prevent any other commands to run) 2025-04-19 13:37:23 +02:00
ae4d86b9f3 Improve the way we handle SelectAll events (from the Menu shortcuts) when a text input (and not the editor) has focus 2025-04-19 13:37:23 +02:00
813522cc0e Set tab-index="-1" for todo checkboxes
Otherwise they will be focusable when opening the search panel and pressing tab to cycle between the fields
2025-04-19 13:37:23 +02:00
0de4710cf3 Add "block aware" transposeChars command 2025-04-19 13:37:23 +02:00
deedf24394 Fix issue where deleteLine command could fuck up the Heynote block syntax 2025-04-19 13:37:23 +02:00
863a721bef Update link texts
Signed-off-by: Jonatan Heyman <jonatan@heyman.info>
2025-04-08 14:05:50 +02:00
76df74fe67 Bump version to 2.1.4 v2.1.4 2025-04-08 13:35:06 +02:00
4e5a1139d9 Add transactionsHasAnnotation utility function v2.1.4-beta 2025-04-07 13:34:03 +02:00
c397511bda Bump version to 2.1.4-beta 2025-04-07 13:15:09 +02:00
3f7671503d Don't perform editor Select All command if the editor isn't focused (e.g. the Settings modal is open).
Fix Editor/Editor Cache teardown/cleanup.
2025-04-07 13:12:01 +02:00
15df9e5e5c Fix issue when pressing Ctrl/Cmd+A in a text input inside a modal dialog 2025-04-07 13:12:01 +02:00
fa83c50f44 Add tests that checks positioning of todo checkboxes depending on font type 2025-04-07 11:50:41 +02:00
85f59661e9 Fix issue with positioning and size of todo list checkboxes in Markdown blocks
Use two different ways of positioning the checkbox depending on if the font is monospaced or not
2025-04-07 11:50:41 +02:00
50f3cae372 Bump version to 2.1.3 v2.1.3 2025-03-03 16:56:51 +01:00
ff68fee5ba Update changelog 2025-03-03 16:56:17 +01:00
487c274e23 Fix issue with highlighting matched string in the buffer selector
broke in f1d74bb14f
2025-03-03 16:56:17 +01:00
ea16ff0c73 Update changelog 2025-03-03 13:54:22 +01:00
d3e0e6b3a2 Upgrade Github action: upload-artifact to v4 (v3 is deprecated) v2.1.2 2025-03-03 13:16:16 +01:00
7aff5d75ef Bump version to 2.1.2 2025-03-03 13:11:15 +01:00
f1d74bb14f Fix escaping issue in buffer selector
Buffer names and paths are now properly escaped.
2025-03-03 13:06:46 +01:00
a4b187ed49 Bump version to 2.1.1 v2.1.1 2025-01-15 14:16:23 +01:00
d9056b1635 Fix "note" -> "buffer" terminology 2025-01-15 14:15:33 +01:00
fd1f86eb8a Update changelog 2025-01-15 14:15:33 +01:00
ee06b01b60 Fix broken sub directories on Windows
Don't use hard coded path separator 🤦
2025-01-15 14:15:33 +01:00
da523d70e7 Also trigger website build when a release is published 2025-01-10 14:20:36 +01:00
3963e8fb30 Add github action workflow that triggers build of heynote.com 2025-01-10 14:16:02 +01:00
346805bb81 Update Changelog 2025-01-10 10:40:13 +01:00
ef078b4627 Bump version to 2.1.3 v2.1.0 2025-01-10 10:20:02 +01:00
b31310bc8b Update docs and readme 2025-01-09 21:51:26 +01:00
10952883fa Bump version to 2.1.0-beta.3 v2.1.0-beta.3 2025-01-09 18:36:52 +01:00
c82ec2b3a9 Upgrade Electron to version 33.3.1 2025-01-09 18:31:50 +01:00
449b0a569f Use block aware "Select All" command in context menu and app menu 2025-01-09 17:19:59 +01:00
3107cb5368 Add right click context menu and improve application menu
- Add right-click context menu with undo/redo/cut/copy/paste/select all options, as well as Delete block and Move block to another buffer
- Add Delete Block and Move Block to another buffer in the application menu
- Change so that we use our custom "undo" event instead of relying on the default undo event, since there were cases when the default undo didn't trigger the CodeMirror undo reliably
2025-01-09 17:19:59 +01:00
0cec80be7d Bump version to 2.1.0-beta.2 v2.1.0-beta.2 2025-01-09 14:28:17 +01:00
b23409157a Add Changelog entry 2025-01-09 14:16:20 +01:00
52a6c444eb Position the cursor at the beginning of the next block when a block is deleted
This also changes the behavior when blocks are moved.
Add tests for the deleteBlock command.
2025-01-09 14:16:20 +01:00
03ec7a4867 Fix issue causing vite build not to work v2.1.0-beta 2025-01-07 23:37:36 +01:00
cf51779e37 Bump version to 2.1.0-beta 2025-01-07 23:28:02 +01:00
6187d6d468 Add menu item to open "Move block" dialog 2025-01-07 23:17:23 +01:00
c9c092fc43 Add feature for moving the current block to another buffer
- The Ctrl/Cmd-S keyboard shortcut now pops up a buffer search dialog that can be used to select a buffer that the block should be moved to. 
- Update `BufferSelector` UI and logic to support moving blocks
2025-01-07 23:17:23 +01:00
158ac08418 Move block parsing functions into their own JS module so that they can be imported in node land when running Playwright tests 2025-01-07 19:09:16 +01:00
f356e3b249 Refactor editior instance creation and settings management
- Refactor settings management into separate pinia store
- Move creation of editor instances into editorCacheStore
- Read settings directly from the settingsStore instead of passing it from App to Editor to the editor instance
2025-01-07 19:09:16 +01:00