Commit Graph
826 Commits
Author SHA1 Message Date
Zef Hemel 405899781e Added journaling guide to website content 2026-03-04 14:23:59 +01:00
Zef Hemel 35542a2cc9 Missing website files, whoops 2026-03-04 13:39:27 +01:00
Zef Hemel 59c271131b Big website content iteration 2026-03-04 13:31:27 +01:00
Zef Hemel ba297f66db Doc tweaks (less duplication of queryies and more use of bound queries) 2026-03-03 10:43:30 +01:00
Matouš Jan Fialka b786d65307 [LIQ] Add filter(where <cond>) clause for per-row aggregate filtering
Implements `filter(where <cond>)` for aggregate functions in LIQ
queries which allows per-row conditional filtering within grouped
aggregates. Also extends test suite and documentation.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-03-03 08:29:18 +01:00
Matouš Jan Fialka ff6854f6ee [LIQ] Add nulls first / nulls last to order by
Extend the `order by` clause with optional `nulls first` and `nulls
last` modifiers following standard SQL semantics. Each sort key can
independently specify where `nil` values should appear in the result. By
default, ascending sorts place nulls last and descending sorts place
nulls first. An explicit nulls first or nulls last overrides this
default. The `asc` keyword is also now accepted as an explicit
alternative to the default ascending direction. Documentation and tests
were updated accordingly.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-03-02 12:34:25 +01:00
Matouš Jan Fialka b6d4f71aca [LIQ/doc] Fix docs typo
The `select` part operates not over a single record, but over each group
(i.e., the set of records sharing the same group key). The `select`
clause's environment is generally:

* `name` (the group key)

* `group` (the table of records in the group)

Note: no `p` is bound (`p` is not set; it was the row variable during scan, but we are now at the group level).

In the `select { name = name }` the name refers to the group key (what
we `group by`-ed).

We typically use:

* `name = name` (group key, as in the query), or

* if we want data from the first record (say all grouped `p.name` are
  the same and non-`nil`) then `name = group[1].name`.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-02-25 10:45:08 +01:00
13c61ebab7 [LIQ] Extend with group by and having with aggregators (#1843)
* [LIQ] Extend with `group by` and `having` support

Also update documentation with extensive examples and add some parser
tests.

Note: `make generate` JS files included.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Merge `liq-add-support-for-aggregators` branch

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Fix link, remove `_` example

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Wrap example LIQ queries inside `query [[ .. ]]` and replace `sql` code block type to `lua`

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Example self-consistency fix

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>

* Fixed some queries

* Add experimental tags to LIQ aggregation/grouping

---------

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
Co-authored-by: Zef Hemel <zef@zef.me>
2026-02-25 10:35:31 +01:00
rktjmpandGitHub 4fdc8c1af5 Vim mode binding collision documentation (#1827) 2026-02-08 15:22:30 +01:00
Zef Hemel f6d2e37d25 Reduce logging noise 2026-02-05 11:09:05 +01:00
Zef Hemel e0d173914f Inline Page Template content on website 2026-02-04 19:25:41 +01:00
Zef Hemel 0f6f06a14f Website docs refactoring (Lua, mostly) 2026-02-04 17:03:55 +01:00
Zef Hemel 34f34f9347 CHANGELOG fix 2026-02-03 16:02:14 +01:00
Zef Hemel 0773df31e2 Add validation and error handling for object indexing
- Introduced a new `validate` callback for `tag.define`
- Added `index.validateObjects` API to validate and transform objects before indexing.
- Updated relevant documentation and examples to reflect these changes.
2026-02-03 15:59:04 +01:00
Zef Hemel 7adeb4bd30 CHANGELOG updates 2026-02-03 10:26:26 +01:00
Zef Hemel 923b18eba6 Update CHANGELOG.md 2026-01-29 15:44:10 +01:00
Zef Hemel d14695abf4 Iterations on tag.define
* Now also supports setting a custom metatable (replacement of
  index.defineTag)
* Load tag.define API on boot so can be used for initial client index
  from CONFIG
* Docs and examples
2026-01-29 11:07:28 +01:00
Metin YaziciandGitHub 10520ffb3d Configure remember me option (#1796)
* Configure remember me option

* Update Configuration.md
2026-01-29 08:13:50 +01:00
Zef Hemel 1110258b90 Adding back index.defineTag (DEPRECATED)
Removed from docs
Will be replaced with something better later
2026-01-27 17:11:59 +01:00
Zef Hemel d6078979a5 Revert "Remove legacy index.defineTag API"
This reverts commit 78236db7a0.
2026-01-27 16:52:52 +01:00
Zef Hemel 77b3186160 Revert from t in expr syntax variant in LIQ after discussion 2026-01-27 16:24:29 +01:00
Zef Hemel 78236db7a0 Remove legacy index.defineTag API 2026-01-27 13:46:09 +01:00
Zef Hemel 6f8c8bda64 Deployment notes on file systems 2026-01-27 10:33:56 +01:00
Zef Hemel bd03a406f0 Renamed postIndex to transform for tag.define API (experimental). 2026-01-27 09:33:00 +01:00
Zef Hemel 812dee8537 Lua/LIQ: added from p in <<expr>> as a syntax variant (and preferred
option) for `from p = <<expr>>`. Updated docs accordingly.
2026-01-27 09:15:07 +01:00
Zef Hemel 2e469ba3ea Lua: table.select API 2026-01-27 09:00:37 +01:00
Nick SavageandGitHub fe800417bc Adjust some documentation (#1788) 2026-01-25 14:38:53 +01:00
Zef Hemel fa49044cf0 PayPal funding option 2026-01-24 16:40:41 +01:00
Zef Hemel 9b05beba16 First pass of custom tag behavior (schema and postProcess) support
See API/tag.md for explanations and examples.
2026-01-22 15:32:01 +01:00
Zef Hemel fb10fd65b8 shortWikiLinks config option 2026-01-22 08:42:30 +01:00
Zef Hemel a89ab96438 Expose _G global variable in Space Lua 2026-01-21 14:32:41 +01:00
Zef Hemel 16114292fb Update CHANGELOG.md 2026-01-21 13:38:45 +01:00
Zef Hemel 8acad63565 Reorganized keyboard shortcuts a little bit and documented them. 2026-01-21 11:01:11 +01:00
Zef Hemel c25a073e81 WIP 2026-01-20 13:48:15 +01:00
Zef Hemel 81b7bd0d5a Funding page tweaks 2026-01-16 13:38:30 +01:00
Zef Hemel e4f869bb71 2.4.0 2026-01-16 13:04:17 +01:00
Zef Hemel 7a6bb14825 type 2026-01-16 08:34:11 +01:00
Zef Hemel c0a1ae583d Wording tweak about LLM use 2026-01-16 08:32:32 +01:00
Zef Hemel 0971bdf0ed Simplified docker install instructions 2026-01-16 08:13:13 +01:00
Zef Hemel e670c71849 Rename index.text API to index.markdown 2026-01-16 08:10:28 +01:00
Zef Hemel a21889744f More doc tweaks 2026-01-15 11:56:54 +01:00
Zef Hemel c15119a2c8 CHANGELOG updates and API docs 2026-01-15 11:50:06 +01:00
Zef Hemel 688afded0f Picker tuning
* Removed code complete from mini editor (didn't really work anyway, and
  only use case was emoji)
* Changed meta picker to be more consistent with page picker
* Alt-space completion in page picker (completes "folder" to the top
  match)
2026-01-15 11:14:16 +01:00
Zef Hemel 5a3739adba typo fix 2026-01-14 13:18:42 +01:00
Zef Hemel 28cbbc9d3b Slightly language tweaks in LLM contribution guide 2026-01-14 09:46:37 +01:00
Zef Hemel 9bf093ecdd Initial version of an LLM policy 2026-01-14 09:20:19 +01:00
Zef Hemel 27c67878e5 CHANGELOG 2026-01-13 19:24:41 +01:00
Zef Hemel bc1f5c6ed0 Docs fix 2026-01-13 15:46:47 +01:00
Zef Hemel 43bd9efaf7 * Add "view" button to transclusions, jumping to ref
* Tweaks to markdown.expandMarkdown syscall
2026-01-12 17:19:23 +01:00
Zef Hemel 067e1058d2 Item indexing refactor 2026-01-12 17:19:23 +01:00