629 Commits

Author SHA1 Message Date
Jonatan Heyman
ba3ff267ae Try switching to (hopefully maintained) fork of action-electron-builder
#build
2025-04-22 14:13:51 +02:00
Jonatan Heyman
9061c90284 Upgrade electron-builder and electron-updater to latest version
#build
2025-04-22 14:13:51 +02:00
Jonatan Heyman
4cee52ad18 Fix issue with ESC key not working immediately after the Settings dialog is opened the first time (due to it being registered after waiting for queryLocalFonts()) 2025-04-22 12:37:06 +02:00
Jonatan Heyman
9a9811c5e8 Fix broken test on non-MacOS 2025-04-22 12:31:17 +02:00
Jonatan Heyman
a7a933c3ef Add test for overriding one of the default key bindings 2025-04-20 13:22:38 +02:00
Jonatan Heyman
29ac62db01 Fix issue adding key binding without any existing custom key bindings v2.2.0-beta 2025-04-19 14:10:04 +02:00
Jonatan Heyman
c4056096a6 Fix key attribute in v-for loop for default key bindings 2025-04-19 13:37:23 +02:00
Jonatan Heyman
aa7daf4ed6 Add info about custom key bindings to documentation 2025-04-19 13:37:23 +02:00
Jonatan Heyman
e7a4de23e7 Add test for deleting a cstom key binding 2025-04-19 13:37:23 +02:00
Jonatan Heyman
1155b55533 Add test for custom key binding 2025-04-19 13:37:23 +02:00
Jonatan Heyman
e31b734fb4 Minor dark mode fixes 2025-04-19 13:37:23 +02:00
Jonatan Heyman
da806d815c Add ability to record keyboard shortcuts 2025-04-19 13:37:23 +02:00
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