terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Open relevant tab when clicking on a task finished notification

Open elementaryBot opened this issue 8 years ago • 5 comments

I had two tabs open, with a process running in tab two. When it finished, I received a notification (sweet!) but clicking the tab showed me Terminal with the first tab active, not the second one (not so sweet).

Ideally, whichever tab emitted the notification should be the active tab if a notification is clicked upon.

Launchpad Details: #LP1642970 Ruppal Singh - 2016-11-18 14:08:49 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

elementaryBot avatar Apr 26 '17 17:04 elementaryBot

I'm working on this. I have a working prototype and will send a PR later when I finish cleaning the code.

igordsm avatar Oct 28 '21 14:10 igordsm

@igordsm You can always open a draft PR while your working on it for better visibilty :smile:

jeremypw avatar Oct 29 '21 11:10 jeremypw

I think this used to work, not long ago (maybe OS6?), but nowadays clicking the notification will instead do one of these two actions:

  • focus leftmost tab with Home directory open, or
  • create and focus a new tab with Home directory, if it didn't exist.

This is even if my command was actually running in different tab in different directory. Clicking the notification always goes Home.

janxkoci avatar Feb 08 '24 12:02 janxkoci

Worth looking at this again now some systemic issues with the notification handling are fixed.

jeremypw avatar Feb 08 '24 12:02 jeremypw

focus leftmost tab with Home directory open

I realized my wording had some untested assumption, so I tested it and it still holds - the above statement is even true if I open two tabs with Home directory and run e.g. sleep 10 in the second one. Clicking the notification will focus the leftmost Home tab no matter if the other Home tab running the command was focused or not.

janxkoci avatar Feb 08 '24 13:02 janxkoci