Deleting old while pasting new

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Deleting old while pasting new

Post by cfredc »

My old XP computer automatically deletes my previous search text as I paste my new text.

My new Win10 computer requires me to delete the old text before pasting the new.

Can I automatically delete? (Results - Clear Selection on Search does not do this.)

And, by the way, if I could drag and drop search text, life would be easier.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Deleting old while pasting new

Post by NotNull »

Do you have Select search on mouse click disabled on your Win10 machine?
(under Menu:Tools > Options > General >UI )
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Re: Deleting old while pasting new

Post by cfredc »

Thanks NOTNULL, I checked and it was enabled. I tried disabling it, no change. I then enabled it again, no change.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Deleting old while pasting new

Post by NotNull »

Then I probably don't understand what you want.

Could you explain differently or post a screenshot (if that helps)?

EDIT: Or do you mean that when you click with the mouse in the search bar, your previous search query is selected (=highlighted in blue) and when you start typing a new query, the old query disappears and you get just the new one?

There is an INI entry for that, but if you did a fresh install of Everything, that entry should be OK (select_search_on_focus_mode=1)
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Deleting old while pasting new

Post by therube »

When you highlight (or jump to) the search bar, is cursor position at the end of existing text or is the existing text highlighted in its entirety?
(Does Everything have an option to determine "insertion point"?)
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Deleting old while pasting new

Post by void »

Can you please give some examples of what you would like?

You will need to manually select all the text before pasting to overwrite all the existing text (Ctrl + A + V).

To enable drag-dropping files on to the search edit:
  • In Everything, type in the following search and press ENTER:
    /search_edit_drag_accept_files=1
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Re: Deleting old while pasting new

Post by cfredc »

Abandoning reasoning, I tried simply comparing the Options on the two PCs.
Enabling:
UI - Focus search on activate
fixed my problem.

As to the ability to drag and drop Firefox TEXT into the Search Bar, I tried /search_edit_drag_accept_files=1 - but it had no effect. Isn’t that just for dragging files from Windows Explorer?
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Deleting old while pasting new

Post by NotNull »

cfredc wrote: As to the ability to drag and drop Firefox TEXT into the Search Bar, I tried /search_edit_drag_accept_files=1 - but it had no effect. Isn’t that just for dragging files from Windows Explorer?
There might be an alternative for that! There are several threads about a Firefox-Everything connection. Bottomline: Select some text in Firefox; press a 'button' and Everything will pop-up wit this text in the search bar.

Those threads are a bit chaotic, so here are the steps to get that working:


In Everything
  • Enable URL protocol (Menu:Tools > Options > General)
In Firefox
  • Enable the Bookmark toolbar (Menu:View > Toolbars > Bookmark Toolbar)
  • Right-click on an empty part of that toolbar and choose New Bookmark
  • Enter javascript:location.href='es:'+document.getSelection();void(0); for the location, like this:
    2018-06-12 17_02_03-Properties for “Everything”.png
    2018-06-12 17_02_03-Properties for “Everything”.png (6.92 KiB) Viewed 10233 times
  • Save
  • Done
To search for the text you selected in Firefox, just click on the Everything button.
That's all.
Last edited by NotNull on Sun Jul 21, 2019 1:31 pm, edited 3 times in total.
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Re: Deleting old while pasting new

Post by cfredc »

Thanks Not Null, but I don't understand what I am supposed to do with :

Enter
Code: Select all
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Deleting old while pasting new

Post by Stamimail »

@cfredc
Just make it like you see in the image above.
Can you do this?
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Re: Deleting old while pasting new

Post by cfredc »

Yes, my Properties box looks ike that, but when I select text and then click the button, all I get is a Firefox page that says:

The address wasn’t understood

Firefox doesn’t know how to open this address, because one of the following protocols (es) isn’t associated with any program or is not allowed in this context.

You might need to install other software to open this address.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Deleting old while pasting new

Post by Stamimail »

It works for me. Please ensure you have in Eveything Options (Menu:Tools > Options > General):
[v] URL protocol

Restart Everything
cfredc
Posts: 13
Joined: Mon Jun 10, 2013 6:37 pm

Re: Deleting old while pasting new

Post by cfredc »

Yes, that's it - it works perfectly. Thanks very much, it makes a real difference for my work.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Deleting old while pasting new

Post by NotNull »

Ah, you missed step 1. I changed the layout of the steps a little, to make it clearer (for someone else reading this in the future).
Post Reply