Summary: | No code folding with beginRegion and endRegion | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Russell <prusselltechgroup> |
Component: | folding | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | christoph, ilmari.lauhakangas, walch.martin |
Priority: | NOR | ||
Version: | 16.04.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
tar file that contains multiple files described in the above bug report
Code folding in 4.13 vs 3.3.5 - end region Missing Unfold Toplevel Nodes (previously vs Kate Ver 4.14.3) |
Description
Russell
2013-04-19 15:33:19 UTC
Created attachment 79028 [details]
tar file that contains multiple files described in the above bug report
I just tested this in Kate 4.13.0. Seems to work fine again. There is only one difference when comparing against the behaviour of 3.7.2: the line // kate: syntax KateCodeFoldingTest; folding-markers on; stays visible below "=== Simple Commands ===" (Which might be intended?) Do you still experience the problem? Code folding is definitely producing similar results as in Kate 3.3.5 and 3.7.2, with the exception noted, plus a missing "Expand TopLevel" menu item. It does not appear to be isolated to katecodefoldingtest.txt and katecodefoldingtest.xml. I opened up the bash script, setup.sh, hovered over the code regions to see how far they stretched and also clicked "Collapse Toplevel". I got different results. Kate 4.13 does not include the end region in the fold, while previous versions did. For example: Kate 4.13: if.... fi Kate 3.3.5: if... The other item I noticed, there is no "Expand Toplevel" menu item. I have "Collapse Toplevel" and "Expand Toplevel" icons on Kate's Main Toolbar <KatePartView>. Click "Collapse Toplevel" and there's the highlevel structure of the document. And when done, click "Expand Toplevel". I only saw "Collapse Toplevel" in Kate 4.13, I did not see "Expand Toplevel". Created attachment 86605 [details]
Code folding in 4.13 vs 3.3.5 - end region
Created attachment 89937 [details]
Missing Unfold Toplevel Nodes (previously vs Kate Ver 4.14.3)
The actually code folding is working.
Current environment openSUSE 13.2, Kate 4.13.3.
But "unfold toplevel nodes" is missing.
The keyboard shortcuts are ctrl+shift+- (FOLD) and ctrl+shift++ (UNFOLD).
They are a toggle to fold and unfold the document.
I also put toolbar buttons on the Main Toolbar <KatePartView> for these functions.
(In reply to prusselltechgroup from comment #5) > But "unfold toplevel nodes" is missing. Still missing in the view menu. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.22.0 Qt 5.6.1 xcb wm > (In reply to prusselltechgroup from comment #5) > But "unfold toplevel nodes" is missing. This is reported as bug 335590 The missing menu item is still a "problem", therefore we have bug 335590, otherwise, the folding in KF5 based KTextEditor should be "OK". |