History suggestions, frecency, cd by keyword, fish completions; bjoterm 0.2.0

The editor suggests history lines whose command exists, cd lines by the
frecency of their directory, paths ignoring case, and the visited directory
that cd KEYWORD... goes to. Tab completes arguments with fish's completions
when fish is on PATH, and paths by the start of each part (~/P/B/B).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-12-01 13:30:23 +01:00
parent 5012a5d993
commit 61d5a96eda
10 changed files with 751 additions and 110 deletions

View file

@ -29,7 +29,10 @@ non-trivial functions. No essays.
- `(bjosh values)`: values (`Json`), streams of them, text and tables.
- `(bjosh commands)`: the value commands, and their table.
- `(bjosh pipeline)`: value commands next to each other, as one unit.
- `(bjosh editor)`: when Enter runs a line, and the completer.
- `(bjosh editor)`: when Enter runs a line, the completer (fish's
completions when fish is on PATH), and the suggester.
- `(bjosh dirs)`: the visited directories, ranked by frecency, saved in
`$XDG_STATE_HOME/bjosh/dirs`.
- `(bjosh api)`: what a package of user commands imports: `Extension`,
`ShellCommand`, `ShellView`.
- `(bjosh user)`: builds and loads the package of user commands, in