Bug 336348 - Shortcut actions to activate task buttons by index
Summary: Shortcut actions to activate task buttons by index
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: master
Platform: Mint (Ubuntu based) Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
: 368216 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-17 08:49 UTC by Jairo Honorio
Modified: 2017-01-01 23:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.9.0


Attachments
Instead of supporting shortcuts for 20 desktop, better support 10 windows (74.31 KB, image/png)
2016-09-08 01:16 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jairo Honorio 2014-06-17 08:49:24 UTC
There should be shortcuts to switch tasks in the task manager using keyboard shortcuts. Alt+tab switches in a history way, but it is missing an order way. Like Firefox, where yo switch tab using Alt+1, Alt+2, ... , it should be possible to assign Meta+1, Meta+2, ... , to switch opened windows (tasks).

Reproducible: Always

Steps to Reproduce:
1. Open Global Keyboard Shortcuts
2. Select Plasma Desktop Shell (or Kwin) from KDE component dropdown
3. Look for "Switch to task 1",  "Switch to task 2", ...
Actual Results:  
No "Switch to task 1",  "Switch to task 2", ... exists

Expected Results:  
There should be "Switch to task 1",  "Switch to task 2", ...  shortcuts to configure.
Comment 1 Eike Hein 2014-06-17 08:52:28 UTC
The main tricky bit about this is accounting for multiple instances of the Task Manager (e.g. two panels on two different screens, each showing only the windows on that screen). Otherwise this would work by the applet registering a bunch of global accelerator actions, most likely with no default shortcuts set though.
Comment 2 Bhushan Shah 2014-12-18 11:53:09 UTC
Git commit e94f325ec85fc9bfa27238c0109f4ad80d65db3f by Bhushan Shah.
Committed on 18/12/2014 at 11:44.
Pushed by bshah into branch 'master'.

Reorder the shortcuts

KGlobalAccel takes first shortcut in list as primary and other as
secondary shortcut, and KShortcutsDialog only allows to edit primary
shortcut, see bug https://bugs.kde.org/show_bug.cgi?id=341942

This result in problem where only Screensaver key is configurable and
Alt+Ctrl+L can not be removed. Someone will less likely use Screensaver
key for other purposes.

Reviewed-by: Marco Martin <notmart@gmail.com>

M  +1    -2    ksmserver/screenlocker/ksldapp.cpp

http://commits.kde.org/plasma-workspace/e94f325ec85fc9bfa27238c0109f4ad80d65db3f
Comment 3 Bhushan Shah 2014-12-18 11:53:54 UTC
umm sorry wrong bug!
Comment 4 Bhushan Shah 2014-12-18 11:55:32 UTC
that was meant to be https://bugs.kde.org/show_bug.cgi?id=341817
Comment 5 Jairo Honorio 2014-12-18 18:25:45 UTC
(In reply to Eike Hein from comment #1)
> The main tricky bit about this is accounting for multiple instances of the
> Task Manager (e.g. two panels on two different screens, each showing only
> the windows on that screen). Otherwise this would work by the applet
> registering a bunch of global accelerator actions, most likely with no
> default shortcuts set though.

What about counting per screen? Like:
2 screens with a task manager each, 2 windows each: Meta+2 pressed, jump to the second window of the 1st screen. Meta+3 pressed, jump to the first window of the 2nd screen.

1st screen[(1st window)(2nd window)] 2nd screen[(3rd window)(4th window)]

And if a screen has multiple task manager, just set both to the window that it should jump for that screen.
Comment 6 Kai Uwe Broulik 2015-02-23 22:02:09 UTC
I think that's too indeterministic, also you can freely arrange screens in any weird pattern, the numbers aren't neccessarily left-to-right. I suggest having it invoke the tasks on the current screen (where active window is? Since that's most likely the one you're actively looking at and/or working with)
Comment 7 Lasse Kliemann 2015-07-20 13:29:13 UTC
(In reply to Jairo Honorio from comment #0)
> There should be shortcuts to switch tasks in the task manager using keyboard
> shortcuts. Alt+tab switches in a history way, but it is missing an order
> way. Like Firefox, where yo switch tab using Alt+1, Alt+2, ... , it should
> be possible to assign Meta+1, Meta+2, ... , to switch opened windows (tasks).

In addition, I would very much welcome the possibility to navigate in a relative fashion. So I could say: give me the window that has its icon in the task manager left/right/above/below the icon of my current window. Similar to how we can switch tabs in Firefox using Ctrl-PgUp and Ctrl-PgDn.

Unfortunately, the order in which windows come up using Alt-Tab is completely different from the order in the task manager. I find this highly confusing, and often I would rather use the mouse to click on an icon in the task manager instead of using Alt-Tab. However, this is of course not as efficient as it could be using a keyboard shortcut.
Comment 8 Kai Uwe Broulik 2016-09-04 22:24:32 UTC
*** Bug 368216 has been marked as a duplicate of this bug. ***
Comment 9 Dan Dascalescu 2016-09-05 05:08:03 UTC
This is totally doable. Unity can switch to open windows using Super+1..9,0, and it also supports multiple workspaces.
Comment 10 Dan Dascalescu 2016-09-08 01:16:23 UTC
Created attachment 100982 [details]
Instead of supporting shortcuts for 20 desktop, better support 10 windows

http://askubuntu.com/questions/813262/which-desktop-environments-allow-switching-among-windows-with-supernumbers/813575
Comment 11 Kai Uwe Broulik 2017-01-01 23:24:44 UTC
This will be possible in Plasma 5.9