Description of the Issue
Using the File > Rename feature on an unnamed/unsaved document allows something more memory-jogging than new 4 or new 2 on a tab.
However, currently two or more untitled documents may be given the same name, without error.
This is problematic for at least one circumstance (described below), but there may be others, and really, is it helpful to have two tabs with the exact same temporary name?
Steps to Reproduce the Issue
- Press Ctrl+n twice to create two new documents entitled
new 1 and new 2.
- Put the text
abc in new1 and the text abcdef in new 2.
- Right-click the
new1 tab and choose Rename and specify foo as the new name.
- Similarly, Right-click the
new2 tab and choose Rename and specify foo as the new name.
- Make the first
foo tab the active one by clicking the tab.
- Run a simple Find All in All Opened Documents search for
abc and observe:

- Verify that the leftmost
foo tab is still the active one.
- Double-click
abcdef in the Find result window.
Expected Behavior
The second (rightmost) foo tab will be made active to show the abcdef match.
Actual Behavior
The second (rightmost) foo tab was NOT made active to show the abcdef match.
The user is still viewing the first (leftmost) foo tab and only sees abc.
See Also
The comment here: #9115 (comment)
Debug Information
Notepad++ v7.9.1 (64-bit)
Build time : Nov 2 2020 - 01:07:46
Path : C:\.......\npp.7.9.1.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1518
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Description of the Issue
Using the File > Rename feature on an unnamed/unsaved document allows something more memory-jogging than
new 4ornew 2on a tab.However, currently two or more untitled documents may be given the same name, without error.
This is problematic for at least one circumstance (described below), but there may be others, and really, is it helpful to have two tabs with the exact same temporary name?
Steps to Reproduce the Issue
new 1andnew 2.abcinnew1and the textabcdefinnew 2.new1tab and choose Rename and specifyfooas the new name.new2tab and choose Rename and specifyfooas the new name.footab the active one by clicking the tab.abcand observe:footab is still the active one.abcdefin the Find result window.Expected Behavior
The second (rightmost)
footab will be made active to show theabcdefmatch.Actual Behavior
The second (rightmost)
footab was NOT made active to show theabcdefmatch.The user is still viewing the first (leftmost)
footab and only seesabc.See Also
The comment here: #9115 (comment)
Debug Information
Notepad++ v7.9.1 (64-bit)
Build time : Nov 2 2020 - 01:07:46
Path : C:\.......\npp.7.9.1.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1809
OS Build : 17763.1518
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll