Syntax of functions

Have a suggestion for "Everything"? Please post it here.
Stamimail
Posts: 240
Joined: Sat Aug 31, 2013 9:05 pm

Syntax of functions

Postby Stamimail » Wed Mar 22, 2017 3:28 pm

Currently the syntax of Everything functions is based on the Windows syntax, which you type in at first the name of the function and then a : like this
functionname:

I think it is not a good method, since the program doesn't know when you intend to type a function name till the end of the functionname when you type :, so in meantime it searching for the letters you're typing and change the Results List without the user wish.

I suggest to make the functions syntax with a (customizable) prefix (and also suffix) something like

:functionname:
or
/functionname/
or
/functionname: (maybe this is the preferred syntax for functions)
or
/functionname= (maybe this is the preferred syntax for the ini file settings)
etc

When you type the prefix, the program know you are typing a function, so it won't affect the Results List till the function will be ready to be launched.

therube
Posts: 1595
Joined: Thu Sep 03, 2009 6:48 pm

Re: Syntax of functions

Postby therube » Wed Mar 22, 2017 4:55 pm

An opening : or / or ... is still going to affect the results list - at the least by wiping all results out until the function name is fully typed out.

(Do we already have some sort of delayed interpretation of the search line?
Maybe something like that, but...)


(PS: / can already be used as an alternative to \, & already with one of the changes, I think it was with entering .ini changes from the search line, could potentially cause issues.)

salazor
Posts: 231
Joined: Tue Jun 17, 2014 10:52 am

Re: Syntax of functions

Postby salazor » Wed Mar 22, 2017 5:07 pm

It fits me as now, but maybe not to interfere do it as in Excel:

Code: Select all

=functionname:

Stamimail
Posts: 240
Joined: Sat Aug 31, 2013 9:05 pm

Re: Syntax of functions

Postby Stamimail » Wed Mar 22, 2017 6:20 pm

therube wrote:An opening : or / or ... is still going to affect the results list - at the least by wiping all results out until the function name is fully typed out.
You display the problem well.
salazor wrote:It fits me as now, but maybe not to interfere do it as in Excel:

Code: Select all

=functionname:
Folders and Files can get = in their names, so the program indeed needs to look for = . Therefore I think it would be better to use one of these:
Image

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

Re: Syntax of functions

Postby void » Thu Mar 23, 2017 2:51 am

I understand the frustration with having to type function:

I'll be reviewing auto complete in Everything 1.5, and also adding support for customizing the main UI so you can have a size bar, date modified bar etc..

Maybe starting a search term with > could show a list of functions..
Allowing the user to customize the characters > and : in >size: is always a good idea.

Stamimail
Posts: 240
Joined: Sat Aug 31, 2013 9:05 pm

Re: Syntax of functions

Postby Stamimail » Thu Mar 23, 2017 9:07 am

Also in mind,

The suffix = can tell the program it's ini entry.
The suffix : can tell it's a function.

Alternatively,

You can use a prefix, something like:

/settings:statusbar_selected_item_format=
/configuration:statusbar_selected_item_format=
/preferences:statusbar_selected_item_format=
/ini:statusbar_selected_item_format=

[Multiple possibilities make it Associative, meaning, you don't have to read the Help to find what you want.]

and also to create a short prefix (for advanced users use in High Frequently), something like:
/?statusbar_selected_item_format=
or
//statusbar_selected_item_format=
/>statusbar_selected_item_format=
etc

Now, as for Not function.
Currently the operator ! is been used.
But ! is also valid in Folder/FIle names ???
IMHO needs to be changed to something like:
/!
/!:

/!nottext
/!:.lnk

Another thing needs to take into account here for future release,
Text Mode (maybe I will write about this idea later)
If in the future Everything will partially support a Text search, since you may find Everything commands and tools helpful not only for manipulate File/Folders, but also for manipulate texts.
In Text Mode all characters are valid.


Return to “Suggestions”