Tabs do not open in order selected in Windows Explorer
-
@artie-finkelstein is absolutely right here, wanted to reply the same like he.
In short:
Do the right click on the first file you want to have in the Editor. The following files are added one by one like they appear in your explorer window (sorting by name or date etc is respected). At the end of list wraps around to the begin and continues until the right clicked file is reached.Same for drag and drop. Start dragging with focus on the first file you want in the editor.
-
Not following what you mean about “right click”, i.e., your first paragraph. In Explorer, experimenting, I can’t get any kind of multi-file selection with right-clicking. Of course, I can get it with left-click with Shift or Ctrl added.
Your second paragraph is a concise summation of @artie-finkelstein 's longer explanation, but adds no new information.
-
Left click to select items for the group
Right click or left click before dragging the group -
@artie-finkelstein said in Tabs do not open in order selected in Windows Explorer:
Right click or left click before dragging the group
Ah, okay, although I’ve never thought to right-click and drag-n-drop a file(s) into another application.
-
I think that right-clicking would be used to select “Edit with Notepad++” from the context menu.
-
@Stefan-Pendl said in Tabs do not open in order selected in Windows Explorer:
I think that right-clicking would be used to select “Edit with Notepad++” from the context menu.
When I try this with
a.txt
,b.txt
,c.txt
…h.txt
in a folder and I select them one at a time, in order froma
toh
via Ctrl+Lclick, and then I right-clickc.txt
and chooseEdit with Notepad++
, I get, from left to right tabs in N++ once it loads them:d, e, c, f, b, h, g and a.
I fail to see a pattern there.
-
@Alan-Kilborn
I’d never tried it that way. I Ctrl Left clicked a series of files (every other one) and then Right clicked and selected ‘Edit with Notepad++’ and it still followed the scheme I tried to describe in 68868, but, I didn’t properly amplify one detail then: The file list order is based on the Explorer sort order of the folder, not the order the files are clicked in. BTW: changing sort order will unselect any left clicked files.There may also be OS differences (I’ve not had a chance to use any of the Win10 variants).
-
We are probably wandering off-topic here, but it is a bit interesting.
So for great fun I took this selection in Explorer and dragged it by the
e.txt
file into Notepad++ and also Visual Studio 2019:The results:
Entirely opposite tab orders. :-)
And, from an intuitive point of view, since the drag point was
e.txt
, I’d have thought that would be made the active file tab – but it wasn’t in either program.OK, maybe I’m done with this now. :-)
-
@Alan-Kilborn said in Tabs do not open in order selected in Windows Explorer:
Not following what you mean about “right click”, i.e., your first paragraph. In Explorer, experimenting, I can’t get any kind of multi-file selection with right-clicking. Of course, I can get it with left-click with Shift or Ctrl added.
Sorry, that I was not clear enough. The precondition to my previous post is, that you have already selected multiple files in any way you like (Ctrl + Left Click, Shift + Left Click, or even with mouse selection rectangle). The important thing is: the focus in next step. I.e. on which file you do the right click or start the drag action.
@MarkusBodensee said in Tabs do not open in order selected in Windows Explorer:
Do the right click on the first file you want to have in the Editor. The following files are added one by one like they appear in your explorer window (sorting by name or date etc is respected). At the end of list wraps around to the begin and continues until the right clicked file is reached.
Same for drag and drop. Start dragging with focus on the first file you want in the editor.
In your recent post, you verified what I posted for Notepad++, thanks :-)
For the situation in your post before your recent post, where you failed to see a pattern: I don’t know what went wrong there.
When I am doing your steps (and order by name in explorer is active), I get the following order in Notepad++: c, d, e, f, g, h, a, b -
Example with picture:
Select some files, order of selection doesn’t matter, but right click is done on cs.xml:
Order in Notepad++:
Hope it helps somebody to understand, even if it is nearly the same like your example. Yes, it adds no new information… but hopefully more clarity.