Bug 413258

Summary: Feature Request: Next/Previous Konsole Profile Shortcut
Product: [Applications] konsole Reporter: Lukas Sabota <lukas>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: lukas, matan
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lukas Sabota 2019-10-21 01:15:35 UTC
SUMMARY
It would be fantastic to have the ability to bind a key to "previous profile" and "next profile" within Konsole.  As far as I am aware, the only way to switch profiles is through the "Settings->Switch Profile" menu.  I think it would be useful to have keybinds to be able to cycle through the available list of profiles.

It may also be useful to have each individual profile be available within the "Configure Shortcuts" menu for hotkey assignment.

STEPS TO REPRODUCE
1. N/A
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Kernel Version: 5.3.6-arch1-1-ARCH
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-7300U CPU @ 2.60GHz
Memory: 7.6 GiB of RAM

ADDITIONAL INFORMATION
Comment 1 Kurt Hindenburg 2024-03-24 01:10:58 UTC
You can give each profile a shortcut in the "Manage Profiles" dialog.  I'm not clear on the usefulness of a prev/next profile shortcut.
Comment 2 Matan Ziv-Av 2024-03-24 10:29:58 UTC
(In reply to Kurt Hindenburg from comment #1)
> You can give each profile a shortcut in the "Manage Profiles" dialog.  I'm
> not clear on the usefulness of a prev/next profile shortcut.

This shortcut opens a new terminal with the profile. It does not change the profile of the current terminal. I actually think this is a useful suggestion, so I will try to implement it.
Comment 3 Bug Janitor Service 2024-03-28 12:08:25 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/975
Comment 4 Kurt Hindenburg 2024-03-28 22:14:03 UTC
Git commit 61a87d804813b9f92cdb629bdcbb264870615eba by Kurt Hindenburg, on behalf of Matan Ziv-Av.
Committed on 28/03/2024 at 22:14.
Pushed by hindenburg into branch 'master'.

Add next/previous actions to change the profile of the current terminal 

The actions are not in any menu, but have default keyboard shortcuts:
Ctrl-Alt-N (next) and Ctrl-Alt-M (previous).

M  +24   -0    src/profile/ProfileManager.cpp
M  +3    -0    src/profile/ProfileManager.h
M  +24   -0    src/session/SessionController.cpp
M  +2    -0    src/session/SessionController.h

https://invent.kde.org/utilities/konsole/-/commit/61a87d804813b9f92cdb629bdcbb264870615eba