1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Merge pull request #620 from kagahd/doc177

document issue #177 about overriding default sort order
This commit is contained in:
Patrik J. Braun 2023-03-13 11:12:36 +01:00 committed by GitHub
commit 9be4fda56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,9 +107,9 @@
App supports full <a href="https://en.wikipedia.org/wiki/Boolean_algebra">boolean logic</a> with negation and App supports full <a href="https://en.wikipedia.org/wiki/Boolean_algebra">boolean logic</a> with negation and
exact or wildcard search. exact or wildcard search.
It also provides handy suggestions with autocomplete. It also provides handy suggestions with autocomplete.
<br/> <p/>
Match types: <h5>Match types</h5>
<code class="code-block p-2 text-light rounded bg-secondary d-block"> <code class="code-block p-2 text-light rounded bg-secondary d-block">
person:"John" # exact match <br/> person:"John" # exact match <br/>
person:(John) # wildcard match <br/> person:(John) # wildcard match <br/>
@ -125,7 +125,7 @@
</div> </div>
<div class="row feature"> <div class="row feature">
<div class="col"> <div class="col">
Supported keywords: <br/> <h5>Supported keywords</h5>
<code class="code-block p-2 text-light rounded bg-secondary d-block"> <code class="code-block p-2 text-light rounded bg-secondary d-block">
after:2020<br/> after:2020<br/>
@ -146,13 +146,27 @@
5-km-from:(New York) # photos 5 km from the center of New York <br/> 5-km-from:(New York) # photos 5 km from the center of New York <br/>
any_text:"apple", # searches for apple everywhere, "any_text:" can be omitted any_text:"apple", # searches for apple everywhere, "any_text:" can be omitted
</code> </code>
Bool expressions: <br/> <p/>
<h5>Bool expressions</h5>
<code class="code-block p-2 text-light rounded bg-secondary d-block"> <code class="code-block p-2 text-light rounded bg-secondary d-block">
John and Kate # photos with "John" and "Kate" (any string match) <br/> John and Kate # photos with "John" and "Kate" (any string match) <br/>
John Kate # same as "John and Kate" <br/> John Kate # same as "John and Kate" <br/>
John or Kate # photos with "John" or "Kate" (any string match) <br/> John or Kate # photos with "John" or "Kate" (any string match) <br/>
2-of:(John, Kate, Steve) # lists photos that satisfies at least 2 out of the 3 names (any string match) 2-of:(John, Kate, Steve) # lists photos that satisfies at least 2 out of the 3 names (any string match)
</code> </code>
<p/>
<h5>Sort order</h5>
Add an empty file like <code class="code-block p-1 text-light rounded bg-secondary">.order_[ORDER].pg2conf</code>
to a folder to override the default sorting for that folder.
It's not recursively applied to subfolders.<br/>
Replace <code class="code-block p-1 text-light rounded bg-secondary">[ORDER]</code> in the above shown filename by one of the following values:<br/>
<code class="code-block p-2 text-light rounded bg-secondary d-block">
descending_name<br/>
ascending_name<br/>
descending_date<br/>
ascending_date<br/>
random<br/>
</code>
</div> </div>
</div> </div>