Skip to content

Notepad object member function to rename unsaved tab #147

@sasumner

Description

@sasumner

This is a FEATURE REQUEST.

Notepad++ version 7.6.4 (I think) brought the capability to rename an unsaved tab.

For example, a tab with the title "new 2" can be right-clicked upon, "Rename" chosen from the resulting popup menu, and the following box presents:

image

Entering a value changes the current tab's title to the specified name.

WHAT I'D LIKE: A way to do this programmatically, say with a notepad.rename('My new name') function call.

Perhaps there are dependency problems with supporting this; for instance, does the Notepad++ plugin interface currently permit plugins to rename an unsaved tab?

There also might be logistical problems in uniquely identifying tabs with the same name (yes, Notepad++'s implementation currently allows this) for purposes of, say notepad.getFiles() calls. But, I suppose this is a Notepad++ "problem" (don't allow it), or a user "problem" (don't name two tabs with the same name).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions