Bug 343060 - global folding code keyboard shortcuts
Summary: global folding code keyboard shortcuts
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: 3.14.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2015-01-19 21:13 UTC by gorn
Modified: 2023-04-16 16:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gorn 2015-01-19 21:13:43 UTC
Possibility of folding/unfolding all folds on level x (x=1,23,4,5) via a keyboard shortcut. There can either be a predefined one, but even if it is just present in "Keyboard shortcuts" dialog it would be fine.

This fuctionality possibly arelady existed by disappeared (https://bugs.kde.org/show_bug.cgi?id=53258)

Reproducible: Always

Steps to Reproduce:
This is not possible to reproduce, because it does not work :)
1. start Kate
2. open some code
3. press Alt-2

Actual Results:  
Nothing happens.

Expected Results:  
Code on level 2 folds. After pressing Alt+2 it unfolds back (or maybe Shift+Alt+2 should be used). Similary with Alt+3, Alt+4, ... currently only "Alt+1" behaviour is partially supported, with predefined shortcut Ctrl+Shift+-

This functionality seems to have already been implemented but it disappeared. It was requested at 2003 in https://bugs.kde.org/show_bug.cgi?id=53258 and closed as implemented in  2007. Hopefully it could take less time to reimplement it  :)
Comment 1 wolfgang 2015-02-19 22:13:44 UTC
i have a feeling this is because they "dropped" the ability of folding above level 1 last year altogether.  so, it's not that keyboard shortcuts don;t work, but that the ability to fold at levels, 2, 3, 4 is gone.  this in itself is a much bigger / more fundamental problem, then losing the shortcuts.  it has serious crippled my coding experience but i am bound to kate because of other features.
Comment 2 Oded Arbel 2020-12-16 15:55:26 UTC
Just adding shortcuts to fold/unfold the current block would be very helpful - the currently available shortcuts are just fold/unfold "all top level nodes", which for the life of me I can't understand why that would be useful: a lot of things have just one top level entity - XML documents, C++ or Java classes, JSON files, Ruby, Python or Perl modules, etc.

I would have really preferred if these shortcut would just work on the current block, and if I want to fold *everything* I can just CTRL+HOME to the top of the document and <fold> the entire document.
Comment 3 Christoph Cullmann 2023-04-16 16:41:43 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

e.g. see the information at https://kate-editor.org/join-us/ for details

Greetings
Christoph Cullmann