Skip to content

Commit

Permalink
Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Aug 24, 2024
1 parent 52cbccc commit fe29f75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/default_config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ proc loadDefaultKeybindings*(clearExisting: bool = false) {.expose("load-default
addCommand "editor", "<LEADER>gk", "browse-keybinds"
addCommandBlock "editor", "<LEADER>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 "<LEADER>s":
Expand Down

0 comments on commit fe29f75

Please sign in to comment.