[feature request] remove files extension when dragged to search field

Discussion related to "Everything" 1.5 Alpha.
Post Reply
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

[feature request] remove files extension when dragged to search field

Post by asamirid »

greetings ..

in everything i usually do select a bunch of files from the results panel and drag it to the search field to start working with them. this is happen multiple times everyday.

i need the option to remove file-extensions from reaching and appears in the search field. and just add the file stem to search field. let's say by pressing alt key while dragging or any suitable way.

this is more convenient and has a huge impact in many situations.

displaying files with the same name like with (1), _1, copy of, and more
displaying files with longer names like -rev01
displaying same file with different extensions like identical file name stem but with different extensions as jpg and png formats
and much much more ..

example to clear what meant, if i dragged the file
d:\data\abc_123.txt

what i want to appear in search field is
d:\data\abc_123
not
d:\data\abc_123.txt


that it.

thank you
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: [feature request] remove files extension when dragged to search field

Post by void »

I will consider an option to rewrite filenames when dropping files on the search box.

Thank you for the request.
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [feature request] remove files extension when dragged to search field

Post by asamirid »

thanx void for considering this.

fingers crossed to see new features soon.
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: [feature request] remove files extension when dragged to search field

Post by void »

Everything 1.5.0.1357a adds a stem formatting option to the hdrop_file_format ini setting.

To remove the extension and path when dropping files on Everything:
  • 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:
    hdrop
  • Select hdrop_file_format.
  • Set the value to: Stem
  • Click OK.
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [feature request] remove files extension when dragged to search field

Post by asamirid »

thank you void for adding this feature.

my take is this way of implementation force us "the users" to select one fixed settings regarding dragging to search bar.

when i drag an item to search bar it can be one of these format "as i can see it now" ..

* stem
* stem.ext
* path:\stem
* path:\stem.ext
* path:\

if i can select between these formats or some of them on the fly while ongoing search that will be great.

my favorite formats is ..
* stem
* path:\stem
* path:\


hope to had this flexibly in the future. and thank you for adding this.
void wrote: Thu Oct 05, 2023 8:21 am Everything 1.5.0.1357a adds a stem formatting option to the hdrop_file_format ini setting.

To remove the extension and path when dropping files on Everything:
  • 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:
    hdrop
  • Select hdrop_file_format.
  • Set the value to: Stem
  • Click OK.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: [feature request] remove files extension when dragged to search field

Post by therube »

Not drag&drop, but a Keyboard shortcut to copy stem:<filenames> ? (which you can then Paste into the search bar).
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [feature request] remove files extension when dragged to search field

Post by asamirid »

this is also a good working solution, thank you therube,

[q] if
/copy $stem:
copy file stem as expected

what parameters copies these below ..
* stem.ext
* path:\stem
* path:\stem.ext
* path:\

therube wrote: Tue Oct 10, 2023 2:45 pm Not drag&drop, but a Keyboard shortcut to copy stem:<filenames> ? (which you can then Paste into the search bar).
void
Developer
Posts: 16740
Joined: Fri Oct 16, 2009 11:31 pm

Re: [feature request] remove files extension when dragged to search field

Post by void »

I am considering full customization of the hdrop format.

For now, you'll need to set the hdrop from the advanced options or from a bookmark.

Set the bookmark search to:
/hdrop_file_format=<your-format-number-here>

For example:
/hdrop_file_format=4

-If you wanted to make the bookmark toggle between stem and full path:
/hdrop_file_format=hdrop_file_format==4?0:4


what parameters copies these below ..
* stem.ext
* path:\stem
* path:\stem.ext
* path:\
$stem:.$extension: -or- $name:
$pathpart:\$stem:
$fullpath: -or- $pathpart:\$stem:.$extension: -or $pathpart:\$name:
$pathpart:\

$property-name: is replaced with the property value.
Post Reply