Summary: | There is no way to reverse the effect of "Fold Toplevel Nodes" | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Cristian Tibirna <tibirna> |
Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ilmari.lauhakangas, lsteeger, prusselltechgroup |
Priority: | NOR | ||
Version: | 16.04.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=343060 | ||
Latest Commit: | http://commits.kde.org/ktexteditor/69ed4f390344940590e37a13fcdfc5f591f37388 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Kate's View -> Coding folding menu correct vs missing |
Description
Cristian Tibirna
2014-05-30 13:29:53 UTC
The Kate Menu, View -> "Code Folding" use to show 4 submenu items (and corresponding shortcuts): Collapse Toplevel Expand Toplevel Collapse One Local Level Expand One Local Level As of Kate Version 3.14.2 using KDE Development Platform 4.14.2, it only shows 3 submenu items: Fold Current Node Unfold Current Node Fold Toplevel Nodes There is no way to Unfold Toplevel Nodes. Fold/Unfold Toplevel Nodes is a very useful feature when it is working. To fold without an unfold is a large problems that affects all of Kate syntax highlighing/code folding. Environment: linut minut 17.1 Rebecca Created attachment 91104 [details]
Kate's View -> Coding folding menu correct vs missing
I can confirm this bug in Kate.
Please see the attached image. It shows what the Kate -> View -> Code Folding menu use to
look like and what it look like now.
Briefly:
Collapse Toplevel Ctrl+Shift+-
Expand Toplevel Ctrl+Shift++
has been replaced with
Fold Toplevel Nodes Ctrl+Shift+-
The terminology has changed, no problem... but what is critical is the actual missing Unfold (or Expand) Toplevel nodes menu item.
It was still working as of version 3.7.2, development 4.7.2 release 5, but when I upgraded two systems (3.14.2/4.14.2) and (3.14.3/4.14.3) it was missing.
It is very efficient to either use the menu item or a shortcut key to collapse the entire source file to get an overview, maybe scroll to position, and then quickly expand the entire source file. The ability to Unfold/Expand Toplevel Nodes is missing, which basically cripples the benefit of code folding. It is unusable without Unfold.
Code folding and unfolding the entire file use to work. Now it only Folds. ctrl-shift-minus and ctrl-shift-plus were the shortcut keys. Please see this 2003 bug that discusses it. https://bugs.kde.org/show_bug.cgi?id=53577 Snippet: "Expand all folded code. Changed shortcuts for expanding and collapsing all nodes to Control+Shift+Plus/Minus,..." Confirmed. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.23.0 Qt 5.7 xcb wm Git commit 69ed4f390344940590e37a13fcdfc5f591f37388 by Christoph Cullmann. Committed on 07/09/2016 at 14:13. Pushed by cullmann into branch 'master'. CHANGELOG: Support "Unfold Toplevel Nodes" action again M +28 -0 src/buffer/katetextfolding.cpp M +8 -0 src/buffer/katetextfolding.h M +1 -9 src/data/katepart5ui.rc M +11 -42 src/view/kateview.cpp M +2 -3 src/view/kateview.h http://commits.kde.org/ktexteditor/69ed4f390344940590e37a13fcdfc5f591f37388 |