emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Scrolling down after Shift-TAB ?
@ 2012-01-23 23:39 François Pinard
  2012-01-24  0:45 ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: François Pinard @ 2012-01-23 23:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi again.

Very, very often, after a Shift-TAB that collapses all entries, a few
lines in the vicinity of the cursor are shown at the top of the window,
which is mainly empty for its reminder; we contemplate the vacuum
*after* the file.  As my Org files are such that all the top level lines
usually fit in one window, I then invariably scroll down so see it all.

I wonder if this could be automated, yet it is a bit uneasy to exactly
define what would be the ideal.  Let me try an initial suggestion:

- If the whole Org file could be displayed at once, scrolling should
  automatically occur so the first line of the window displays the
  beginning of the Org file.

- Otherwise, if the last line of the window would be *outside* the Org
  file, scrolling should automatically occur so the last line of the
  window displays the end of the Org file.

- If neither of the above holds, do not automatically scroll.

Maybe others could improve on this with better ideas or algorithms ?

François

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-24 12:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23 23:39 Scrolling down after Shift-TAB ? François Pinard
2012-01-24  0:45 ` Nick Dokos
2012-01-24  2:02   ` François Pinard
2012-01-24  2:33     ` Nick Dokos
2012-01-24 12:14       ` François Pinard
2012-01-24 12:15       ` François Pinard

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).