How to "Open Path" within currently searched file explorer window

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

HI, after launching file explorer, opening a folder, right clicking "Search Everything" to search within the folder, selecting a desired targeted file or folder then right clicking "Open Path", it opens the path in a new instance of file explorer, leaving me with 2 opened file explorer windows...

How can I optimize Everything to open the path within the currently searched file explorer window?/Navigate the currently opened folder to the desired file or folder within the same current file explorer window?

Appreciate future responses 8-)
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: How to "Open Path" within currently searched file explorer window

Post by NotNull »

Windows has not (yet?) provided a command-line syntax to open a folder in a new tab.

There are alternatives. I think I once wrote something to force an existing Explorer to open a path in a tab.
With that, the process would be: Everything --> program --> Explorer tab.

If I don't post the code (or the program) within a month, please remind me.
horst.epp
Posts: 1493
Joined: Fri Apr 04, 2014 3:24 pm

Re: How to "Open Path" within currently searched file explorer window

Post by horst.epp »

NotNull wrote: Sat Jan 18, 2025 3:44 pm Windows has not (yet?) provided a command-line syntax to open a folder in a new tab.

There are alternatives. I think I once wrote something to force an existing Explorer to open a path in a tab.
With that, the process would be: Everything --> program --> Explorer tab.

If I don't post the code (or the program) within a month, please remind me.
The Author of QAP has solved this problem.
It works fine with the Explorer options.
Screenshot - 18.01.2025 , 17_44_40.png
Screenshot - 18.01.2025 , 17_44_40.png (30.01 KiB) Viewed 1628 times

Also, Listary supports tabs in Explorer.
So it should be possible in Everything.
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: How to "Open Path" within currently searched file explorer window

Post by NotNull »

It is, but not through a command-line, like explorer.exe -newtab "c:\folder" or similar.
And that is what Everything needs.

For this to work, one needs to:
- create a list of all running Explorers (the filemanagers, not the shell, not the control panel, not the ...
- query all tabs to see if the folder is already opened in one of these explorers,
- If so: activate that explorer and activate that specific tab
- if not: find the most recently used explorer
- open a new tab in that explorer
- open "c:\folder" in that tab
- Optional: highlight the filename

This is all done by sending messages to each explorer window.
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

Re: How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

I dont quite understand some of the replies since im new to Everything but I thought to share few extra info that might help:
- Im using Windows 10 Pro
- Everything v1.4.1

In everything, I dont have the tab or section "program"?

and no I didnt mean using Everything's commandline, I meant using through Everything's program itslef. Is it possible to open paths in same explorer window? I know you can enter commands through the search box, thought might missed a command that havent heard about that can do the requested task
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: How to "Open Path" within currently searched file explorer window

Post by NotNull »

Short answer: No, not possible in Everything. Each path will open in a separate File Explorer.
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

Re: How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

dang it :/

Any workarounds suggestions? I know you've partially included one but needed further explanation
Xavierarmand
Posts: 30
Joined: Fri Nov 24, 2023 12:19 am

Re: How to "Open Path" within currently searched file explorer window

Post by Xavierarmand »

It's not free but it's worth every penny to never deal with file explorer again. It can do that and 10x more.



Are you frustrated by the limitations of Windows Explorer?

Directory Opus is a complete replacement for Explorer, with far more functionality than any other file manager available today.

https://www.gpsoft.com.au/
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

Re: How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

Thanks but I'd like the feature to be implemented within Everything, hope the owner be able to add new update with a feature of opening the path within current window..
Xavierarmand
Posts: 30
Joined: Fri Nov 24, 2023 12:19 am

Re: How to "Open Path" within currently searched file explorer window

Post by Xavierarmand »

fair enough, thou trying to make windows functional in the 2020s is like beating a dead horse.

in anycase

I found this snippet of ahk code that works, have it set up open this way when dopus isn't found it might work as a custom open with from the advanced settings tab...

Code: Select all

Run explorer.exe /select, "%path%"
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

Re: How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

seems we're getting somewhere :mrgreen:

after creating ahk file with the provided code, Im still clueless how to use it with everything, what do you mean by advanced tab in settings? I am using v1.4.1 (incase you might be instructing on v1.5)
Xavierarmand
Posts: 30
Joined: Fri Nov 24, 2023 12:19 am

Re: How to "Open Path" within currently searched file explorer window

Post by Xavierarmand »

ahh, sorry I missed that your on v1.4. I haven't used that version in a couple. I don't think the advanced settings are on that version.

as far a trying to intergating that into ahk, its... tricky, you have to supply ahk with a variable, in this case the %path% you want to open, to make that jump between applications I usually copy the file path and tell ahk to use the %clipboard%, split the path, then tell ahk which part of it to open and how...

what @NotNull didn't add here is .. "Short answer: No, not possible in Everything. Each path will open in a separate File Explorer."..., because this is a limitation of the windows operating system.

all that being said... I don't know how to do that using windows explorer, at least in a new tab because I haven't windows explorer sense about 2009. Its ummm, a horrible mess & waste of time. microsoft has no plans on making functional software anymore, just cooperate spyware, so its as good as it will ever be with TV commercials coming soon!

if you don't want to pay for quality i would recommend trying FreeCommander - https://freecommander.com/en/summary/ or Total Commander - https://www.ghisler.com as alternative free file managers. they have have tabs and split-panel functionally after setting them up.
a_lost_search
Posts: 6
Joined: Sat Jan 18, 2025 8:26 am

Re: How to "Open Path" within currently searched file explorer window

Post by a_lost_search »

Man thanks for the recommendations and clarifying the problem. Damn since "2009", File Explorer changed a lot though but I get u about microsoft being lazy n spywares, I am aware of that :lol:

regarding the ahk code that you provided, seems the implementation with v1.4.1 sounds like a hassle. If i used everything v1.5, how's the implementation gonna be?

appreciate the response
Xavierarmand
Posts: 30
Joined: Fri Nov 24, 2023 12:19 am

Re: How to "Open Path" within currently searched file explorer window

Post by Xavierarmand »

I'm not sure how this will when sending items to explorer thou this was what I was referring too.

viewtopic.php?p=72132#p72132
Post Reply