How to load a path in everything (to work within that folder)?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

How to load a path in everything (to work within that folder)?

Post by Raindrops »

Sometimes, while working in my File Manager, I realize that I should load a particular folder in Everything and work further.
(for example, I see many files with (1) and (2) attached to the name, which means I have duplicates in that folder.
Now finding duplicates in easy in Everything. So my next step would be to load that folder in Everything and then find duplicates.)

Typically, this folder is deep in the file hierarchy.

The only way I know is to laboriously look for that folder in the Folder tree.

Is there a quicker way to load such a folder?

What I want is the reverse of the File > Open command, where the file is identified in Everything, and you want to open the containing folder in a File Manager. Here, we have identified the folder in the File Manager, and we want to load that folder in Everything.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to load a path in everything (to work within that folder)?

Post by void »

A couple ways to get to your folder:

Drag-drop the folder onto the folder sidebar pane header. (where it shows "Folders")

Copy the folder to the clipboard, right click the folder sidebar pane header and click Explore folder from clipboard.

Add a Explore in Everything context menu item.
(Adding an option to do this from the UI is on my TODO list)
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

Thanks for the tips!

Generally I realize the need to open a folder when I am already browsing that folder.
So I have to go one level up, select the containing folder and then use any of the three methods.
Instead, can these commands be used while the user is still in the folder that is to be loaded in Everything?

For example, here is one desired workflow:
User right-clicks on any file in the folder and uses the context menu to send it to Everything.
Everything loads the containing folder and places focus on that file.

Second desired workflow:
User drags and drops a file into the Folder panel of Everything.
Everything opens the containing folder, and places focus on that file.
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to load a path in everything (to work within that folder)?

Post by therube »

Some file managers are mentioned here, Shortcut to search in current folder.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to load a path in everything (to work within that folder)?

Post by raccoon »

The best way, that doesn't seem to have been mentioned above, is to assign a global Hotkey to open an Everything window.
If using the hotkey within Windows Explorer, then Everything will automatically navigate to that Explorer window's path.

everything-hotkeys.png
everything-hotkeys.png (8.39 KiB) Viewed 6614 times
Use the Pause(Break) key to show/hide Everything.
Use Shift+Pause create a new Everything window.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to load a path in everything (to work within that folder)?

Post by void »

Everything will automatically navigate to that Explorer window's path.
You will need to enable hotkey_explorer_path_search:
  • Copy and paste the following into your Everything search box:
    /hotkey_explorer_path_search=1
  • Press ENTER in your Everything search box.
  • If successful, hotkey_explorer_path_search=1 is shown in the status bar for a few seconds.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to load a path in everything (to work within that folder)?

Post by raccoon »

viewtopic.php?f=4&t=11127#p43237
void wrote: Tue Feb 08, 2022 3:35 am I will trial making hotkey_explorer_path_search enabled by default.

Thanks for the suggestion.

hotkey_explorer_path_search
Everything 1.5 ini settings
viewtopic.php?f=4&t=11127#p43607
void wrote: Tue Feb 22, 2022 7:40 am hotkey_explorer_path_search is now enabled by default in fresh installs of Everything 1.5.0.1301a.

I have also added support for the Open Filename and Save Filename dialogs.
I suggest adding old 1.4 INI settings to the new 1.5 INI Settings documentation when their default values are changed in 1.5

True, the new default setting only applies to new users with fresh installs since build 1301a
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

Everything will automatically navigate to that Explorer window's path.
You will need to enable hotkey_explorer_path_search
Thanks!

This combo is more direct as compared to my proposed solutions:
For example, here is one desired workflow:
User right-clicks on any file in the folder and uses the context menu to send it to Everything.
Everything loads the containing folder and places focus on that file.

Second desired workflow:
User drags and drops a file into the Folder panel of Everything.
Everything opens the containing folder, and places focus on that file.
BTW this solution asks the user to work under the hood.
I understand that in future, this option would be provided in the advanced settings dialog.

In addition to that, can it be provided as a sub-option under the "open new window hotkey" and Toggle window hotkey" hotkey controls?
For example, a checkbox titled "work in the folder opened in explorer".
This sub-option tells the user how Everything will behave when launched from Explorer.

I know this checkbox does not really belong in the Tools > Options > General > Keyboard screen.
But that's the most related control.
The next-best logical place is the Tools > Options > General > UI screen.
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

I entered the /hotkey_explorer_path_search=1 command in the Search Bar.
Then I used the About:config command to confirm that this value is indeed set to 1.

I use FreeCommander instead of the Windows Explorer.
I have set CTRL+SpaceBar to launch a new Everything window and CTRL+SHFT+SpaceBar to toggle the Everything window.

In an experiment, I opened D:\Download folder in FreeCommander.

In the first experiment, I did not select any item in the D:\Downloads folder, and pressed CTRL+SpaceBar.
Everything window gets launched, but does not show the containing folder.
The Search Results panel shows the contents of all HDDs (as before).

In the second experiment, I selected a file in the D:\Downloads folder, and pressed CTRL+SpaceBar.
I get the same results.

I repeated both the above experiments with CTRL+SHFT+SpaceBar but still get the same results.

Then I closed FreeCommander and kept my Vivaldi browser window on top, and repeated all the four experiments listed above.
I still get the same results.

To conclude, Everything cannot load the containing folder, whether I am launching a new window or toggling the window.
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

Update:
I copied the file onto Clipboard in FreeCommander, assuming that Everything may be need the file to be on the Clipboard to be able to accept it as argument. But that also didn't change anything.

So I conclude that we cannot use the clipboard content as argument to launch Everything.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to load a path in everything (to work within that folder)?

Post by raccoon »

Sorry, the Everything Hotkeys only open to a selected path from a Windows Explorer window, or file open/save dialog window.

Perhaps other file explorer support can be added.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: How to load a path in everything (to work within that folder)?

Post by horst.epp »

The following Favorite toolbar for Free Commander searches the current File with Everything.
Its for Everything 1.5 and the pathes have to be set according to the installion.
Screenshot - 15.02.2023 , 10_27_44.png
Screenshot - 15.02.2023 , 10_27_44.png (41.15 KiB) Viewed 6528 times
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

Thanks for that tip!

Actually I had never even noticed Favorite tools in FreeCommander!

I set up the toolbar and copied your string as follows
-

Code: Select all

s nopath:exact:#quote:#[basename:"%Activeitem%"#]
(Please check if this is syntactically correct.)

My paths for the exe and icon are different, of course.

But now FreeCommander launches a plain vanilla version of Everything.
This UI does not display the customization or the dark theme I have set for my Everything 1.5 beta.
(I haven't installed 1.4 at all.)

This string appears in Everything's search bar automatically:

Code: Select all

nopath:exact:#quote:#[basename:%Activeitem%#]
Immediately after the main window of Everything appears, another dialog pops up:
Everything popup.png
Everything popup.png (12.73 KiB) Viewed 6522 times


I think there is some problem is the parameters line.
Can you please guide me further on this?

Thanks in advance!
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: How to load a path in everything (to work within that folder)?

Post by horst.epp »

1. there is a missing - in front of your parameters, correct is:

Code: Select all

-s nopath:exact:#quote:#[basename:"%ActivItem%"#]:
May be you didn't full copy it in the forum.

2. You should install the service to avoid the UAC and not running Everything as administrator.

3. If you did not disable the alpha instance you may need to add your instance name to the parameters ?

I have customized Everything including dark mode and this is used without problems with my parameters.
Raindrops
Posts: 247
Joined: Sat Jan 21, 2023 10:04 am

Re: How to load a path in everything (to work within that folder)?

Post by Raindrops »

I found the bug:
I had entered the wrong path in FC, to an old installation of Everything 1.4.
I corrected the path. Now the correct instance of Everything 1.5 gets launched.

I also figured out how to load the current folder from FC to Everything:
I removed all the parameters you suggested in FC's Favorite toolbar command, and entered just one parameter: %ActivDir%.

Now FC invokes Everything with the folder correctly.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: How to load a path in everything (to work within that folder)?

Post by horst.epp »

Raindrops wrote: Wed Feb 15, 2023 12:58 pm I found the bug:
I had entered the wrong path in FC, to an old installation of Everything 1.4.
I corrected the path. Now the correct instance of Everything 1.5 gets launched.

I also figured out how to load the current folder from FC to Everything:
I removed all the parameters you suggested in FC's Favorite toolbar command, and entered just one parameter: %ActivDir%.

Now FC invokes Everything with the folder correctly.
I use the parameters to find all copies of a file accross the whole system.
In your case you will only find exactly that one dir.
letmeindude
Posts: 15
Joined: Sat Jun 07, 2014 7:53 am

Re: How to load a path in everything (to work within that folder)?

Post by letmeindude »

void wrote: Mon Feb 13, 2023 7:16 am Drag-drop the folder onto the folder sidebar pane header. (where it shows "Folders")
A lot of times I don't know the file name, but I know the folder name, so I use this all the time.

Today I was thinking "Middle click on Folder" does nothing so it would be really great if "Middle click on Folder" would list all items from that folder. This way I could completely hide sidebar headers (there is a tweak for that I think) and save some precious vertical space.

Could be an Advanced setting. Thank you.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to load a path in everything (to work within that folder)?

Post by void »

I will consider a middle mouse button action to Explore in Everything.

Thank you for the suggestion.



For now, you can Shift + Right click -> Explore in Everything (for folders)
-or-
Shift + Right click -> Parent Folder -> Explore in Everything (for files/folders)



To remove the pane title:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    pane
  • Select pane_title.
  • Set the value to: false
  • Click OK.
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: How to load a path in everything (to work within that folder)?

Post by asamirid »

Hi void,

i use
/double_ctrl_action=2
to open new everything window from anywhere "global hotkey"

can i set the
/double_ctrl_action=2
hotkey to automatically navigate Explorer current window's path with
/hotkey_explorer_path_search=1
instead of just opening new empty everything window. coz that will be helpful.

also the middle mouse button action to Explore in Everything is a very cool idea if possible.

thank you ..

void wrote: Tue Feb 14, 2023 10:09 pm
Everything will automatically navigate to that Explorer window's path.
You will need to enable hotkey_explorer_path_search:
  • Copy and paste the following into your Everything search box:
    /hotkey_explorer_path_search=1
  • Press ENTER in your Everything search box.
  • If successful, hotkey_explorer_path_search=1 is shown in the status bar for a few seconds.
Post Reply