Commit graph

5 commits

Author SHA256 Message Date
dc0a4e5d2b Highlight the input as it is typed, with fish's colors; bjoterm 0.2.3
Commands that exist are blue and others red; arguments cyan, underlined
when they name a path that exists; quotes, variables, operators,
redirections and comments each have their color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:00:15 +01:00
e697166927 Directories as commands, and a directory alone changes to it; bjoterm 0.2.1
As fish does: the first word completes directories too, and an interactive
line that is only a directory (with a /, or . or ..) changes to it. Tab
lists the candidates when it can add nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:01:43 +01:00
61d5a96eda 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>
2026-12-01 13:30:23 +01:00
5012a5d993 Suggestions for cd and paths, and a directory history; bjoterm 0.1.2
The editor suggests, as fish does, the newest cd line of the history whose
directory exists, else the directories or files that start with the word.
prevd, nextd and cdh move in the directory history, and so do Alt-Left and
Alt-Right on an empty line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:10:06 +01:00
3518b7711d Phase 1: POSIX command lines, job control and the prompt
- (bjosh syntax): a part of POSIX sh, parsed with (text
  parser-combinators). Syntax that is not supported raises an error that
  names it.
- (bjosh expand): variables, ~ and globs. Values are not split.
- (bjosh exec): pipes as (std run) jobs, && || ; &, redirections, and
  NAME=value through env.
- (bjosh shell) and (bjosh builtins): the job table and cd, pwd, exit,
  export, unset, jobs, fg, bg, kill, type, help, history.
- (bjosh editor): Enter waits for open quotes and trailing operators;
  completion of commands and files.
- -c LINE, FILE, and stdin. A Native AOT build too.
- Tests: the parser, expansion, the editor, lines through -c, and job
  control under script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 06:19:45 +01:00