https://github.com/luleyleo/sublime-movehalfpages
A Sublime Text plugin which provides a command to scroll by half pages (or any custom percentage)
https://github.com/luleyleo/sublime-movehalfpages
Last synced: 3 months ago
JSON representation
A Sublime Text plugin which provides a command to scroll by half pages (or any custom percentage)
- Host: GitHub
- URL: https://github.com/luleyleo/sublime-movehalfpages
- Owner: luleyleo
- License: mit
- Created: 2021-05-23T10:19:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-23T19:22:24.000Z (about 4 years ago)
- Last Synced: 2025-03-24T19:54:07.660Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Move Half Pages
A Sublime Text plugin which provides a command to move by half pages (or any custom percentage).
## Usage
Add these to your keymap:
```json
[
{ "keys": ["pageup"], "command": "move_half_pages", "args": {"forward": false} },
{ "keys": ["pagedown"], "command": "move_half_pages", "args": {"forward": true} },
]
```You can optionally override the percentage like this:
```json
[
{ "keys": ["pageup"], "command": "move_half_pages", "args": {"forward": false, "percentage": 0.5} },
{ "keys": ["pagedown"], "command": "move_half_pages", "args": {"forward": true, "percentage": 0.5} },
]
```## Thanks
This was only possible thanks to this awesome post:
https://forum.sublimetext.com/t/move-cursor-to-top-middle-bottom-of-visible-lines/4586