Center view when at the bottom of the buffer #36
Replies: 1 comment
-
In your *~/.textadept/init.lua*:
view.end_at_last_line = false
See https://orbitalquark.github.io/textadept/api.html#view.end_at_last_line
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
smartmic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I just discovered textadept and I am still finding my way around. Very often, when I am at the bottom of both the buffer and window, I want to (vertically) center my current line. So I figured out to assign a key binding but it only works reliable if my cursor is not at the bottom (window) half of the buffer. Eg. if I am on the last line of a long text buffer, hit my key binding and start editing, the cursor line jumps to the window bottom again.
How can I keep the vertical center also for editing?
I used this key binding assignment:
Any help is welcome — thanks in advance!
Martin
Beta Was this translation helpful? Give feedback.
All reactions