Bug 414613 - Unfold toplevel nodes keyboard shortcut does not work
Summary: Unfold toplevel nodes keyboard shortcut does not work
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: folding (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-28 14:32 UTC by George Diamantopoulos
Modified: 2023-08-06 03:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Diamantopoulos 2019-11-28 14:32:05 UTC
SUMMARY
On my system, Toplevel Node folding/unfolding is assigned the keyboard shortcuts 'Ctrl'+'Shift'+'-' and 'Ctrl'+'Shift'+'+' respectively. The former works, but the latter will instead trigger the Enlarge font shortcut which is 'Ctrl'+'+' when using the '+' key in the "typewriter section" of the keyboard. When using the '+' key from the numeric keypad section of the keyboard, the shortcut works as intended.

I'm not sure if this is a kate bug or a frameworks/qt bug, please reassign accordingly.

STEPS TO REPRODUCE
1. Type C-style code in kate, using '{}' blocks and enable C code highlighting
2. Fold the node using the mouse or by pressing 'Ctrl'+'Shift'+'-'
3. Try unfolding the node by pressing 'Ctrl'+'Shift'+'+' using the '+' key from the typewriter section of your keyboard.

OBSERVED RESULT
Instead of unfolding the node, kate will enlarge font size

EXPECTED RESULT
{} block should be unfolded

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo kernel 5.3/Plasma 
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Keyboard layout: US
Keyboard Model: Generic 104-key PC
Comment 1 Angelos Skembris 2020-09-13 11:38:33 UTC
I had the same problem with Kile, which uses the current configuration with Kate. Changing the shortcuts for code folding / unfolding to other symbols seems to resolve this. 

I guess this is a problem of the default keyboard short cut configuration. Not sure how one would be able to get "Control+Shift++" instead of "Control++" on a keyboard with no numeric keypad (e.g. laptops).
Comment 2 Justin Zobel 2020-10-27 07:40:14 UTC
Confirmed on kate from git master.

C code sample
#include <stdio.h>
int main() {
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
}
Comment 3 Justin Zobel 2023-08-05 14:43:40 UTC
I can't now reproduce this issue on Kate 23.04.3, George and Angelos can you please confirm if you are still experiencing this issue?
Comment 4 Angelos Skembris 2023-08-05 15:23:59 UTC
(In reply to Justin Zobel from comment #3)
> I can't now reproduce this issue on Kate 23.04.3, George and Angelos can you
> please confirm if you are still experiencing this issue?

Hi Justin, 

I am still experiencing the issue with Kile 2.9.93 and Kate 23.04.03. Keyboard shortcuts are their default selections. Keep in mind that I only have a reduced-size keyboard to work with (no numpad), so I can't confirm whether or not it's working correctly with the numpad.
Comment 5 Justin Zobel 2023-08-06 03:23:50 UTC
Ah yes. I just tried on my laptop that doesn't have a numpad and used the =/+ sign at the end of the number row and it does not function correctly. Thanks for your quick reply. Hopefully someone can look into this soon!