[Konsole-devel] [konsole] [Bug 338112] New: RFE: Persistently show most recent program run with a new directive %R (improved version of %n)

nn.dm55 at gmail.com nn.dm55 at gmail.com
Fri Aug 8 01:13:34 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=338112

            Bug ID: 338112
           Summary: RFE: Persistently show most recent program run with a
                    new directive %R (improved version of %n)
           Product: konsole
           Version: unspecified
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: nn.dm55 at gmail.com

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"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list