From fe29f759e1afd90c679abdefb5619a5410af9494 Mon Sep 17 00:00:00 2001 From: Nimaoth Date: Sat, 24 Aug 2024 13:18:17 +0200 Subject: [PATCH] Added some comments --- config/default_config.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/default_config.nim b/config/default_config.nim index f6523deb..0b828d7f 100644 --- a/config/default_config.nim +++ b/config/default_config.nim @@ -117,8 +117,12 @@ proc loadDefaultKeybindings*(clearExisting: bool = false) {.expose("load-default addCommand "editor", "gk", "browse-keybinds" addCommandBlock "editor", "log": runAction "logs" + # Move cursor to end to enable auto scrolling if getActiveEditor().isTextEditor(ed): + # In vim mode this only moves the end of the selection, so the entire file is selected. ed.moveLast("file") + # So do this to make an empty selection at the end + ed.selection = ed.selection.last.toSelection runAction "next-view" withKeys "s":