Opened 11 years ago
Last modified 4 years ago
#8021 new Feature request
Ability to rename tabs
|Reported by:||Ruben Benjamin||Owned by:|
|Component version:||Operating system type:|
|Operating system version:|
When we have multiple tabs open for an FTP site all the tabs have the same name. User has to click on each tab to look for the folder that he needs. It would be great if we could right click on a tab and rename it as we like
Change History (7)
comment:1 by , 11 years ago
by , 11 years ago
by , 11 years ago
comment:2 by , 11 years ago
please ignore the above two attachments. I will upload the proper patch file soon
comment:3 by , 6 years ago
What's the status on this?
Can't seem to find an option for this. It would be so convenient to have this, as I often have 3-4 tabs open for the same site, which display all with the same tab name.
comment:4 by , 4 years ago
This would really be helpful.
comment:5 by , 4 years ago
If it were me, I would:
Add CInputDialog::SetValue(wxString const& value, bool selectAll), that uses this->SetValue(wxString const& value) to set the text, then takes the string length to call this->SelectText(0, length_of_new_text) so that it’s selected, so that the user can easy overtype the existing text, or amend it (pretend that is valid C++ ;-)
- When asked to rename the tab, first get the tab, and then read off its current name (move the code to find the tab, to the start)
- Create the dialog
- Call the new SelectText to put the existing text into the dialog and select it
- Set the new tab text, unless Cancel was hit
This allows you to adjust tab names, as well as be sure that you are in fact renaming the correct tab!
(I thought that FileZilla could rename tabs, but apparently not … I must be thinking of some other program where that is possible.)
void CContextControl::OnTabContextRename(wxCommandEvent& event)
This is part of the patch.