Skip to content

lore v0.3.3

Choose a tag to compare

@github-actions github-actions released this 25 Nov 00:35
· 16 commits to main since this release

Added

  • A new demo that plays in the README: .github/media/lore.svg, an
    animated SVG of the app itself (search, a page, a tool's cheat sheet, the
    keys, the languages), 310 KB, in place of the 4.6 MB video GitHub could
    not play. scripts/demo/demo.py makes it again from app/lore, in an
    empty home folder.

  • lore search WORDS: the search bar's results as plain text, the best
    first (at most 25): name, the line that matched, categories, tab apart.
    Exits 1 when nothing matches. Tab completion offers it.

  • A plugin with a skill: claude-plugin/skills/lore/SKILL.md answers
    questions about command-line tools from lore (lore search, lore -p,
    lore explain, no paths); .claude-plugin/marketplace.json makes the
    repository installable as a plugin. Installing it is all it takes: at
    each session start claude-plugin/scripts/setup.sh installs lore when it
    is missing or too old (the latest release for the system, checked against
    SHA256SUMS, into ~/.local/bin, no sudo) and gives the skill its path;
    /lore:setup does it by hand, --update gets the latest. See the README,
    "Use lore from an agent".

  • Quick keys: g/G go to the top or the bottom of the list or the
    page; n/N on a page jump to the next or previous line with the
    search's text; y copies a page's first example at once (its name when
    it has none; nothing on a language's page); o shows a page's first link
    alone in a box to Ctrl+click; 1–9 go to a topic, B to the
    bookmarks, r to the recent pages; ? shows every key; Ctrl+L draws the
    screen again.

  • Palettes for colour blindness and low vision: modus-vivendi,
    modus-operandi and their -deuteranopia and -tritanopia versions
    (every colour at least 7:1, WCAG AAA), github-dark-colorblind,
    github-light-colorblind, github-dark-high-contrast,
    github-light-high-contrast, and okabe-ito (the colour set made to
    stay apart in every kind of colour blindness). 33 palettes in all.

  • 8 more palettes: monokai, github-dark, github-light,
    everforest-dark, everforest-light, kanagawa, ayu-dark and
    ayu-light (23 in all).

  • Small windows: the key bar wraps onto a second row (never more) when
    one is too narrow, the topics bar slides to keep the chosen topic in
    sight, and a window under 50×14 says its size and what lore needs.

  • Copy a doc's code: c on a doc's page lists its code blocks and
    copies only the code, not the panel around it. On a language's page c
    copies nothing and says so: its code is there to be typed by hand.

  • The + screen scrolls on a window too small for it: PgUp, PgDn, w
    and s scroll it, and choosing a setting with ↑↓ scrolls to it.

  • scripts/content/wikipedia.py: adds a Wikipedia link, last under
    ## Links, to a command page whose program has an article about software
    on English Wikipedia. It has run: 1,571 pages link their program's
    article (a subcommand its parent's); 59 matches that named another
    article were taken out by hand.

  • The docs topic: every documentation set DevDocs offers (850, for
    languages, frameworks and tools), the 50 most asked about on Stack
    Overflow first, then every set A to Z. d downloads a set in the
    background to read offline (~/.local/share/lore/docs/), x deletes it.
    Enter on a downloaded set lists its pages by type; / searches them (or
    the sets); an entry opens at its own part, its HTML shown as text with
    headings, lists and code. Esc goes back to the sets. The catalogue is
    built in (devdocs/catalog.tsv, from scripts/docs/catalog.py).

  • The tools topic: a cheat sheet per tool, from tools/ (built in,
    format in tools/README.md): the everyday tasks people look up for
    networking (ip, ss, dig, curl, tcpdump), language environments (python
    venv, pip, uv, nvm, npm, pnpm, cargo, rustup), git and gh, databases
    (MySQL, PostgreSQL, SQLite, Redis, MongoDB), containers (docker, docker
    compose, podman, kubectl, helm), tmux, vim, shell scripting, servers
    (systemd, cron, nginx, ufw, firewalld, certbot), keys and access (ssh
    keys, gpg, pass, openssl), cloud (aws, gcloud, az, terraform, ansible)
    and files (rsync, tar and zip, find grep sed awk). Each page's tasks are
    in groups the jumper (Tab) stops at; c copies one. A tool named like a
    command here is listed as NAME (tool).

  • Reset all on the + screen: Enter, then Enter again, puts every
    setting back to its default and erases what lore kept (bookmarks, recent
    pages, downloaded docs and pages, the caches). Your own pages and
    palettes stay.

  • Follow on the + screen: the author's GitHub, LinkedIn and X.

  • The search reads the pages in the language set in Pages in (or LANG),
    English where there is no translation, and again when Pages in changes.

  • PgUp and PgDn in the list (and the search's results): 20 rows at a
    time, as on a page.

  • Fast scroll: w and s move up and down by a number of lines, in
    the list and on a page. Set on the + screen (Fast scroll: 5, 10, 15, 20
    or 30; 10 at first), saved as scroll = 10.

  • Pages in, on the + screen: the language lore shows pages in
    (system follows LANG), from a picker of every language there is a
    translation in; saved as reading = pt_BR.

  • Favourite, on the + screen: a programming language shown first in
    the languages topic, under favourite; saved as favourite = Python.

  • In a search, the language category of a languages page is in the
    palette's third colour, so languages stand out among commands.

  • The languages topic: the pages of
    Learn X in Y minutes, 201 programming
    languages, tools and formats, with the site's 678 translations in 37
    languages (picked from LANG, like the command pages). Each is a reminder
    of how a language works, read from top to bottom: an introduction, then
    one commented file, shown the way bat shows a file, with line numbers
    and colours for comments, strings, numbers and keywords, wrapped under
    its number. Tab and Shift+Tab jump between the file's parts (its
    #### banners). The pages are copied unchanged into languages/
    (scripts/languages/sync.py), licensed CC BY-SA 3.0 and credited on each
    page. A language named like a command here gets (language).

  • The beacon topic: what people use most and what is rising, between
    recipes and most used. It lists the commands trending this month, the
    most used ones, then the most used per category (for archives, for
    network…), each with its rank, its rise and whether it is installed
    here. A command lore has a page for is listed even when it is not
    installed, to read about before installing it. The numbers are public:
    Debian's popularity contest and Homebrew's installs asked for by name. A
    table of them is built in (beacon/beacon.tsv, from
    scripts/beacon/snapshot.py), so the topic works offline. With Internet
    on, a newer one is fetched at most once a week for the next start: lore's
    own copy first, else from the two sources.

  • lore --update-pages: downloads newer pages, only when you ask. First
    lore's weekly pages (pages.zst, every tldr page in lore's format, from
    scripts/content/bundle.py), else tldr-pages' own zip files, converted
    on your machine. It keeps only pages and translations lore lacks, each
    passing lore check, in ~/.local/share/lore/updates/, read after the
    built-in pages: they never change a page lore has.

  • The content workflow publishes pages.zst and beacon.tsv each
    week as the assets of a pre-release tagged content, so the README's
    latest-release link stays on lore's newest version.

Fixed

  • A translated tldr page whose summary holds a link no longer loses its
    summary (the link was taken for the "more information" line).
  • lore --help described old keys (p in the list, → to open a page).
  • The release workflow's macOS builds ask for macos-latest: GitHub no
    longer has macos-14, so v0.1.6's release never finished.
  • The crate's package now holds recipes/, palettes/ and completions/,
    which the build needs (cargo package verifies it builds alone).

Changed

  • Source layout: src/app.rs is now the folder src/app/ (state, types,
    topics, the page on show, the about screen) and src/compile_config.rs
    is src/configs/, one file per part of lore; every value is reached as
    crate::configs::NAME.

  • Topics: a bar under the logo and the search bar holds lore's topics,
    each a list of its own: commands, recipes, and your most used, recent
    and bookmarks once they have anything. ← and → switch topics; a search
    still looks in every topic, and lore NAME opens on NAME's topic. The
    groups that used to head the list are these topics now, and most used
    lists 50 commands, not 10.

  • Keys: Enter opens a page from the list (→ only from the search bar);
    Tab and Shift+Tab jump to the next or previous letter, or section on a
    page, in place of Space. The key bar says ↑↓←→ Move, + About and
    Esc/^C Quit.

  • Cargo.toml names the homepage, https://lore.guhhammer.dev, and better
    crates.io keywords and categories.

Install

System File How
Debian, Ubuntu, Mint, Pop!_OS lore_0.3.3-1_amd64.deb (ARM: _arm64) sudo apt install ./lore_0.3.3-1_amd64.deb
Fedora, RHEL, Rocky, Alma, openSUSE lore-0.3.3-1.x86_64.rpm (ARM: .aarch64) sudo dnf install ./lore-0.3.3-1.x86_64.rpm
Any Linux lore-v0.3.3-x86_64-unknown-linux-musl.tar.gz (ARM: aarch64-…) unpack, copy lore into ~/.local/bin
macOS, Apple Silicon lore-v0.3.3-aarch64-apple-darwin.tar.gz unpack, copy lore into your PATH
macOS, Intel lore-v0.3.3-x86_64-apple-darwin.tar.gz the same

The macOS binaries are not signed: the first time, run
xattr -d com.apple.quarantine lore, or macOS refuses to open it.
SHA256SUMS has every file's checksum (sha256sum -c SHA256SUMS).