No description provided
- Total 2K
- Win 744
- Mac 974
- Linux 338
|Mar 22||Mar 21||Mar 20||Mar 19||Mar 18||Mar 17||Mar 16||Mar 15||Mar 14||Mar 13||Mar 12||Mar 11||Mar 10||Mar 9||Mar 8||Mar 7||Mar 6||Mar 5||Mar 4||Mar 3||Mar 2||Mar 1||Feb 28||Feb 27||Feb 26||Feb 25||Feb 24||Feb 23||Feb 22||Feb 21||Feb 20||Feb 19||Feb 18||Feb 17||Feb 16||Feb 15||Feb 14||Feb 13||Feb 12||Feb 11||Feb 10||Feb 9||Feb 8||Feb 7||Feb 6|
ScrollOffset automatically scrolls the buffer when the insertion point gets near the edge, similar to how vim's scrolloff works. ScrollOffset works with multiple selections, and you can change how far from the edge you'd like to stay.
This Plugin is implemented using Layout-Coordinates, so it also works when you have
When you use multiple selections which do not fit into the viewport, Sublimes default behviour is used. This might change in future versions - you find a
TODO in the code where to add the logic for such behaviour.
Ignoring Mouse Input
ScrollOffset runs whenever the selection changes. If you would like to ignore mouse input for ScrollOffset purposes, you must also install MouseEventListener. Once MouseEventListener is installed, ScrollOffset will automatically start ignoring mouse input.
However, selecting more than the viewport can display still feels a bit awkward. Since Sublime does not offer a possibility to detect mouse dragging, one can not implement Sublimes default behaviour when it comes to those kind of selections. Just try it out whether it's a hassle for you.
This plugin is available through Package Control, which is available here:
As mentioned above, installing MouseEventListener is good idea.
Go to your Packages subdirectory under ST2's data directory:
- Windows: %APPDATA%\Sublime Text 2
- OS X: ~/Library/Application Support/Sublime Text 2
- Linux: ~/.config/sublime-text-2
- Portable Installation: Sublime Text 2/Data
Then clone this repository:
git clone git://github.com/Wolff09/ScrollOffset.git