Bug 294051

Summary: Rename tab to "Shell No. 1" from "Shell" when multiple tabs are created
Product: [Applications] yakuake Reporter: Ashwini Oruganti <ashwini.oruganti>
Component: generalAssignee: Eike Hein <hein>
Status: RESOLVED INTENTIONAL    
Severity: minor    
Priority: NOR    
Version First Reported In: 2.9.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ashwini Oruganti 2012-02-14 09:22:56 UTC
Version:           2.9.8 (using KDE 4.7.4) 
OS:                Linux

When I open Yakuake, and create a new tab, the new tab is named Shell No. 2, but the first one is still "Shell". I think it would make sense to rename it to "Shell No. 1" when the second tab is opened.

Also, while working on multiple tabs, if the session in the tab named "Shell" is closed and a new tab is opened, it is also named "Shell" automatically. I would suggest naming it as "Shell No. 1", in case of multiple sessions.

Reproducible: Always

Steps to Reproduce:
1. Open Yakuake and create a new session ( [Ctrl]+[Shift]+[N] )

2. When multiple sessions are open, close the one named "Shell" ([Ctrl]+[Shift]+[S]) and now create a new session. 

Actual Results:  
1. The new session's name is "Shell No. 2" but there is no "Shell No. 1".

2. The new session created is has the name "Shell", again, no "Shell No. 1".

Expected Results:  
If a single shell is open, the name "Shell" is fine, but going by the default numbering, it would be more convenient if it's renamed to "Shell No. 1" when a new session is started in a new tab.
Comment 1 Eike Hein 2012-02-14 16:08:15 UTC
Hmm, automatic renaming would introduce a certain amount of complexity, i.e. it wouldn't be appropriate to do it in the edge case of the user having entered the name manually, so the code would need to keep additional state to only modify a title doled out by the automatic naming. I'm worried that this introduced too much code complexity for the gain.

I'm also worried that it will actually confuse users *more* if a shell title suddenly changes without their explicit manual action.

I'll mull it in my head a bit, thank you for the suggestion.