notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
Closing a tab don't open the next after mass opening and reordering
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the Issue
When I open a bunch of files and reorder them so that they are in order, I expect when I close the first tab to go to the 2nd, then after closing the 2nd to go to the 3rd, and so on.
Instead, it goes to the last tab.
Workaround is to select the next tab before using a tab, then once the used tab is closed, it will go to the one selected in that way, but if you forget to reapply "selecting the next tab", then you will find yourself on the last tab again.
When opening lots of files (around 100 or something), I would expect the sort/select first tab process to make things flow naturally.
Steps to Reproduce the Issue
- From the explorer, select lots of files and open them if associated with NP++, or using "send to", or another way
- Files are usually not in order, and the first is unlikely to be selected.
- In NP++ menu, select Window/Windows...
- Click on "Sort tabs", select the first window, and click Activate
Expected Behavior
- Work on the tab
- Work done, closing the tab
- The next file is selected, working on it
- Work done, closing the tab
- Back to 7 until all files are processed
Actual Behavior
- Work on the tab
- Work done, closing the tab
- Last file is selected, need to scroll all the way to the newly first tab, or go back through Window/Windows to select it
- After working on that file, close the tab
- Back to 7 until all files are processed
Actual Behavior workaround (not wanted)
- Select the next tab then go back to the first and work on it
- Work done, closing the tab
- The next file is selected, select the next tab then go back to the first and work on it
- Work done, closing the tab
- Back to 7 until all files are processed
Debug Information
Notepad++ v8.1.2 (64-bit)
Build time : Jul 16 2021 - 01:59:50
Path : E:\Programmes\NotepadPlusPlus\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 2009
OS Build : 19042.1110
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Notepad++ by opening many files, using Window/Windows to sort and activate the first tab, then closing tabs in sequence. Trace the tab-selection behavior triggered when the active tab closes; done means each close selects the next tab in sorted order instead of the last tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100