This a fork of QuickRulers, a Sublime Text 4 plugin that provides easy access to the "rulers" setting.
Current 'dev' branch is just a personal sandbox, nothing special.
For the time being, it provides:
- A setting for default set of rulers @done
Instead of always inserting your rulers preference at start,
QuickRulers panel will now open with the pre-populated user defaults.
(something like "rulers display-toggle" and "define rulers" in one) - A python 3.8 only version for Sublime Text 4 @done
It just runs on the ST4's python3.8 plugin host, nothing extra.
for whomsoever wants to try it
(take a look at "Skip it" if you just want to toggle rulers display)
Remove "QuickRulers" from "Package Control", if previously installed.
Add to Packages/User/Package Control.sublime-settings
,
"ignore_vcs_packages":
[
"QuickRulers"
]
- Clone or download this repository (the default 'dev' branch for ST4 or the corresponding branch ST3 see Notes).
- Rename the cloned or extracted root folder to
QuickRulers
. - Move the
QuickRulers
folder to your Sublime Text'sPackages
folder.
To find thePackages
folder, click menuPreferences
>Browse Packages
. - Restart Sublime Text, and go edit
Preferences > Package Settings > QuickRulers > Settings
.
alt. way
- Go to
Packages
folder.
(if you don't know, click menuPreferences
>Browse Packages
). - Create a directory named 'QuickRulers' and 'cd' inside it.
- From command line
- Default 'dev' branch (ST4)
git clone --depth 1 https://github.com/Gregory-K/QuickRulers .
- 'dev-ST3' branch see Notes
git clone --depth 1 --branch dev-ST3 https://github.com/Gregory-K/QuickRulers .
- Default 'dev' branch (ST4)
- Restart Sublime Text, and go edit
Preferences > Package Settings > QuickRulers > Settings
.
Delete the contents of Packages/Outline
folder and repeat the "Manual Installation",
OR
'cd' in Packages/Outline
folder and
git fetch && git rebase
for Linux
git fetch; git rebase
for Windows
Create a key binding for the quick_rulers
command, and use it.
Key-binding examples:
[
{ "keys": ["alt+r"], "command": "quick_rulers" },
{ "keys": ["alt+shift+r"], "command": "quick_rulers",
"args": {"show_current": false} }
]
Note: As mentioned above, this is a "playground". Expect rebases, resets, branch renaming.
Branches:
'dev' : default branch for ST4.
'dev-ST3' : branch for ST3.
Other Branches:
'upstream' : clone of the official upstream repository.
All credits goes to the original author FichteFoll.
If you just want to toggle the display of rulers, you could do it with a key-binding set.
{ "keys": ["alt+r"], "command": "set_setting",
"args": {"setting": "rulers", "value": [79, 119]}
},
{ "keys": ["alt+shift+r"], "command": "set_setting",
"args": {"setting": "rulers", "value": []}
},
sorry, a simple one-key-binding to 'toggle_setting' works only with booleans and not with alternating values (ST4 limitation)