Bookmark support in ES?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
aussieboykie
Posts: 35
Joined: Sun Mar 08, 2015 11:05 pm

Bookmark support in ES?

Post by aussieboykie »

If I have a bookmark called foo I would like to use the CLI to execute..

ES foo:

..and have it resolve the saved bookmark. However, from a quick test it looks like bookmarks are not resolved by the ES command line interface. Have I missed something or is this a limitation within es.exe?

Regards, AB
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Bookmark support in ES?

Post by therube »

ES is limited compared to Everything.

> ES.EXE -?

Code: Select all

-r Search the database using a basic POSIX regular expression.
-i Does a case sensitive search.
-w Does a whole word search.
-p Does a full path search.
-h --help Display this help.
-n <num> Limit the amount of results shown to <num>.
-s Sort by full path.
Now what you could do, & given the limited abilities of ES, is to script something using a batch file, such that "foo:" is meaningful - to the batch file.

pseudo:

Code: Select all

if %1 = ""
goto display :help

case %1 in (foo: bar: uncle:)
do
foo:  ES.EXE foo_items -n 99
bar:  ES.EXE bar_items -s -n 1999
uncle: ES.EXE -p /relatives/ cousin
ecase

:default
ES.EXE %1 %2 %3

exit

:help
ES.EXE - ?
So, given the parameters that ES can use, if you can create a "bookmark" that works for you, named foo:, then foo: you shall have ;-).
aussieboykie
Posts: 35
Joined: Sun Mar 08, 2015 11:05 pm

Re: Bookmark support in ES?

Post by aussieboykie »

ES currently supports all of the built-in search terms such as dm:thismonth, ext:xls;doc, and more complex constructs like <dm:thisweek|dm:lastweek> so I must say I was surprised to discover that a simple es foo: doesn't work. Anyway, c'est la vie I suppose. Maybe David will consider adding support either as a straight pass-through search term or perhaps by means of a bookmark switch - e.g. es -b foo.

Regards, AB
Post Reply