Skip to content

luleyleo/Sublime-MoveHalfPages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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:

[
    { "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:

[
    { "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

About

A Sublime Text plugin which provides a command to scroll by half pages (or any custom percentage)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages