v1.1.3 - Line numbers scroll fix, source mode undo/redo, Ctrl+K links, hard break fixes

- Line numbers scroll fix: source mode line numbers now scroll properly with content
- Source mode undo/redo: custom history stack for Ctrl+Z / Ctrl+Shift+Z in markdown mode
- Shift+Enter hard breaks in source mode (inserts trailing spaces + newline)
- Ctrl+K link shortcut: global keybinding for inserting/editing links
- Link modal improvements: auto-prepends https://, preserves selection range
- Hard break serialization fix: trailing spaces preserved in markdown output
- Drag prevention: prevents native text drag (copy-instead-of-move issue in Tauri webview)
This commit is contained in:
Yuri Karamian
2026-02-18 19:30:02 +01:00
parent 564c28904f
commit c1faf0b0f5
7 changed files with 157 additions and 22 deletions
+4
View File
@@ -170,6 +170,10 @@
e.preventDefault();
editor?.forceSave();
}
if (mod && e.key === 'k' && !e.shiftKey && $activeNotePath && !$sourceMode) {
e.preventDefault();
editor?.addLinkFromToolbar();
}
if (mod && e.shiftKey && e.key === 'M') {
e.preventDefault();
$sourceMode = !$sourceMode;