ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Recenter​Top​Bottom

by mburrows ST2

Sublime Text 2 plugin that cycles through scrolling the current line to the top, middle and bottom of the screen.

Details

  • 2012.03.27.20.12.53
  • github.​com
  • github.​com
  • 8 years ago
  • 3 hours ago
  • 8 years ago

Installs

  • Total 216
  • Win 67
  • OS X 78
  • Linux 71
Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2
Windows 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
OS X 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
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

Readme

Source
raw.​githubusercontent.​com

RecenterTopBottom

A Sublime Text 2 plugin that cycles between moving the current line to the top, middle and bottom of the visible screen area.

Installation

  1. Open the Sublime Text 2 Packages folder:
- OS X: `~/Library/Application Support/Sublime Text 2/Packages/`
- Windows: `%APPDATA%/Sublime Text 2/Packages/`
- Linux: `~/.Sublime Text 2/Packages/`
  1. Clone this repo:
    git clone git://github.com/mburrows/RecenterTopBottom.git
    

Commands

This plugin provides a single command called recenter_top_bottom. Repeated calls to this command will move the current line to the top, middle and bottom of the visible screen area. The ordering can be customised using the settings file.

Keybindings

The default keybinding is similar to ctrl+l which is bound to the built in show_at_center command:

{ "keys": ["ctrl+alt+l"], "command": "recenter_top_bottom" }

Personally I override the show_at_center command with recenter_top_bottom, it provides all the functionality of the original command and more. This can be accomplished by putting the following in your Key Bindings - User file:

{ "keys": ["ctrl+l"], "command": "recenter_top_bottom" }

Settings

To change the ordering create a file called Packages/User/RecenterTopBottom.sublime-settings and redefine the recenter_positions setting as follows:

{
    "recenter_positions": ["middle", "top", "bottom"]
}