Summary: | Can't disable the popup menu when switching the tab list (Ctrl+Tab) | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | moninah |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | chris-k, christoph |
Priority: | NOR | ||
Version First Reported In: | 23.08.1 | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/kate/-/commit/835bb8a283c37a851868a352d5b1ced439c2a9eb | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Screenshot from Kate
Screenshot from Notepad++ |
Created attachment 162871 [details]
Screenshot from Notepad++
Valid wish to have that, we would need to make int KateTabBar::prevTab() const { return currentIndex() == 0 ? 0 // first index, keep it here. : currentIndex() - 1; } int KateTabBar::nextTab() const { return currentIndex() == count() - 1 ? count() - 1 // last index, keep it here. : currentIndex() + 1; } configurable. Thanks. In which file should these changes be made? In kate.git, apps/lib/katetabbar.cpp So will you add it in future versions? Or do I need to make changes to the file myself? I can't find this file on my system using command: "find / -iname katetabbar.cpp". *** Bug 491069 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/utilities/kate/-/merge_requests/1552 Git commit c782e10fe0502a04ddd89b84f48b3fb5a8d67509 by Waqar Ahmed. Committed on 31/07/2024 at 15:29. Pushed by cullmann into branch 'master'. Tabs: Wrap around to first on nextTab if current is last tab ... and vice versa M +2 -2 apps/lib/katetabbar.cpp https://invent.kde.org/utilities/kate/-/commit/c782e10fe0502a04ddd89b84f48b3fb5a8d67509 Git commit 835bb8a283c37a851868a352d5b1ced439c2a9eb by Waqar Ahmed. Committed on 05/08/2024 at 15:44. Pushed by waqar into branch 'release/24.08'. Tabs: Wrap around to first on nextTab if current is last tab ... and vice versa (cherry picked from commit c782e10fe0502a04ddd89b84f48b3fb5a8d67509) M +2 -2 apps/lib/katetabbar.cpp https://invent.kde.org/utilities/kate/-/commit/835bb8a283c37a851868a352d5b1ced439c2a9eb |
Created attachment 162870 [details] Screenshot from Kate So that the switching is like in browsers. For example, Notepad++ has an option, but I can’t find a similar setting in Kate. I removed the hotkeys from «Settings» → «Configure Keyboard Shortcuts» → «tabswitcher» → «Last Used Views» and set «Ctrl+Tab» and «Ctrl+Shift+Tab» to «Kate» → «Next Tab» and «Previous Tabю». But the only problem that remains is that when you press «Ctrl+Tab» on the last open tab, it does not jump to the first initial tab (you cannot press only «Ctrl+Tab» to switch to all tabs in a circle), you have to press «Ctrl+Shift+Tab» to return to previous tabs.