Compare commits

..
2 Commits
Author SHA1 Message Date
EnumDev d8161ac43d Swap X and Y coordinates in select-all command 2026-09-30 13:23:18 +03:00
EnumDev de64c1766f Add default binding for select-all 2026-09-30 13:20:33 +03:00
2 changed files with 5 additions and 2 deletions

No files matched your search

+4 -1
View File
@@ -49,4 +49,7 @@ keybindings:
command: "menu-buffers"
- keybinding: "Ctrl-E"
cursor_modes: ["buffer"]
command: "execute"
command: "execute"
- keybinding: "Ctrl-A"
cursor_modes: ["buffer"]
command: "select-all"
+1 -1
View File
@@ -26,7 +26,7 @@ func initCommands() {
lastLine := window.CurrentBuffer.Contents[len(window.CurrentBuffer.Contents)-1]
window.CurrentBuffer.Selection = &Selection{
selectionStart: Position{0, 0},
selectionEnd: Position{len(window.CurrentBuffer.Contents) - 1, len(lastLine) - 1},
selectionEnd: Position{len(lastLine), len(window.CurrentBuffer.Contents) - 1},
}
window.PrintMessage("Selected all text", TYPER_MESSAGE_INFO)