Posts
Completions are enabled - Fcitx5 configuration
Fcitx5 is an input method framework…. It is the cussessor to Fcitx.Full text search with a preprocessed query
GitHub: search_rrf_substitutions.py Related:
- Querying for tmux keybinding with Reciprocal Rank Fusion
- Select search candidates with FTS5, then rank by semantic similarity
- Rank tmux description FTS5 matches with BM25
The code below is using the RRF approach outlined in
Querying for tmux keybinding with Reciprocal Rank Fusion
. What’s different from that code is that before passing the query to the search_bm25 function, the query is preproceed to remove words that are in a “stop words” list and to substitute words that are in a substitutions list.
Hugo time format
I was surprised by the way that dates get formatted on Hugo: Format returns a textual representation of the time.Time value formatted according to the layout string .
An actual example:
I wanted to change the way dates were rendered by my site’s default frontmatter template (archetypes/default.md):
date = "{{ .Date }}"
Renders the date as something like: "2026-09-14T19:14:35-07:00".
To get it to render with a yyyy-mm-dd format - excluding the time data - I updated the template to: