hsitz / VimOrganizer

VimOrganizer is partly a clone of Emacs' Org-mode, and partly a front end to Org-mode itself. Do Org in Vim.
http://vimeo.com/31531308
518 stars 67 forks source link

<tab> only moves item to top if otherwise extending beyond window #51

Open odabrunz opened 11 years ago

odabrunz commented 11 years ago

Hello H. Sitz,

my repo now has a tiny patch that changes the behavior of <tab> (OrgCycle()). It is now more similar to the behavior in emacs orgmode: an item is only moved to the top of the window if, after opening, it extends beyond the last line of the window.

This reduces the jumping around of window contents when using <tab>.

If you like this patch, please pull it.

Regards,

Olaf

hsitz commented 11 years ago

On Fri, Oct 19, 2012 at 12:03 AM, Olaf Dabrunz notifications@github.comwrote:

Hello H. Sitz,

my repo now has a tiny patch that changes the behavior of (OrgCycle()). It is now more similar to the behavior in emacs orgmode: an item is only moved to the top of the window if, after opening, it extends beyond the last line of the window.

This reduces the jumping around of window contents when using .

If you like this patch, please pull it.

Olaf --

Thanks, I incorporated your changes. I knew behavior wasn't quite like Org but I hadn't taken the time to figure out exactly what difference was. Plus, you had a good solution.

Regards,

Herb