Drag a file from Everything to a taskbar button

Found a bug in "Everything"? report it here
Post Reply
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Drag a file from Everything to a taskbar button

Post by Stamimail »

I was trying to pin a txt file to the Jump List of Notepad.
In Windows Explorer you can drag a file towards a taskbar button, and with pressing Shift while hovering the taskbar button it will let you pin to its Jump List.
I couldn't do that in Everything.

btw, I was trying to test it on alpha, and ask myself: How can I index only 1 txt file?
Last edited by Stamimail on Wed May 18, 2022 11:13 pm, edited 1 time in total.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Drag a file from Everything to a taskbar button

Post by NotNull »

Drag with RMB instead.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Drag a file from Everything to a taskbar button

Post by Stamimail »

NotNull wrote: Tue May 17, 2022 5:14 pm Drag with RMB instead.
Windows 7
RightMouseButton doesn't let to pin.
Dragging from both Windows and Everything I get only:
Open with
Cancel

Anyway, my report is that it should work like in Windows also for LMB.
Last edited by Stamimail on Tue May 17, 2022 5:32 pm, edited 1 time in total.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Drag a file from Everything to a taskbar button

Post by NotNull »

Suggestion was for Win10. Can't remember how Win7 did this.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag a file from Everything to a taskbar button

Post by void »

For "Pin to application", "Pin to program", "Pin to taskbar button" or "Pin to Everything" to function correctly, there must be a shortcut in the start menu.

Please make sure you have a shortcut to Everything.exe in your Start menu:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Show Start menu shortcuts.
  • Click OK.
  • Exit Everything: File -> Exit
  • Restart Everything.
This shortcut is what Windows will call when you open the pinned item.


btw, I was trying to test it on alpha, and ask myself: How can I index only 1 txt file?
Create a new text document.
Set the text document content to:
C:\folder\my file.txt
Rename the file extension to .efu
Open the EFU file with Everything. (or include the EFU file list in your index)



EFU file lists
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Drag a file from Everything to a taskbar button

Post by Stamimail »

void wrote: Wed May 18, 2022 1:03 pm For "Pin to application", "Pin to program", "Pin to taskbar button" or "Pin to Everything" to function correctly, there must be a shortcut in the start menu.

Please make sure you have a shortcut to Everything.exe in your Start menu:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Show Start menu shortcuts.
  • Click OK.
This shortcut is what Windows will call when you open the pinned item.
It did not work for me. I think you did not understand my question and answered another question.
btw, I was trying to test it on alpha, and ask myself: How can I index only 1 txt file?
Create a new text document.
Set the text document content to:
C:\folder\my file.txt
Rename the file extension to .efu
Open the EFU file with Everything. (or include the EFU file list in your index)



EFU file lists
Just so you know, what I did intuitively is try to add it using Indexes(tab) -> Folders
Dragging a file to the TextBox doesn't work, but it does work via -> Add Custom...
The result is the file indeed shown in Result List, but it grayed-out, and without Path. I didn't know why.
I don't know why single files can't be added in this way, or other better way.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Drag a file from Everything to a taskbar button

Post by NotNull »

[NTFS]
Settings for Local Disk (C:)
Include only = C:\folder\


[Exclude]
Exclude folders > Add Filter = c:\folder\*\
Include only files = c:\folder\my file.txt


I don't know why single files can't be added in this way
Don't know. Maybe because a file is not a folder?
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Drag a file from Everything to a taskbar button

Post by Stamimail »

NotNull wrote: Wed May 18, 2022 2:25 pm [NTFS]
Settings for Local Disk (C:)
Include only = C:\folder\


[Exclude]
Exclude folders > Add Filter = c:\folder\*\
Include only files = c:\folder\my file.txt
Do you get only 1 file in index (1 object)?
I get the file and its parent (2 objects)

Still it looks too complicated.
Stamimail wrote: Wed May 18, 2022 1:59 pmIt did not work for me. I think you did not understand my question and answered another question.
@void, I improved the wording of the question.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Drag a file from Everything to a taskbar button

Post by NotNull »

Stamimail wrote: Wed May 18, 2022 10:48 pm Do you get only 1 file in index (1 object)?
I get the file and its parent (2 objects)

Still it looks too complicated.
I get the same (2 objects).
Further investigating this would mean more waste of time as this is not a real world scenario.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Drag a file from Everything to a taskbar button

Post by Stamimail »

The point is, right now it's complicated for the simple user to set up what exactly he wants.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag a file from Everything to a taskbar button

Post by void »

It did not work for me. I think you did not understand my question and answered another question.
Sorry if I misunderstood.
Are you referring to "Pin to Everything"?






These options will only exist if there is a shortcut to Everything in your start menu.
I forgot to mention you need to restart Everything (File -> Exit) after making the shortcut.

In my example I have a shortcut called: "Everything64.exe - Shortcut In Start Menu" in my start menu.

Clicking on the pinned item will set my search to "C:\Users\user\Desktop\New Text Document.txt"


Just so you know, what I did intuitively is try to add it using Indexes(tab) -> Folders
Dragging a file to the TextBox doesn't work, but it does work via -> Add Custom...
The result is the file indeed shown in Result List, but it grayed-out, and without Path. I didn't know why.
I don't know why single files can't be added in this way, or other better way.
Everything is adding the file as a folder.
The file is grayed-out because Everything thinks it is an offline folder.


The point is, right now it's complicated for the simple user to set up what exactly he wants.
Everything does not support adding a single file to the index.


I get the file and its parent (2 objects)
File lists always build a containing folder for files.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Drag a file from Everything to a taskbar button

Post by Stamimail »

void wrote: Fri May 20, 2022 8:30 amSorry if I misunderstood.
Are you referring to "Pin to Everything"?
"Pin to Notepad"
("I was trying to pin a txt file to the Jump List of Notepad.")
Please try to drag a txt file from within Everything (from ResultList) to Notepad taskbar button (to Notepad button that pinned and resides in taskbar).
Everything does not support adding a single file to the index.
Why not. Is this a problem?
(A case may be that a user wants to monitor a one single file on a network drive.)
File lists always build a containing folder for files.
But this is not what the user wanted. The user wanted to add only one object to the list of results. Not two.
Why not change this behaviour to what the user wants?
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag a file from Everything to a taskbar button

Post by void »

"Pin to Notepad"
("I was trying to pin a txt file to the Jump List of Notepad.")
Please try to drag a txt file from within Everything (from ResultList) to Notepad taskbar button (to Notepad button that pinned and resides in taskbar).
Thank you for clarifying.
Everything will use the system drag source in the next alpha update.
This will fix the issue.


Why not. Is this a problem?
Because, in Everything a file with no containing folder has no path.
I also refer to these as root files.

For example, if I index a root file as:

c:\windows\notepad.exe

The Name is: c:\windows\notepad.exe
The Path is:

This is quirky, one would expect the following:
Name: notepad.exe
Path: c:\windows


In other words, it's a limitation with Everything.
Everything will automatically create a containing folder for files.

There are exceptions, for example:
file://c:/folder/file.txt


(A case may be that a user wants to monitor a one single file on a network drive.)
I will consider making it easier to index a single file.

For now, the user will need to index the containing folder and add a negative look ahead regex exclude.

For example:
Index:
\\server\share
Exclude files:
regex:^(?!\\\\server\\share\\file.txt$)


But this is not what the user wanted. The user wanted to add only one object to the list of results. Not two.
Why not change this behaviour to what the user wants?
Everything is currently not designed to index a single file.

I will consider adding support for indexing a single file.
One option would be to hide the generated containing folders from the search.
Thanks for the suggestion.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Drag a file from Everything to a taskbar button

Post by void »

Everything 1.5.0.1315a will now use the system to handle the drag source.

This means the drag image will appear like Windows Explorer.
You will now be able to see drop descriptions and pin files to programs in the taskbar.
Post Reply