-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Python folding is bad #8307
Comments
I use C-c @ ... |
For https://github.com/alexmurray/evil-vimish-fold, https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org#indent-text-object works quite well. Unfortunately, |
100X yes, this is a major pain point. As @ostrbor says, hideshow might be what to use for now https://www.reddit.com/r/emacs/comments/746cd0/which_code_folding_package_do_you_use/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Hello, I've circled back to this issue - I cannot find any way of indentation-based folding in Python (tried all three origami/vimish/evil to no avail). The best I can do is to fold whole functions and classes in |
Good folding
See Vim, PyCharm with IdeaVim, or org-mode for a decent implementation of folding. Unfold one level, and the levels below it remain folded, giving you an outline.
Evil folding problems
Unfolding a region unfolds all sub-regions. This basically ruins any benefit of folding.
Origami folding problems
Folds are only one-level deep. Methods inside of classes, for example, are not fold-able.
People said that Origami is better than Evil, but Origami can't even fold class methods - am I missing something?
Vimish-Fold problems
No syntax-based folding.
Solution?
I don't know how people can browse code without proper folding. Is there some navigation method I'm missing?
I've tried
helm-jump-in-buffer
, but it's way more clunky than code folding, since it always starts from the top instead of relative to where you are in code, and is an abstraction instead of a direct representation of code.The text was updated successfully, but these errors were encountered: