Is there a way to set filter and column widths using a Function key?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

I would like to have Everything
a. set a filter defined under Search>Organize Filters
b. set column widths as per View > Windows size > Large
(see screenshot)

the filter shown is my default filter setting

and these stored under e.g. F12, i.e. if I hit F12 above will be performed.

(maybe as macro, but I have no knowledge at all about macros)

When exiting Everything, I am doing the following:
1. set to my default filter
2. set column view
3. then File > Exit

Thanks!
SnagIt-13102024 072426.png
SnagIt-13102024 072426.png (37.43 KiB) Viewed 1468 times
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is there a way to set filter and column widths using a Function key?

Post by void »

To create a bookmark to set your filter, window size, column and column widths:
  • In Everything 1.5, from the Bookmarks menu, click Add to bookmarks....
  • Change the Name to:
    My View

    (can be any name you like)
  • Change the Search to:

    Code: Select all

    /window-size 1280 720
    /columns [{"name":"Name","width":330},{"name":"Path","width":330},{"name":"Size","width":46},{"name":"Date Modified","width":99}]
    
    adjust /window-size <width> <height> as needed.
    adjust /columns <json array of column objects> as needed.
    -you can get your current column settings from Help -> Troubleshooting Information -> Config: columns
  • Set the desired filter.
  • Leave columns as (No change) as we use the /columns search command for more control.
  • Set the keyboard shortcut.
  • Click OK.
/window-size
/columns
/exit
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

Thanks a lot.
I'll give it a try soonest.
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

Am a bit puzzled on the matter of window size.

There are window sizes in the .ini (and .json), for instance:
window_wide=1312
window_high=918

and in the search box in your reply, /window-size

seems there is a small difference: the dimensions set in "/window-size", after file-exiting Everything, they do not match the numbers in the .ini (and .json)

what I did:
-set the window size to my liking: /window-size 1296 859
(as well as column sizes)
-hit F12 (being the function key that executes 'My View')
exited Everything
then checked out the .ini window_wide and window_high numbers, assuming that these numbers would correspond with the '/window-size' numbers

However, they are as per above (1312 918)

But, then again, maybe they simply aren't the same(?)

Oh, btw, is there a kind of 'clear search box' CLI ?
_
SnagIt-16102024 061114.png
SnagIt-16102024 061114.png (30.77 KiB) Viewed 1352 times
.

Thanks again.
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is there a way to set filter and column widths using a Function key?

Post by void »

/window-size sets the client size in logical pixels.
The window border is ignored.

The Everything ini stores the window position and size in device pixels.
The window border is included.

Use the following search commands to set the exact window position and size in device pixels.
/window_x=123
/window_y=123
/window_wide=123
/window_high=123



Oh, btw, is there a kind of 'clear search box' CLI ?
Add an empty line at the bottom of your bookmark search.
-or-
Use an empty /search command:
/search
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

Magnificant!
Thank you very much.
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

I was reading the thread about "Sessions"
(viewtopic.php?t=14903&e=1&view=unread#unread)

I set Everything the way I wanted, exited and a newly session file (.json) was created.

Never bothered about the session .json thing, to be honest.

I gave it a try to add a bookmark with /restore-session Session-Portable.json as custom search (see earlier screenshot) assuming that would 'reset' the view to 'my' default one. It didn't.

Went back to:

/window-size 1290 860
/columns=[{"name":"Name","width":433},{"name":"Path","width":420},{"name":"Size","width":92},{"name":"Full Path Length","width":98},{"name":"Date Modified","width":114},{"name":"Extension","width":52},{"name":"Type","width":63}]
/search

save it as F12

In my case... this brings back Everything as far as possible to how I want it to show up at startup.
One day there may also be a close tabs and close preview :-)
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Is there a way to set filter and column widths using a Function key?

Post by tuska »

... close preview ...

Code: Select all

/hide-preview
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

Wow - super!
Thanks. I was searching and searching for something like close preview :-)

Again, thanks.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: Is there a way to set filter and column widths using a Function key?

Post by tuska »

2eswul62
You're welcome.

These commands can also be useful:
/hide-folders-sidebar
/hide-bookmarks-sidebar
/hide-filters-sidebar
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Is there a way to set filter and column widths using a Function key?

Post by eswul62 »

Thanks again.
Kind of you to think those commands as well.
Right now I hardly use the bookmarks side bar, but I add that command anyhow, just in case.... :-)
Post Reply