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

Indentation​Navigation

by shagabutdinov ALL

Navigate through text usign indentation

Details

Installs

  • Total 5K
  • Win 3K
  • Mac 774
  • Linux 870
Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14
Windows 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 2 1 0 0 0 0 0 0 0 0 1 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 1 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 2 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Sublime IndentationNavigation plugin

This is glorious plugin that allow to navigate through text using indentation of lines. It reduce count of typing drastically when managing or navigating through blocks of code.

Demo

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check “Installing packages separately” section of sublime-enhanced package.

Usage

There is several handy usecases (please see keyboard shortcuts in “commands” section below):

  1. Go to out of indentation - when cursor is in “if” or “for” block hit keyboard shortcut to go to beginning or end of this block.
if condition
    statement1 # <- cursor at this line
    statement2
  |end # <- cursor here after executing command
  1. Go to into next indented block
statement1 # <- cursor at this line
  statement2

  |if condition # <- cursor here after executing command
    ...
  end
  1. Go to end of next indented block
statement1 # <- cursor at this line
  statement2

  if condition
    ...
  |end # <- cursor here after executing command
  1. Select to next indented block
| # <- cursor here
  {statement1
  statement2} # <- block will be selected after executing command

  if condition
    ...
  end
  1. Select up to next indented block
| # <- cursor here
  {statement1
  statement2

  if condition
    ...
  end} # <- block will be selected after executing command
  1. Select current indented block to the end
if condition
    statement1
    | # <- cursor here
    {statement2
    statement3} # <- block will be selected after executing command
  end
  1. Select current indentation - provides ability to select current indentation that works a bit better that sublime's default “expand_selection” {“to”: “indentation”}

Backward versions of function is useless when working with languages that use indentation to define code blocks (python, cofee) :(

Commands

Description Keyboard shortcut Command palette
Goto out of block forward alt+h IndentationNavigation: Goto out of block forward
Goto out of block backward alt+y IndentationNavigation: Goto out of block backward
Select to the end of block forward alt+shift+h IndentationNavigation: Select to the end of block forward
Select to the end of block backward alt+shift+y IndentationNavigation: Select to the end of block backward
Goto block forward alt+ctrl+h IndentationNavigation: Goto block forward
Goto block backward alt+ctrl+y IndentationNavigation: Goto block backward
Select to beginning of block forward alt+ctrl+shift+h IndentationNavigation: Select to beginning of block forward
Select to beginning of block backward alt+ctrl+shift+y IndentationNavigation: Select to beginning of block backward
Goto end of block forward ctrl+h IndentationNavigation: Goto end of block forward
Goto end of block backward ctrl+y IndentationNavigation: Goto end of block backward
Select to end of block forward ctrl+shift+h IndentationNavigation: Select to end of block forward
Select to end of block backward ctrl+shift+y IndentationNavigation: Select to end of block backward
Select current indentation alt+u IndentationNavigation: Select current indentation

Dependencies