LESANA-SEARCH(1)
π NAME π
lesana-search β bestie, this is the one that lets you search inside a lesana collection. That's it. That's the whole job. And it slays at it. β¨
π SYNOPSIS π
lesana search [--help] [--collection COLLECTION] [--template TEMPLATE]
[--offset OFFSET] [--pagesize PAGESIZE] [--all]
[--expand-query-template] [--sort FIELD1 [--sort FIELD2 β¦]] [query
[query β¦]]
π¦ DESCRIPTION π¦
Okay so. lesana search is literally how you go digging through your collection and then render the results. Search + pretty output. Chef's kiss. π
The whole query syntax situation? That's broken down in detail in the Search syntax section of the full documentation. You can find it online right here:
https://lesana.trueelena.org/user/search.html
β¦or it might already be installed on your system. For example, on Debian and its derivatives, you'll find it at:
/usr/share/doc/lesana/html/user/search.html
So no excuses, the docs are right there. π
By default, entries get printed according to the entry_label from your settings.yaml file. But β plot twist β you can also render them through a jinja2 template instead. Fancy. We love options. πΈ
And if you don't give it a query at all? It defaults to '*', which means search everything. So:
lesana search --allβ prints all the entries, the whole collection, the entire buffet πlesana searchβ prints just the first 12 entries, possibly following whatever relevant sorting options you threw in there
β¨ OPTIONS β¨
-h,--helpβ prints a help message and then dips out. Exit stage left. πͺ--collection COLLECTION,-c COLLECTIONβ the collection you wanna work on. Default is.(yes, just a dot, the current directory, it's giving "right here, bestie"). π--template TEMPLATE,-t TEMPLATEβ the template to use when showing off your results. β¨--offset OFFSETβ.(that's all the manpage gives us, bestie, we're keeping it 100 β literally a period) π--pagesize PAGESIZEβ.(again, a whole period. iconic of it, honestly) π--allβ returns all available results. The full haul. No crumbs left behind. π₯--sortβ sorts the results by a sortable field.
You can stack this option multiple times, go off π―. And if you prefix the field name with -, it reverses the results β like this, for example: --sort='-date'. Backwards but make it fashion. π
--expand-query-templateβ renderssearch_aliasesin the query as a jinja2 template. π§
π AUTHOR π
valhalla@trueelena.org
π COPYRIGHT π
2020-2021, Elena Grandi
And that's the whole page, bestie! This manual page is from version 0.10, and it was dated Jan 29, 2025 β so if you're reading this way later, maybe go check for a glow-up. Mwah! πβ¨π
π¦ where this page comes from
- debian trixie: lesana 0.10.1-3 Β· GPL-3.0-or-later
- ubuntu questing: lesana 0.10.1-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms