Bug 439264

Summary: CTRL-TAB does not switch tabs
Product: [Applications] kate Reporter: Greg Lepore <greg>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: kinofhek, p.r.worrall
Priority: NOR    
Version: 21.04.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Shortcuts screenshot
Kate Plugins

Description Greg Lepore 2021-06-28 15:05:27 UTC
Just a general observation, but the KDE Human Interface Guidelines indicate that applications with tabs should:

"Provide keyboard navigation to switch between tabs with Ctrl + Tab (Ctrl
Shift + Tab for backward navigation). For compatibility reasons it is recommended to also support Ctrl + PgDown (Ctrl + PgUp for backward navigation)."

It appears Kate 21.04.2 does not support Ctrl + Tab to switch between tabs. Rather Ctrl + Tab indents the current line. Nor does Kate accept Ctrl + Shift + Tab.

Ctrl + PgDown and Ctrl + PgUp do work as designed.

I guess this is a wishlist request to have Kate fully support the HIG with respect to tabs.
Comment 1 Felipe Kinoshita 2021-06-29 07:04:05 UTC
Can't reproduce, Kate switches tabs with Ctrl+Tab just fine.
Comment 2 Paul Worrall 2021-06-29 09:29:31 UTC
Please could you confirm that your keyboard shortcut config in Kate, under the "tabswitcher" group has: 

> Last Used Views = Ctrl+Tab
> Last Used Views (Reverse) = Ctrl+Shift+Tab

These are the default settings (for me) and they work for me.

Kate: 21.04.2
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-59-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics
Memory: 7.7 GiB of RAM
Graphics Processor: AMD CEDAR
Comment 3 Greg Lepore 2021-06-29 10:52:18 UTC
Created attachment 139734 [details]
Shortcuts screenshot

Kate->Configure Shortcuts->tab
Comment 4 Greg Lepore 2021-06-29 10:53:12 UTC
Thanks for checking. I don't have a tabswitcher section in Configure Shortcuts. Next Tab is set to Alt-Left and Previous Tab is set to Alt-Right. Clicking the Defaults button does not seem to change these settings.
Comment 5 Paul Worrall 2021-06-29 11:39:35 UTC
Created attachment 139738 [details]
Kate Plugins

Do you have the "Document Switcher" plugin enabled? (Settings=>Configure Kate=>Plugins)
Comment 6 Greg Lepore 2021-06-29 11:42:46 UTC
I do not have the Document Switcher installed. Installing it does make Alt-Tab work correctly, albeit with an onscreen indicator that I don't love.

I wonder if a clean install of Kate does not switch tabs without the Document Switcher? If so, the Wish should remain, as that should be the default behavior.

Thanks.
Comment 7 Paul Worrall 2021-06-29 12:08:51 UTC
Just confirmed that a clean install of  Kate on vanilla Neon User has the Document Switcher plugin enabled by default, and that Ctrl+Tab does switch between tabs (albeit with that indicator). So on the basis that Ctrl+Tab does switch tabs by default I think this bug should be closed.