custom command: go to first file/folder in results

Have a suggestion for "Everything"? Please post it here.
Post Reply
nod5
Posts: 15
Joined: Fri Aug 19, 2016 9:12 pm

custom command: go to first file/folder in results

Post by nod5 » Thu Feb 21, 2019 9:31 pm

Feature suggestion: Add a custom command, and customizable keyboard shortcut, to go to (select and scroll to) the first file/folder in the results list.

The shortcut could be a toggle: if the current selection is a folder then then jump to select the first file. And vice versa.

With first file/folder I mean the topmost file of that type (folder or non-folder) in the results list, which in turn depends on what the current Sort By mode is and if the current sort is ascending or descending.

This would be useful when a search yields a larger number of results and the first N result items are folders. We can of course already filter out folders or files by adding "file:" or "folder:" to the search. But the suggested feature would be a neat alternative.

NotNull
Posts: 1457
Joined: Wed May 24, 2017 9:22 pm

Re: custom command: go to first file/folder in results

Post by NotNull » Thu Feb 21, 2019 10:11 pm

For now, you could add a shortcut to your filter(s):

- Create a filter Files, like this:
2019-02-21 23_00_38-Everything.png

Now, when you want to go to the files section, press Ctrl-Alt-Down, activating the Files filter.
A repeated Ctrl-Alt-Down, will reactivate the Everything filter again, giving you the Folders on top.
(you could also create a Ctrl-Alt-Up keyboard shortcut for the Folders filter)


@void: I have a different default filter configured under Options > Home. Preesing Ctrl-Alt-Down twice doesn't give me back that default filter, but the Everything filter instead. Just a FYI (maybe that is by design).
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 4894
Joined: Fri Oct 16, 2009 11:31 pm

Re: custom command: go to first file/folder in results

Post by void » Fri Feb 22, 2019 12:52 am

Thanks for the suggestions.
Feature suggestion: Add a custom command, and customizable keyboard shortcut, to go to (select and scroll to) the first file/folder in the results list.
I'll consider adding a command to do this. If the first file result is already focused, it would jump to the first folder folder result and vise versa.

Currently, you can press the Down arrow key from the search edit to select the first result, or press Home in the Result list to select the first result.
@void: I have a different default filter configured under Options > Home. Pressing Ctrl-Alt-Down twice doesn't give me back that default filter, but the Everything filter instead. Just a FYI (maybe that is by design).
It would make sense for Everything to toggle between the default filter.. added to my TODO list.

nod5
Posts: 15
Joined: Fri Aug 19, 2016 9:12 pm

Re: custom command: go to first file/folder in results

Post by nod5 » Fri Feb 22, 2019 5:59 pm

NotNull wrote:
Thu Feb 21, 2019 10:11 pm
For now, you could add a shortcut to your filter(s)
Thanks for that suggestion. It prompted me to make a script that cycles between file filter, folder filter and no filter.

Code: Select all

;AutoHotkey helper keyboard shortcut for Everything for quick filter changes
;2019-02-22
;Press control+alt+down to cycle through these filters
;- show only files
;- show only folders
;- show both files and folders
#NoEnv
#SingleInstance force
#IfWinActive, ahk_exe Everything.exe
^!Down::
ControlGetText, search, Edit1, A
If InStr(search, " file:")
  ControlSetText, Edit1, % StrReplace(search, " file:", " folder:"), A
Else If InStr(search, " folder:")
  ControlSetText, Edit1, % StrReplace(search, " folder:", ""), A
Else
  ControlSetText, Edit1, % search " file:", A
return
#IfWinActive
edit: simplified code
void wrote:
Fri Feb 22, 2019 12:52 am
I'll consider adding a command to do this. If the first file result is already focused, it would jump to the first folder folder result and vise versa.
Thanks, I prefer that to the filtering approach in my script above and in NotNull's suggestion.

Post Reply