Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alecthomas/sublimefoldpythondocstrings
Automatically folds Python docstrings longer than 1 line.
https://github.com/alecthomas/sublimefoldpythondocstrings
Last synced: 16 days ago
JSON representation
Automatically folds Python docstrings longer than 1 line.
- Host: GitHub
- URL: https://github.com/alecthomas/sublimefoldpythondocstrings
- Owner: alecthomas
- Created: 2013-02-01T02:47:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T14:49:02.000Z (12 months ago)
- Last Synced: 2024-10-10T16:06:59.609Z (about 1 month ago)
- Language: Python
- Size: 6.84 KB
- Stars: 16
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sublime Text - Fold Python Docstrings
This plugin folds/unfolds Python docstrings.
It makes this:
![Before folding](http://f.cl.ly/items/240v1D0z3x1s2T1J3u41/Screen%20Shot%202013-04-16%20at%2010.59.59%20AM.png)
Look like this:
![After folding](http://f.cl.ly/items/3O1r3h3g141j0q1T140r/Screen%20Shot%202013-04-16%20at%2011.02.13%20AM.png)
### Installation
Using [Package Control](https://sublime.wbond.net/installation), install the *"Fold Python Docstrings"* package.
### Key bindings
There are two commands exposed: `fold_python_docstrings` and `unfold_python_docstrings`.
On OSX these are bound to ⌘⇧- and ⌘⇧=, respectively.
### Configuration
The following settings can be changed in `User/Preferences.sublime-settings`:
**fold_python_docstrings_onload**
Set to `false` to disable folding on initial load
**fold_python_docstrings_number_of_lines**
Set to this to an integer to fold the docstring to this number of lines