Comments (4)
@amigrave I'd like to point out some things about 'trivial' indent folding.
- It's possible to fold more with indent folding, than with existing 'smart' foldings. For example in pycharm I'm dissatisfied that I can't fold big dictionaries, because it only folds function and classes definitions.
- In any language I know decently written code is properly indented. So any meaningful construct that you'd like to fold is, guess what, should be also indented. So what would syntax folding or any other folding could bring to that?
from python-syntax.
Hi @purpleP
Well I guess it's a matter of taste and workflow.
In my case, I don't want to fold more levels than classes and functions. For some rare exceptions such as big dictionaries I use markers which is the third token set I want to be folded along with class
and def
.
When I open a python file, I want all classes, functions and markers to be folded, but I would hate to have all possible indent levels folded too.
I guess we have different ways to use folding and my way would not suit your needs, but your way does not suit mine either :-)
from python-syntax.
SimpylFold is by far the best Python folding plugin.
from python-syntax.
@nfnty Thanks, looks great except for the lack of support for markers ( # {{{
)
I see you're pretty active in the development of SimpylFold.
I've dropped an issue about this: tmhedberg/SimpylFold#81
from python-syntax.
Related Issues (20)
- datetime formatting in "{}" formay string
- None is highlighted differently in Python 3 than in Python 2 HOT 2
- "{{" not recognized as an escape HOT 1
- Please add new syntax (await, async) highlight HOT 1
- The identifier next to "async def" is not highlighted as function name HOT 2
- Function annotations? HOT 1
- No difference in highlighting of `print` between Python 2 and 3 HOT 1
- More module attributes HOT 1
- self isn't highlighted in classes HOT 6
- highlight keyword in keyword arguments in function calls with kwargs HOT 1
- highliting isn't semantic aware. HOT 1
- matrix multiplication HOT 1
- `is not` does not highlight
- exec is a function under Python3, not a statement HOT 2
- async / await not highlighted
- Python 3.6 f-string literal support HOT 2
- Python 3.6 underscores in numeric literal support HOT 1
- This project is dead, time to fork HOT 6
- Tabbing behaviour is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-syntax.