| Summary: | Codefolding for only one level in Kate (more a wish than a bug) | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Martin Schmitz <Martin.Schmitz> |
| Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Mageia RPMs | ||
| OS: | Other | ||
| Latest Commit: | https://commits.kde.org/ktexteditor/5c83e29561e3425fb1f917a2c8de31eb48a5cd8d | Version Fixed/Implemented In: | 5.58 |
| Sentry Crash Report: | |||
*** Bug 344551 has been marked as a duplicate of this bug. *** Git commit 5c83e29561e3425fb1f917a2c8de31eb48a5cd8d by loh tar. Committed on 20/04/2019 at 11:24. Pushed by lohtar into branch 'master'. Add action to toggle folding of child ranges Summary: With this patch will all, and only, the nested foldings of a range (un)folded by right mouse click on the left hand icon border. The range itself kept untouched, not toggled. However, for convenience toggle the right button also a range which doesn't contain other folding ranges. - Described action is also available in "View->Code Folding" menu as "Toggle Contained Nodes" - Old two actions "Fold/Unfold Current Node" are replaced by "Toggle Current Node" The noted bug report request a slightly different behavior, but I think it's close enough to considered that as "fixed". FIXED-IN: 5.58 Differential Revision: https://phabricator.kde.org/D20606 M +3 -3 src/data/katepart5ui.rc M +3 -2 src/document/katebuffer.cpp M +2 -1 src/document/katebuffer.h M +97 -29 src/view/kateview.cpp M +25 -10 src/view/kateview.h M +6 -22 src/view/kateviewhelpers.cpp M +8 -0 src/view/kateviewinternal.cpp https://commits.kde.org/ktexteditor/5c83e29561e3425fb1f917a2c8de31eb48a5cd8d |
I asked Christoph (Cullmann) for the following option, because kate crashed on codefolding and doen't restore folding after crash. He wrote me to try it here. I would beg you to implement codefolding for one level (see example): class my_class{ function my_func_1(){ ... } function my_func_2(){ ... } function my_func_3(){ ... } } ...should become... class my_class{ function my_func_1(){ function my_func_2(){ function my_func_3(){ } Best, if: > Mouse left: - fold current level (as it is now) > Mouse middle: -fold current level (as described above) > Mouse right: - fold current and all sublevels currently text-buffer is inserted, on middle mouseclick (even that curser is not in the textarea) This would make Kate much more comfortable :-) Reproducible: Always It's a wish, not a bug (sorry)