The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Have a suggestion for "Everything"? Please post it here.
Post Reply
tiddu
Posts: 17
Joined: Wed May 27, 2020 7:11 am

The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by tiddu »

but sometimes pc crashes and i lost all the opened tabs of everything app and later there is no search history to check. can you make some command like -update database or something that can save all the search history or the open tabs to some file or something.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

A restore session option is on my TODO list.

Currently, Everything will save your search history to disk when you close an Everything window or exit Everything.

I will consider an option to periodically save the search history to disk.
I will consider saving the search history to disk with -update.

Thank you for the suggestions.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

Everything 1.5.0.1276a will now save the current UI settings, search history, plugin settings, run history and database when auto-saving.

By default Everything will auto save everyday at 4am.

If this scheduled save is missed (computer asleep), Everything will save the next time it is woken and after 5 minutes of user input inactivity.

Previous 1.5 versions would only save the database.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

By periodically save to disk, do you mean the ability to set a time period for a save? eg. Every 30 mins, every 45mins etc.

That would be useful.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

By default, Everything will auto save settings and data to disk at 4am daily.


To set Everything to periodically save settings and data to disk:
  • In Everything, type in the following and press ENTER:
    /db_auto_save_type=1
  • If successsful, db_auto_save_type=1 is shown in the status bar for a few seconds.
  • Type in the following and press ENTER:
    /db_auto_save_interval=1800000
    (where 1800000 is the number of milliseconds to wait before auto saving)
    (1800000 = 30 minutes)
  • If successsful, db_auto_save_interval=1800000 is shown in the status bar for a few seconds.
    ---Everything will now auto save every 30 minutes (but only when there has been 5 minutes of inactivity).

db_auto_save_type
db_auto_save_interval
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

Thanks, any way of automatically saving whilst using Everything (skipping the 5mins of inactivity)?
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

To disable the wait for idle input, set the db_auto_save_idle_delay ini setting to 0:
  • In Everything, type in the following and press ENTER:
    /db_auto_save_idle_delay=0
  • If successsful, db_auto_save_idle_delay=0 is shown in the status bar for a few seconds.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by tuska »

void wrote: Thu Sep 23, 2021 5:26 am Everything 1.5.0.1276a will now save the current UI settings, search history, plugin settings, run history and database when auto-saving.
...
Previous 1.5 versions would only save the database.
Command line

Code: Select all

C:\Tools\Everything\Everything64.exe -update
saves these files:

Code: Select all

Everything.db
Everything.ini
Search History.csv
does not save these files:

Code: Select all

Plugins.ini
Run History.csv
Therefore, please check.
Thank you!

PS:
It would perhaps be desirable if one could also save these files:

Code: Select all

Filters.csv
Macros.csv
Temporary Excludes.csv
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

Thanks tuska...possibly save bookmarks as well.
horst.epp
Posts: 1456
Joined: Fri Apr 04, 2014 3:24 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by horst.epp »

To make it simple, in addition to the database
there should be saved all .ini and .csv files.
tuska
Posts: 1098
Joined: Thu Jul 13, 2017 9:14 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by tuska »

harryray2 wrote: Thu Sep 23, 2021 9:57 am Thanks tuska...possibly save bookmarks as well.
Yes.
Thank you! :)
---
2horst.epp
... That would be optimal :)
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

The next alpha update will save all settings and data with -update.
Thank you for the suggestion.

This will include:
  • Search History (Search History.csv)
  • Current plugin settings (Plugins.ini)
  • Current UI settings (Everything.ini)
  • Run History (Run History.csv)
  • Database (Everything.db)
Bookmarks, filters, macros and temporary excludes are saved to disk on each change.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

If I do a search and there are no results, the search doesn't appear to be saved in history. Also if I do a search and the result isn't clicked on.

At the moment I just have the db_auto_save_idle_delay=0 set, I intend to set the autosave for about every 5 mins, or possibly less if I'm using Everything a lot.
Will setting it for this often cause any problems with performance or memory?

I mainly need the search history updated frequently...The database and ini probably only once a day. Is there a way of just setting Everything to save the search history more frequently than the db and ini?
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

If I do a search and there are no results, the search doesn't appear to be saved in history. Also if I do a search and the result isn't clicked on.

Some suggestions to add your current search to history:

Press ENTER from the search box.

-or-

Click in the empty result list.

-or-

Try setting search_history_add_delay to a small value.
Too small and Everything might save every keystroke.
Too large and Everything might miss saving the search before it is cleared.

For example:
  • In Everything, type in the following search and press ENTER:
    /search_history_add_delay=1000

At the moment I just have the db_auto_save_idle_delay=0 set, I intend to set the autosave for about every 5 mins, or possibly less if I'm using Everything a lot.
Will setting it for this often cause any problems with performance or memory?
Yes, saving the database will consume a small amount of CPU and RAM.

The whole database is written to disk.
Auto-saving every 5 minutes will add up to a lot of writes to disk.
Please make sure you are saving to a HDD (not an SSD) if you are auto saving multiple times a day.


I mainly need the search history updated frequently...The database and ini probably only once a day. Is there a way of just setting Everything to save the search history more frequently than the db and ini?
No.

I will consider an option to only auto save the search history.
or, an option to save search history to disk on each change.

Thanks for the suggestions.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

Thanks, the /search_history_add_delay=1000 does work but if I hesitate whilst I'm typing it does, as you say, save unwanted keystrokes.
I think the best way would be to try and remember to click on the search results each time which seems to work nicely.

I think, in retrospect, setting the save to every 5 mins may not be such a good idea as it also saves the database.
Having an option to just save the search history on each change would be ideal.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

Everything 1.5.0.1278a adds a search_history_save_on_change ini setting.

To save your search history to disk on each change:
  • In Everything, type in the following search and press ENTER:
    /search_history_save_on_change=1
  • If successful, search_history_save_on_change=1 is shown in the status bar for a few seconds.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

I tried this out but there doesn't appear to be any difference.

I've downloaded 1278 and there are three things that don't seem to work.

1. Search history saved
2. show hidden and system on navigate
3. I can't find the entry for allow_disk_access in the plugins.ini file.

Thanks.
Last edited by harryray2 on Thu Sep 30, 2021 3:37 pm, edited 1 time in total.
horst.epp
Posts: 1456
Joined: Fri Apr 04, 2014 3:24 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by horst.epp »

harryray2 wrote: Thu Sep 30, 2021 2:53 pm I tried this out but there doesn't appear to be any difference.

I've downloaded 1278 and there are three things that don't seem to work.

1. Search history saved
2. show hidden and system on navigate
3. I can't find the entry for allow_disk_access in the plugins.ini file.

Thanks.
allow_disk_access is definitely found in the plugins.ini.
Here my unmodified plugins.ini

Code: Select all

; Please make sure Everything is not running before modifying this file.

[ETP FTP Server.dll]
enabled=0
welcome_message=
port=21
username=
password=
log_file_name=
logging_enabled=0
log_max_size=4194304
log_delta_size=524288
allow_file_download=1
bindings=
allow_file_download=1
allow_ftp_port=1
check_ftp_data_connection_ip=1
allow_disk_access=1

[Everything Server.dll]
enabled=0
port=14630
bindings=
users=
password=
include_only_path=
include_only_mount=

[HTTP Server.dll]
enabled=0
title_format=
port=80
username=
password=
home=
default_page=
log_file_name=
logging_enabled=0
log_max_size=4194304
log_delta_size=524288
allow_file_download=1
bindings=
items_per_page=32
show_drive_label=0
strings_filename=
header=
allow_disk_access=0
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by NotNull »

@void:

there are 2 "allow_file_download" entries in the [ETP FTP Server.dll] section.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

I've downloaded 1278 and there are three things that don't seem to work.
Can you please check if your Search History.csv is updated on disk after typing in a search and pressing ENTER.


there are 2 "allow_file_download" entries in the [ETP FTP Server.dll] section.
Fixed for the next alpha update.
This double entry doesn't cause any trouble.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by harryray2 »

I've set my entry save to /search_history_add_delay=3000 which seems to work OK but I've just noticed this doesn't work with entries that are pasted.

Is it possible?
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by void »

Pasting into the search box with search_history_add_delay appears to work here.

How are you pasting text into the search box? (eg: Ctrl + V)
When you paste your text into the search box does Everything update your results?
tiddu
Posts: 17
Joined: Wed May 27, 2020 7:11 am

Re: The search history is saved to disk when you close an Everything search window or when you Exit Everything.

Post by tiddu »

void wrote: Tue Sep 14, 2021 10:36 am A restore session option is on my TODO list.

Currently, Everything will save your search history to disk when you close an Everything window or exit Everything.

I will consider an option to periodically save the search history to disk.
I will consider saving the search history to disk with -update.

Thank you for the suggestions.
thanks sir
Post Reply