Horizontal Scroll
Adds hotkeys to scroll horizontally using the keyboard.
Details
Installs
- Total 4K
- Win 2K
- Mac 595
- Linux 834
Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Horizontal Scroll
for Sublime Text 2 or 3
Ever wanted to scroll horizontally in Sublime Text with your keyboard?
Well. Now you can.
Installation
Step 1 – Go get wbond's beautifully simple Sublime Package-Control.
Step 2 – Hit ctrl+shift+p
(Windows, Linux) or cmd+shift+p
(OSX), run the install package
command.
Step 3 – Search for and install Horizontal Scroll.
Step 4 – Win and/or Profit.
Usage
The Short
Is there text running off the edge of your editor?
Is this plug-in installed?
Press alt+down
. Or ctrl+alt+shift+down
if you're on a Mac.
There weren't any good hotkeys left! I'm sorry!
The Long
This plug-in adds one command to Sublime Text which exposes easy-to-hotkey horizontal scrolling, and makes a guess as to how to incorporate it for you.
By default, the hotkeys to scroll right and left are, respectively, alt+down
and alt+up
for Windows/Linux, or ctrl+alt+shift+down
and ctrl+alt+shift+up
if you're on a Mac – chosen to reflect Sublime's default scroll_lines
behavior (ctrl+up/down
and ctrl+alt+up/down
). This, of course, can be mapped to any hotkey combination you might by want by modifying your personal Preferences -> Key Bindings - User
. (And seriously, if you're on a Mac, please do.)
The command that this plug-in adds is (at most):
"command": "scroll_width", "args": {"amount": [+/-]30, "by_character": True}
If by_character
is left True
motion is based on the width of an em-dash, which allows this command to scale motion with your current font size. If by_character
is False
, scroll_width
will move the screen by amount
of raw pixels. I'd recommend pumping amount
up to at least 150 if you're not scrolling by_character
.
by_character
defaults to True
, by the way, so if you ever set this command up – when, say, rebinding the Mac keys – you can skip that argument.
amount
is simply a relative indicator of how far every call to scroll_width
will move the screen, with negative scrolling the screen left.
This project is open under the MIT License