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
0a7f637f9d
Add ability to use tabs for indentation instead of spaces
2025-04-22 20:41:29 +02:00
8dc630a4d6
Bump version to 2.2.0-beta.3
v2.2.0-beta.3
2025-04-22 18:41:53 +02:00
33e65a6127
Merge pull request #326 from heyman/feature-insert-current-datetime
...
Add functionality for inserting the current date and time
2025-04-22 18:38:24 +02:00
a317d94352
Add functionality for inserting the current date and time
2025-04-22 18:31:28 +02:00
8055b43994
Re-ordered commands
2025-04-22 18:23:04 +02:00
74558769e0
Merge pull request #204 from wolimst/feat/move-block
...
Add feature for moving the current block up and down
2025-04-22 18:13:47 +02:00
cdc41b08d6
Add Changelog entry about move blocks up/down function
2025-04-22 18:05:36 +02:00
b9be7bc9fb
Add move block commands for new keybinding system
2025-04-22 18:02:45 +02:00
f1070a125a
Merge branch 'main' into feat/move-block
2025-04-22 18:00:32 +02:00
42775f0ef9
Merge pull request #247 from heyman/upgrade-codemirror-packages
...
Update to latest versions of @codemirror packages
2025-04-22 17:37:41 +02:00
9c3bc8d99d
Update to latest versions of @codemirror packages
2025-04-22 17:30:09 +02:00
3e204c8e9b
Merge pull request #311 from datalater/feat-configure-tab-size
...
Add configuration of tab size
2025-04-22 17:22:57 +02:00