You should put something in the README about the fact that ScrollOffset only works when word wrap is off
ScrollOffset looks like a plugin I might well use (for coding, which is a different situation than the one I've been talking about).
As for using MouseEventListener with my typewriter plugin, I didn't manage to get anything particularly useful done.
I've thrown up the plugin below, if you don't mind having a look. (But I don't mean to impose.)
import sublime, sublime_plugin
def on_selection_modified(self, view):
if view.settings().get('typewriter_mode') == 1:
sel = view.sel()
region = sel if len(sel) == 1 else None
if region != None:
The plugin keeps the cursor always centered. What I've been hoping to do is to prevent is extending the selection with mouse clicking. Is this possible?
Again, feel free to ignore this stuff.