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
  • 12 years ago
  • 22 minutes ago
  • 12 years ago

Installs

  • Total 216
  • Win 67
  • Mac 78
  • Linux 71
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
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
Mac 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"]
}