-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module: Modern code folding #240
Comments
Some example of code folding: http://ace.c9.io/build/kitchen-sink.html Note especially the options to mark begin only / begin end / etc. in the options. Not sure we need that, but at least the begin one would be nice. |
Docstring folding would be nice IMHO, something which is often overlooked as folding happens only on blocks usually. |
Great idea! One of my pet peeves with docstrings is indeed that they separate function heads from bodies, which is why I would prefer comments over docstrings. Folding would help a lot with that. |
I'd probably use this feature, and yet ... I do pretty well with plain old |
For reference, Sublime Text has a nice docstring folding package: Fold Python Docstrings |
Indeed, folding docstrings would be very nice :) |
Right now I'm using origami (https://github.com/gregsexton/origami.el) with these settings
Yeah, it's not the best and I would prefer something better than that but it's something that could be considered in the research. |
I find that the following is an acceptable stopgap: (add-hook 'python-mode-hook 'hs-minor-mode)
(with-eval-after-load "python"
(define-key python-mode-map (kbd "C-c TAB") 'hs-toggle-hiding)
) |
@aparkerlue thx, that is coll,enough for me |
Elpy should support code folding like current IDEs provide. That is, simple code folding commands for sensible blocks of Python code (indentation blocks?), with markers and interactable icons in the fringe.
hs-toggle-hiding
should do most of that for usThe text was updated successfully, but these errors were encountered: