[Feature request] Ability to (re)name tabs
I use Notepad++ mostly to edit scripts for an external program, but files are stored in the temporary folder with a long name with random UUIDs (ie. C:\Users\Kimpa\AppData\Local\Temp\sl_script_74ec8a96a8a6a5cb89d93ff8f55aa15f.lsl). When lot of scripts are open, these file names are displayed on the tabs and I don’t know what is the script to edit. I suggest to can set a readable name. May be the ability to rename the tab or add a custom name behind or after the original file name. Also, a plugin may be could do this.
PeterJones last edited by
The tab name will always reflect the file name.
However, if you wanted to use the Project Panel feature of Notepad++, you could set up virtual folders in your project, and name those virtual folders “my custom name” or what have you, and then put one of the UUID-based files in each virtual folder for your project; you could then use the Project Panel to navigate, rather than the tab bar.
A plugin might be able to influence the text on the tab bar, but I think it would have to use Win32 API calls, rather than using any of the officially-offered plugin communication message API, so the plugin author might find that Notepad++ was actively fighting against such changes.
@PeterJones Thank you for your answer, but I already use the Project Panel. The Project Panel is a great feature for files already stored and properly named on my regular folders. UUID-based files are always different and I searched a quick way to have a readable name. Even if the tab name always reflect the real file name, it could be interesting to add an alternative name, like markers feature to quickly identify a file. If it’s not possible for tabs, alternate names could be added to the Document list.
PeterJones last edited by
I was giving you a workaround. This is because we fellow users in the Community Forum have no authority to change the codebase and add features. This was explained in the “Read before posting” just underneath the “New Topic” button that you clicked to make your original post, and the FAQ that it linked.
The Project Panel is a great feature for files already stored and properly named on my regular folders. UUID-based files are always different and I searched a quick way to have a readable name
In the same way that your proposed feature would require you to somehow map the real filename to the custom name, so does using Project Panel folders to do the same thing. If I had files “UUID1”, “UUID2”, and “UUID3”, I could then create three folders in the Project Panel, called “Script To Type A Word”, “Script to Delete A Word”, and “Script to Do Something Else”, and then place “UUID1” in “Script to Type A Word”, “UUID2” in “Script to Delete A Word”, and “UUID3” in “Script to Do Something Else”, with basically the same amount of effort on your part as your proposed solution would require (and with no additional effort on the developer’s part, because the feature already exists).
@PeterJones Thank you again for your suggestion, but it’s a fastidious way. Meanwhile a better solution, I use small stickers (Post-It) on tabs. It’s quick and easy to change.