4ad6cbe11a
Minor formatting fix the key bindings section of the docs
2025-06-16 22:42:48 +02:00
e4b4401b70
Styling of folded regions in the light theme
2025-06-16 22:34:30 +02:00
8d7f34c3bc
Bump version to 2.3.0-beta
v2.3.0-beta
2025-06-16 16:35:19 +02:00
61a573fd7f
Update changelog
2025-06-16 16:35:07 +02:00
66a66dfdc7
Upgrade to latest version of @codemirror/lang-markdown
2025-06-16 16:34:27 +02:00
4ab0436869
Update changelog
2025-06-16 16:18:40 +02:00
dcfcae4ae0
Merge pull request #344 from heyman/block-folding
...
Improve folding of blocks and code
2025-06-16 16:17:34 +02:00
668b62f77b
Use "Cmd" instead of "Mod" for Mac-only key bindings
2025-06-16 16:01:17 +02:00
47d9856545
Ctrl -> Control for playwright press() call
2025-06-16 15:47:48 +02:00
b4e38ae3e2
Add tests for folding
...
- Check that folded ranges are stored in buffer metadata
- Check that folded blocks' state are persisted between reloads
2025-06-16 15:41:53 +02:00
c8e8b21738
Update key bindings in Changelog
2025-06-16 15:27:20 +02:00
85cfcc46fc
Add tests for toggleBlockFold
...
Change default key binding for folding
Get rid som some unnecessary waitForTimeout() calls
2025-06-16 15:25:47 +02:00
89002017c1
Add test fold folding a block
2025-06-16 14:20:17 +02:00
f8ecffcb52
Always show unfold icon in the fold gutter (while still only showing fold icons on hover)
2025-06-16 13:57:25 +02:00
713f367b2d
Add Playwright tests for block folding functionality
...
- Test that fold gutter doesn't lose editor focus when clicked
- Test that line number gutter doesn't lose editor focus when clicked
2025-06-14 11:33:45 +02:00
455ef203f2
Add info about additional key bindings to documentation
2025-06-13 23:45:22 +02:00
215ad942ff
Add info about block folding improvements to Changelog
2025-06-13 16:56:45 +02:00
0244ed84db
Make foldBlock, unfoldBlock and toggleBlockFold work on multiple blocks when the cursor selection(s) covers multiple blocks.
...
Changed so that the toggleBlockFolds either folds or unfolds all blocks in the selection, instead of swapping the state for each block.
2025-06-13 15:55:45 +02:00
448a26e758
Store and restore folded ranges in the buffer file on save/load
2025-06-13 12:58:17 +02:00
ef04ab9ba9
Don't unfold folded region for changes on the same row as a folded region (but outside the fold), if the change doesn't actually insert anything, if the insertion is adding a new block, or if the change is undo/redo
2025-06-13 12:52:42 +02:00
f8f874e2af
Don't set contentLoaded until the setContent() has been successfully called. This prevents the buffer from being overwritten by broken data if an exception happens in setContent().
2025-06-13 12:16:36 +02:00
a7a4c73bae
Improve block and code folding
...
- Display the number of folded lines for a folded region
- Add commands for folding/unfolding/toggling blocks and assigne them default key bindings
- Add toggleFold command (toggles the nearest foldable range)
- Prevent editor from loosing focus when fold gutter is clicked
- Fix so that a folded region is automatically unfolded if any changes happen on either the start line or the end line of the folded region (even if the change is not within the folded region)
2025-06-12 14:39:34 +02:00
bc863f20fa
Prevent editor from loosing focus when line number gutter is clicked
2025-06-12 14:39:34 +02:00
0e8a5dfccc
Make the Lezer parser for Heynote documents use overlay parsers for the individual blocks
...
This fixes the issue with some blocks not being foldable (since the NoteContent nodes were getting replaced by the tree produced by the sub-parser).
Update the todo-checkbox plugin to use regular expression to find the todo list syntax, since it was previously relying on the parsed syntax tree, and the markdown syntax tree is no longer available in the main document's syntax tree.
2025-06-12 14:39:34 +02:00
82200da28d
Fold the whole content NoteContent nodes
...
(For some reason, we weren't returning the whole size of the NoteContent node 🤷 )
2025-06-12 14:39:34 +02:00
d34980456f
Merge pull request #346 from heyman/fix-ime-positioning
...
Fix wrong positioning if IME interface (for Chinese input)
2025-06-12 14:38:26 +02:00
c1be3afe5d
Turn off CodeMirror's use of EditContext since a bug in Chrome causes the IME interface to show up in the wrong position
2025-06-12 14:24:27 +02:00
a4519ba6ef
Merge pull request #345 from heyman/upgrade-codemirror
...
Upgrade to the latest version of CodeMirror packages
2025-06-12 13:46:36 +02:00
d31ca6780e
Downgrade @codemirror/lang-markdown to 6.3.0 due to issue with lists not being continued in some cases
...
For more details:
https://github.com/codemirror/dev/issues/1575
2025-06-12 13:40:06 +02:00
198836a37e
Upgrade to the latest version of CodeMirror packages
2025-06-12 12:35:19 +02:00
7253684c02
Improve debug syntax tree
...
* Fix indentation CSS styling that wasn't working
* Highlight the current node
2025-06-09 12:37:31 +02:00
362cca8193
Bump version to 2.2.2
v2.2.2
2025-05-06 11:14:07 +02:00
88726d3ddb
Update changelog
2025-05-06 11:13:46 +02:00
1525b9f643
Merge pull request #337 from heyman/fix-settings-issue
...
Fix issue when changing settings with an existing settings file that lacks the keyBindings key
2025-05-06 11:11:01 +02:00
c719f26aeb
Fix issue when changing settings if the existing settings file doesn't have the keyBindings key
2025-05-06 11:01:34 +02:00
748f4d30bc
Import Open Sans font CSS file, since it's no longer imported in the SASS files
...
(see e0edcac9b0
)
2025-05-05 10:48:41 +02:00
ca32c8dad4
Bump version to 2.2.1
v2.2.1
2025-04-25 16:43:21 +02:00
e151749fdf
Add changelog entry about markdown list fix
2025-04-25 16:42:58 +02:00
09e40b4dc0
Merge pull request #332 from heyman/fix-markdown-lists-continue-on-enter
...
Downgrade @codemirror/lang-markdown to 6.3.0 (from 6.3.2)
2025-04-25 16:22:24 +02:00
5768ff658d
Downgrade @codemirror/lang-markdown to 6.3.0 (from 6.3.2) since something in 6.3.1 causes lists to not be continued when pressing enter at the end of a list.
...
Add test.
2025-04-25 16:13:26 +02:00
38a3e3f46e
Merge pull request #331 from heyman/fix-toggle-comment-keybinds
...
Fix key bindings for toggleComment and toggleBlockComment
2025-04-25 15:29:24 +02:00
5c6b366aee
Fix key bindings for toggleComment and toggleBlockComment commands that were previously working.
...
Add toggleComment, toggleBlockComment and toggleLineComment commands to command palette.
2025-04-25 15:21:33 +02:00
6b8ad1661b
Use "Ctrl" instead of "Control" when recording key bindings
2025-04-23 15:28:58 +02:00
fc1985cb1a
Make command keys searchable as well as the label/name of the commands
2025-04-23 15:25:16 +02:00
03cdb0103b
Change the name/label of commands that opens a dialog
2025-04-23 15:25:08 +02:00
db8fb5fd18
Fix issue where the first command in the command palette isn't selected when the dialog is opened
2025-04-23 15:18:32 +02:00
8674c775fa
Bump version to 2.2.0
v2.2.0
2025-04-23 12:06:30 +02:00
83d9aa741c
Bump version to 2.2.0-beta.4
v2.2.0-beta.4
2025-04-22 21:40:28 +02:00
579cc89c7c
Upgrade typescript and vue-tsc
2025-04-22 21:39:12 +02:00
8405614319
Merge pull request #327 from heyman/tab-indentation
...
Add ability to use tabs for indentation instead of spaces
2025-04-22 20:47:40 +02:00