IndentationNavigation
Navigate through text usign indentation
Details
Installs
- Total 5K
- Win 3K
- Mac 789
- Linux 888
Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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 | 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 | 1 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
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):
- 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
- Go to into next indented block
statement1 # <- cursor at this line
statement2
|if condition # <- cursor here after executing command
...
end
- Go to end of next indented block
statement1 # <- cursor at this line
statement2
if condition
...
|end # <- cursor here after executing command
- Select to next indented block
| # <- cursor here
{statement1
statement2} # <- block will be selected after executing command
if condition
...
end
- Select up to next indented block
| # <- cursor here
{statement1
statement2
if condition
...
end} # <- block will be selected after executing command
- Select current indented block to the end
if condition
statement1
| # <- cursor here
{statement2
statement3} # <- block will be selected after executing command
end
- 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 |