]> git.lyx.org Git - lyx.git/commit
Add ScrollType BOTTOM and TOGGLE for BufferView::scrollToCursor()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Sep 2024 20:05:38 +0000 (22:05 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 6 Sep 2024 10:21:42 +0000 (12:21 +0200)
commit6c20e5db7db662239e8c2bd47fe28d18b27bd729
treed349f6886d1961fc9fe9288d31a208cfdab7d2bc
parent9c443d965114318dacbb67db68f5a3fd9b1b8fc2
Add ScrollType BOTTOM and TOGGLE for BufferView::scrollToCursor()

BOTTOM shows the paragraph containing the cursor at the bottom of the
work area.

TOGGLE does CENTER, then TOP, BOTTOM and finally cycles to CENTER.
This is a feature copied from emacs's C-l binding.

Add new argument "caret" to lfun "scroll" that can be used like
  scroll caret center

Change the keys (either C-l, M-l or F5) bound to screen-recenter to
"scroll caret toggle".

As an experiment, change paragraph-goto to use this scrolling method.
This can be tested when going to a heading in the outline pane.
lib/bind/cua.bind
lib/bind/emacs.bind
lib/bind/mac.bind
lib/bind/sciword.bind
lib/bind/xemacs.bind
src/BufferView.cpp
src/BufferView.h
src/LyXAction.cpp