Jonatan Heyman
cf63ce920d
Make sure editor element is visible at the start of tests
2025-04-19 13:37:23 +02:00
Jonatan Heyman
ed3a35af2c
Remove unnecessary syntax
2025-04-19 13:37:23 +02:00
Jonatan Heyman
2859250def
Fix binding of Enter key
2025-04-19 13:37:23 +02:00
Jonatan Heyman
829806d265
Fix flaky tests
2025-04-19 13:37:23 +02:00
Jonatan Heyman
d7ceab52f9
Add wait time to make test less flaky
2025-04-19 13:37:23 +02:00
Jonatan Heyman
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
Jonatan Heyman
9be328cbe4
Remove old unused code
2025-04-19 13:37:23 +02:00
Jonatan Heyman
ffec1c498d
Return true from delete block commands (to prevent any other commands to run)
2025-04-19 13:37:23 +02:00
Jonatan Heyman
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
Jonatan Heyman
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
Jonatan Heyman
0de4710cf3
Add "block aware" transposeChars command
2025-04-19 13:37:23 +02:00
Jonatan Heyman
deedf24394
Fix issue where deleteLine command could fuck up the Heynote block syntax
2025-04-19 13:37:23 +02:00
Jonatan Heyman
863a721bef
Update link texts
...
Signed-off-by: Jonatan Heyman <jonatan@heyman.info>
2025-04-08 14:05:50 +02:00
Jonatan Heyman
76df74fe67
Bump version to 2.1.4
v2.1.4
2025-04-08 13:35:06 +02:00
Jonatan Heyman
4e5a1139d9
Add transactionsHasAnnotation utility function
v2.1.4-beta
2025-04-07 13:34:03 +02:00
Jonatan Heyman
c397511bda
Bump version to 2.1.4-beta
2025-04-07 13:15:09 +02:00
Jonatan Heyman
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
Jonatan Heyman
15df9e5e5c
Fix issue when pressing Ctrl/Cmd+A
in a text input inside a modal dialog
2025-04-07 13:12:01 +02:00
Jonatan Heyman
fa83c50f44
Add tests that checks positioning of todo checkboxes depending on font type
2025-04-07 11:50:41 +02:00
Jonatan Heyman
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
Jonatan Heyman
50f3cae372
Bump version to 2.1.3
v2.1.3
2025-03-03 16:56:51 +01:00
Jonatan Heyman
ff68fee5ba
Update changelog
2025-03-03 16:56:17 +01:00
Jonatan Heyman
487c274e23
Fix issue with highlighting matched string in the buffer selector
...
broke in f1d74bb14f9ce38cb7627a3a8778f1f4009d0c18
2025-03-03 16:56:17 +01:00
Jonatan Heyman
ea16ff0c73
Update changelog
2025-03-03 13:54:22 +01:00
Jonatan Heyman
d3e0e6b3a2
Upgrade Github action: upload-artifact to v4 (v3 is deprecated)
v2.1.2
2025-03-03 13:16:16 +01:00
Jonatan Heyman
7aff5d75ef
Bump version to 2.1.2
2025-03-03 13:11:15 +01:00
Jonatan Heyman
f1d74bb14f
Fix escaping issue in buffer selector
...
Buffer names and paths are now properly escaped.
2025-03-03 13:06:46 +01:00
Jonatan Heyman
a4b187ed49
Bump version to 2.1.1
v2.1.1
2025-01-15 14:16:23 +01:00
Jonatan Heyman
d9056b1635
Fix "note" -> "buffer" terminology
2025-01-15 14:15:33 +01:00
Jonatan Heyman
fd1f86eb8a
Update changelog
2025-01-15 14:15:33 +01:00
Jonatan Heyman
ee06b01b60
Fix broken sub directories on Windows
...
Don't use hard coded path separator 🤦
2025-01-15 14:15:33 +01:00
Jonatan Heyman
da523d70e7
Also trigger website build when a release is published
2025-01-10 14:20:36 +01:00
Jonatan Heyman
3963e8fb30
Add github action workflow that triggers build of heynote.com
2025-01-10 14:16:02 +01:00
Jonatan Heyman
346805bb81
Update Changelog
2025-01-10 10:40:13 +01:00
Jonatan Heyman
ef078b4627
Bump version to 2.1.3
v2.1.0
2025-01-10 10:20:02 +01:00
Jonatan Heyman
b31310bc8b
Update docs and readme
2025-01-09 21:51:26 +01:00
Jonatan Heyman
10952883fa
Bump version to 2.1.0-beta.3
v2.1.0-beta.3
2025-01-09 18:36:52 +01:00
Jonatan Heyman
c82ec2b3a9
Upgrade Electron to version 33.3.1
2025-01-09 18:31:50 +01:00
Jonatan Heyman
449b0a569f
Use block aware "Select All" command in context menu and app menu
2025-01-09 17:19:59 +01:00
Jonatan Heyman
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
Jonatan Heyman
0cec80be7d
Bump version to 2.1.0-beta.2
v2.1.0-beta.2
2025-01-09 14:28:17 +01:00
Jonatan Heyman
b23409157a
Add Changelog entry
2025-01-09 14:16:20 +01:00
Jonatan Heyman
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
Jonatan Heyman
03ec7a4867
Fix issue causing vite build not to work
v2.1.0-beta
2025-01-07 23:37:36 +01:00
Jonatan Heyman
cf51779e37
Bump version to 2.1.0-beta
2025-01-07 23:28:02 +01:00
Jonatan Heyman
6187d6d468
Add menu item to open "Move block" dialog
2025-01-07 23:17:23 +01:00
Jonatan Heyman
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
Jonatan Heyman
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
Jonatan Heyman
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
Jonatan Heyman
574dcfdc24
Listen for REDO_EVENT from main process and issue redo command when received ( #292 #291 )
2025-01-06 16:29:12 +01:00