Toggle window from hide to show, and without losing search

If you are experiencing problems with "Everything", post here for assistance.
violetvoid
Posts: 3
Joined: Fri Apr 24, 2015 3:36 pm

Toggle window from hide to show, and without losing search

Post by violetvoid »

[EDIT: for some strange reason, it partly seems to work now (results preserved after toggle). don't know why.]

Hello, I would like to hit a shortcut, ctrl-shift-D and then have the Everything window appear (doesn't matter whether a taskbar button is shown or not). When I hit ctrl-shift-D again, the windows should be hidden completely and also no taskbar button should be there (I am not talking about the tray icon of course). When the window is shown, the state of the window prior to hiding should be restored, i.e. a search and the entered search terms should still be there. Ideally, the search field should be focused and the search terms selected, which would enable me to start a new search should I so intend.
I seem not to be able to get this running that way. Is it even possible? Thank you! I guess perhaps it could be done with AHK otherwise, but I personally cannot do this.
Thank you. Sorry for asking, but I've really been having some difficulties with the program. I also found it confusing how there are data files in programs AND in appdata,with no warning that one of these is not relevant, at a given time.
Tizoner
Posts: 1
Joined: Fri Jul 03, 2026 7:26 pm

Re: Toggle window from hide to show, and without losing search

Post by Tizoner »

I propose an ahk script to those who still struggle with this problem.

Code: Select all

ToggleEverything()
{
    windowHandleId := WinExist("ahk_class EVERYTHING")
    windowExistsAlready := windowHandleId > 0
    
    ; If the Window is already open, determine if we should put it in focus or minimize it.
    if (windowExistsAlready = true)
    {
        activeWindowHandleId := WinExist("A")
        windowIsAlreadyActive := activeWindowHandleId == windowHandleId
        
        if (windowIsAlreadyActive)
        {
            ; Minimize the window.
            WinMinimize, "ahk_id %windowHandleId%"
        }
        else
        {
            ; Put the window in focus.
            ; WinActivate, "ahk_id %windowHandleId%"
            ; WinShow, "ahk_id %windowHandleId%"
            Run C:\Program Files\Everything\Everything.exe -toggle-window
        }
    }
    ; Else it's not already open, so launch it.
    else
    {
        Run C:\Program Files\Everything\Everything.exe
    }

}

; Press Win+S to open everything search
#s::ToggleEverything()
void
Developer
Posts: 20035
Joined: Fri Oct 16, 2009 11:31 pm

Re: Toggle window from hide to show, and without losing search

Post by void »

This can also be done in Everything:
Set Tools -> Options -> Keyboard -> Toggle Window Hotkey to: Ctrl+Shift+D

Set Tools -> Options -> Home -> Search = (Use last value)



Please also see hide_on_close
Please also see minimize_on_close