Opened 13 years ago
Last modified 5 years ago
#8021 new Feature request
Ability to rename tabs
Reported by: | Ruben Benjamin | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Rename Tab | Cc: | JWWalker |
Component version: | Operating system type: | ||
Operating system version: |
Description
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
Attachments (2)
Change History (7)
comment:1 by , 12 years ago
by , 12 years ago
Attachment: | context_control.cpp added |
---|
by , 12 years ago
Attachment: | filezilla.patch added |
---|
comment:2 by , 12 years ago
please ignore the above two attachments. I will upload the proper patch file soon
comment:3 by , 8 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:5 by , 5 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.