617 Commits

Author SHA1 Message Date
Jonatan Heyman
c64033359b Add functionality to add and delete user key bindings 2025-04-19 13:37:23 +02:00
Jonatan Heyman
08e0e9f7c3 Set inert on editor when Settings dialog is shown 2025-04-19 13:37:23 +02:00
Jonatan Heyman
1ce6e61396 Upgrade vite and @vitejs/plugin-vue 2025-04-19 13:37:23 +02:00
Jonatan Heyman
a8dcb94347 Move vuedraggable to dev dependencies 2025-04-19 13:37:23 +02:00
Jonatan Heyman
88fc7da486 Add CSS variable --highlight-color 2025-04-19 13:37:23 +02:00
Jonatan Heyman
bffab4792a Change description of markdown command: insertNewlineContinueMarkup 2025-04-19 13:37:23 +02:00
Jonatan Heyman
4a9c835a99 Increase width of buffer selector/command palette.
Decrease width of language selector.
2025-04-19 13:37:23 +02:00
Jonatan Heyman
a080b627e0 Add descriptions and categories to commands
Use the descriptions and categories in the Command palette and Settings dialog
2025-04-19 13:37:23 +02:00
Jonatan Heyman
bcaa2d3006 Increase default window size slightly, and increase size of Settings dialog 2025-04-19 13:37:23 +02:00
Jonatan Heyman
28fb986250 Rename Emacs mark mode -> Selection mark mode 2025-04-19 13:37:23 +02:00
Jonatan Heyman
c6cae17522 Rename Emacs mark mode -> Selection mark mode 2025-04-19 13:37:23 +02:00
Jonatan Heyman
4241a9d6ce Rename Emacs mark mode -> Selection mark mode 2025-04-19 13:37:23 +02:00
Jonatan Heyman
166855c6f5 Fix tests and webapp 2025-04-19 13:37:23 +02:00
Jonatan Heyman
01aba1fb9f Add command that does nothing except preventing further commands to execute for a specific keybinding (can be used to remove a default key binding) 2025-04-19 13:37:23 +02:00
Jonatan Heyman
89f883e5e9 Make emacs mark mode commands return true to stop other key bindings from executing 2025-04-19 13:37:23 +02:00
Jonatan Heyman
7a2740ef19 * Change so that keybindings are stored as lists, so that a key can be bound to ultiple commands (and commands can return false, to let another command execute).
* Implement ability to reorder user key bindings in settings.
2025-04-19 13:37:23 +02:00
Jonatan Heyman
edeb3aee4b Fix copy
Change file -> files
2025-04-19 13:37:23 +02:00
Jonatan Heyman
15727551f3 Bump version. Add Changelog entries.
#build
2025-04-19 13:37:23 +02:00
Jonatan Heyman
addf310ae1 Add "command palette" functionality 2025-04-19 13:37:23 +02:00
Jonatan Heyman
85b91f0228 Run Playwright tests in parallel on CI 2025-04-19 13:37:23 +02:00
Jonatan Heyman
37e0272f7a Update @codemirror/view and @codemirror/state to latest versions 2025-04-19 13:37:23 +02:00
Jonatan Heyman
1f3a197e93 Upgrade playwright to latest version 2025-04-19 13:37:23 +02:00
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