Fold Python
Intelligent Folding System for Python, developed for Sublime Text
Details
Installs
- Total 10K
- Win 4K
- Mac 3K
- Linux 3K
Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 2 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Fold Python
Intelligent Folding System for Python
Intro
You can fold, navigate, extend python code in a very fast and easy way. instant fold all methods, leaving docstrings visible, extending your current code.
Features
- Folding code, fold and unfold contents where the cursor exists
- Smart selecting, selecting needed pieces of code
- Smart folding getters and setters, getters and setters will be folded as one
- Easy navigation trough code structure : Go upwards in code blocks, go inside children
- Documentation folding, folding all python code except documentation strings
- Extending code, creating new siblings putting keywords correct so Sublime autocomplete can take over the rest
Installation
- Use Sublime Package Control
ctrl+shft+p
then selectPackage Control: Install Package
- install
Fold Python
Alternatively, download the package from GitHub into your Packages
folder
Key Bindings
Fold Python is only accesible and useful when used trough shortcuts.
All key bindings are using following pattern Ctrl+Alt+Shift+Key
OR
Key binding are now also connected with Ctrl+K, Ctrl+Key
to improve usability
Ctrl+Alt+Shift+Up
: Move up in code / Go to parentCtrl+Alt+Shift+Down
: Move down in code / Go to adultCtrl+Alt+Shift+Left
: Fold Code / Go to ParentCtrl+Alt+Shift+Right
: Unfold Code / Go to ChildCtrl+Alt+Shift+PageUp
: Go to First Sibling / Go to ParentCtrl+Alt+Shift+PageDown
: Go to Last Sibling / Go to next AdultCtrl+Alt+Shift+Home
: Go to parentCtrl+Alt+Shift+End
: Go to all childrenCtrl+Alt+Shift+Space
: Select all siblingsCtrl+Alt+Shift+H
: Help mode, Fold content but not docstringsCtrl+Alt+Shift+I
: Invert selection, Select all other siblingsCtrl+Alt+Shift+0
: Fold to depth 0 starting from selectionCtrl+Alt+Shift+1
: Fold to depth 1 starting from selectionCtrl+Alt+Shift+2
: Fold to depth 2 starting from selectionCtrl+Alt+Shift+N
: Create a new sibling starting from selectionCtrl+Alt+Shift+I
: Go to import section of codeCtrl+Alt+Shift+G
: Show a list of all items in visible region. This way you can easily jump to a section in your viewCtrl+Alt+Shift+S
: Collapse all siblings including current cursorsCtrl+Alt+Shift+V
: Collapse all siblings not including current cursors
Commands
A list of commands are added to access using Ctrl+Shift+P
.
all commands start with “Fold Python : command name”
What's new?
21 july 2014
- added shortcut
- bug fixing
- added fold python commands in
Ctrl+Shift+P
26 march 2014
- Go to import command created
- List all items in visible region for fast navigation
25 march 2014
- Folding Getters and Setters as one
- Create new sibling will apply an autocomplete command
Settings
you can edit Key Binding and Settings in Preferences > Package Settings > Fold Python
- fold_getters_setters : fold getter and matching setter together as one
Contributors
People that helped me to improve this addon ! * duqcyxwd
Todo
- change shortcuts to a more usable shortcut list