Bug 338112 - RFE: Persistently show most recent program run with a new directive %R (improved version of %n)
Summary: RFE: Persistently show most recent program run with a new directive %R (impro...
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 01:13 UTC by nn.dm55
Modified: 2024-04-26 03:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nn.dm55 2014-08-08 01:13:34 UTC
It can be tedious to find the Konsole window that contains the output of a
command that exited a while ago when several windows are open because most of
the open Konsole windows will be showing something like '<cwd> : bash' after a
command finishes, and thus look identical in a window list.

This output could be missed if the user was interacting with several other
windows, then the program exited, and the user had forgotten in the meantime
which terminal the program was running in.

An improvement on this would be to show the previous command even after that
command exits. This makes the window easier to find when skimming the Alt+Tab
window list; however, there would need to be a way to distinguish running
commands from finished commands just by looking at the window title.

More specifically, a new formatting operator %r (for _R_ecently run)
could be added to the menu Rename Tab->Insert that does this:

1. Detect when a program starts running (like %n does)
2. Decorate the program name
3. Expand to the decorated program name
4. When the program exits, change the decoration as specified in I, II, or III
   below.
5. Expand to the new decorated name from #4

In the following examples, Zypper is just an example of a program that outputs
something important.

Three ways to indicate whether a program is running:

I. Put parentheses around the command name when not running so that it shows
as "zypper" when running, "(zypper)" when not running

II. Put something like "(Running)" or "(Done)" next to the command name so it
shows up as "zypper (Running)" or "zypper (Done)"

III. Put a symbol such as "!" next to running commands and another
symbol (e.g. "~") next to finished commands, so that e.g. a running zypper
instance shows as "zypper!"; after it exits, it would show up as "zypper~"

Reproducible: Didn't try

Steps to Reproduce:
1. Start Konsole
2. Right click on the tab
3. Click Rename Tab
4. Use "%d : %n" for the "Tab title format" 
5. Run a program that takes more than a few seconds to run (e.g. zypper)
6. Exit that program instead of Konsole
Actual Results:  
Title starts as "<cwd> : bash", then goes to "<cwd> : zypper", then back to "<cwd> : bash" when zypper exits. If the user happens to have a lot of Konsole windows open and doesn't notice the title changing back to bash, finding the right Konsole window would be difficult.

Expected Results:  
Title starts as "<cwd> : bash", then goes to "<cwd> : zypper (Running)", then changes to "<cwd> : zypper (Done)" when the command finishes. This has the additional benefit of working even if the user forgets to check View->Monitor For Silence.

konsole RPM: konsole-4.11.5-446.1.x86_64
openSUSE release: 13.1 "Bottle"
> konsole --version
Qt: 4.8.5
KDE Development Platform: 4.11.5
Konsole: 2.11.3
> uname -s -r -v -m -p -i -o
Linux 3.11.10-17-desktop #1 SMP PREEMPT Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) x86_64 x86_64 x86_64 GNU/Linux
> rpm -qf $(which konsole)
konsole-4.11.5-446.1.x86_64
> cat /etc/os-release
NAME=openSUSE
VERSION="13.1 (Bottle)"
VERSION_ID="13.1"
PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
Comment 1 Kurt Hindenburg 2024-03-27 00:56:34 UTC
Recent versions have a number of "monitoring" menu options that should do what you want.  Feel free to reopen if those options still don't work for you.
Comment 2 Bug Janitor Service 2024-04-11 03:47:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-04-26 03:46:38 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!