saving entries in search history

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

saving entries in search history

Post by harryray2 »

I can't quite make out how entries are saved to the search history...Are entries saved on exit? This doesn't always seem to be the case.

Is it possible to save an entry after each search?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

Search history is saved to disk when exit Everything or close an Everything search window.

Everything likes to avoid writing to disk.
I will consider an option to save the Search History to disk after each change.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

Thanks, that would be very useful...
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

Looking over the search history code and I have found a bug..

Importing search history does not flag the search history as dirty.
Which means the imported search history is not saved to disk unless you make a change to the search history.

I am working on a fix.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

I think that answers a problem I had when I went from 1.4 to 1.5...I ended up copying the file over rather than importing.

I have found though that the search history doesn't always seem to save on exit.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

Is your search history missing only recent searches or is it completely reset?

Are you saving your app data to a network drive? or are you using roaming profiles?
-Loading the search history may have failed. You would most likely lose all your history in this case.

Are you modifying, copying or restoring tour Search History.csv while Everything is running?
-The Search History.csv will overwrite any changes you made to disk outside of "Everything".
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

Just recent searches..but it appears that if I use a bookmark or use a bookmark and type in text it saves, but if I just type in some text it's not saving.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

That is normal.

Your current search is only saved to your search history when press ENTER from the search box or when you perform an action on a result.
Otherwise, your search history would end up with:
w
wi
win
wind
windo
window
windows
etc...


Consider setting the search_history_add_delay ini setting:
  • In Everything, type in the following search and press ENTER:
    /search_history_add_delay=1000
    where 1000 is the number of milliseconds to wait before adding the current search to your search history.
    0 = off.
  • If successful, search_history_add_delay=1000 is shown in the status bar for a few seconds.

Consider enabling search_history_add_on_kill_focus:
  • In Everything, type in the following search and press ENTER:
    /search_history_add_on_kill_focus=1
  • If successful, search_history_add_on_kill_focus=1 is shown in the status bar for a few seconds.
    --Everything will now save the current search to your search history when you alt tab away from Everything.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

I just tried again and now it seems to be working. It appears the problem is sporadic. The last few entries I've typed in but not pressed enter or performed an action.

I have all my Everything files in one directory.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

Sorry, messages crossed, I'll try that.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

Will the 'search_history_add_on_kill_focus' only work with alt tab or if I just shift focus to another Window?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

When the search box loses focus.

So, yes, when you alt tab or select another window (even another window within Everything)
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

Thank you, what I don't understand though is why, when I don't press enter or perform an action it sometimes saves and then doesn't (and the works again).

I'll keep experimenting.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

"action" is quite vague, changing the sort is also considered an "action".

Alt + Left Arrow will also save the current search to your search history.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: saving entries in search history

Post by harryray2 »

I suppose an option to save after each change is the best solution for me as I type several searches in succession, sometimes having to go back to a previous search.

Now if I do several searches in succession and clear each search (either with the x in the box or deleting ) and none of these searches get a result the searches aren't saved.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: saving entries in search history

Post by void »

Everything 1.5.0.1274a fixes an issue with saving the search history to disk which might have caused the issue you described.
Post Reply