Skip to main content

v0.10.0

iota now runs full screen, the way vim or less do: the conversation fills the window and the input box stays at the bottom. Resizing no longer leaves blank or doubled rows — the conversation is laid out again for the new width, tables and code blocks included. The mouse works in the chat: the wheel scrolls, a click places the cursor, and dragging selects and copies. The price is a change of habit: while iota runs, your terminal's own scrollback, Cmd+F and tmux copy mode no longer reach the conversation — Ctrl+O writes it into the terminal's history, Ctrl+R searches it, and new keys scroll it.

Upgrading: the terminal's scrollback and the new keys​

What used to be the terminal's job is now iota's while it runs:

ToBeforeNow
Scroll backthe terminal's scrollbarthe wheel, PgUp / PgDn (Fn+↑/↓ on a MacBook)
Jump to the top / back to the latest—Ctrl+Home / Ctrl+End
Search the conversationCmd+F, tmux copy modeCtrl+R, or / while scrolled back with an empty input
Select across screensthe terminal's selectiondrag in iota; or Ctrl+O first, then the terminal's
The terminal's own selectionplain dragShift-drag (Option-drag in iTerm2)
  • Ctrl+O writes the conversation into the terminal's history, so its scrollback, search and selection reach all of it; press any key to come back. Each line is written only once, however often you press it.
  • When you quit — Ctrl+D, /exit, Ctrl+C at the prompt, or a kill — the conversation is written into the terminal's history, as before. After a crash or kill -9 it is not; iota resume brings it back.
  • A resumed session shows its last three rounds. Scrolling up does not reach older ones; /export has the whole conversation. This holds for /resume, -c, iota resume and a bot.
  • Ctrl+F is not search: it still moves the cursor one character right.
  • If you would rather keep the terminal's mouse, write mouse: false in ~/.iota.yaml: iota leaves the mouse alone, and the wheel and selection are the terminal's own (for more than one screen, press Ctrl+O first).

Added​

  • The mouse works in the chat. The wheel scrolls the conversation — scrolling up stops following new output, back at the bottom it follows again. A click puts the input's cursor where you clicked. In a dialog a click moves to a row and a second click chooses it, so one stray click never answers an approval. Drag to select, double-click a word, triple-click a line; letting go copies. Hold the drag at the top or bottom edge and the conversation keeps scrolling, so a selection can span any number of screens. The copy goes to your clipboard (pbcopy, wl-copy or xclip), to tmux's paste buffer inside tmux, and over SSH to the terminal on your side. It is plain text, and a long line wrapped on screen is copied as the one line it is. The status row says what was copied.
  • herdr-core (hc) sees iota's state. In a terminal of herdr-core, the terminal behind herdr's desktop app, hc get and hc wait see iota as working, blocked at an approval or another dialog, idle, or error after a failed turn, and hc send refuses to type into an open approval. A -m run reports too. Inside tmux in an hc terminal, iota keeps the terminal's progress bar instead. The herdr multiplexer is unchanged.

Changed​

  • iota takes the whole terminal window. The old inline chat is gone, and so is the cost of resizing it: no blank or doubled rows after a drag, no input box a few columns short while you drag. iota also starts on a terminal that never answers its startup checks, though there the first key you type is lost.
  • New keys. Besides scrolling and search (above): scrolled back, new output does not pull you down, and the bottom line counts the new lines below. In a search, matches are highlighted and counted, n/p step through them, Enter stays where you are and Esc goes back. Ctrl+Z suspends iota and gives the terminal back to the shell; fg brings it back, redrawn at the window's size.
  • Resizing lays the conversation out again. Wider or narrower, what is on screen is laid out for the new width instead of being cut and wrapped: a table's columns are recomputed, a list's wrapped lines stay under the item, a code block wraps under its indent, a quote keeps its bar on every row, a diff fills the new width, and paragraphs re-wrap both ways. Long list items and code lines now wrap neatly at any width.
  • Code blocks, tables, lists and quotes appear line by line while the reply is written, at the window's width, instead of behind a rendering… · N lines counter. A display formula shows as its source until its closing $$, then as the formula.
  • A dialog never takes the whole window. A dialog's list, /status, /file's browser and the slash-completion list take at most half the window and never more than 15 rows; a longer list scrolls inside it (↑/↓ a row, ←/→ a page, g/G top and bottom). Closing it gives the conversation back where it was.
  • Slash completion is a list. Typing / opens a list above the input, one command per row with its description. ↑/↓ move, Enter runs the highlighted command, Esc puts back what you typed, Tab completes as before, and a click highlights an item. /skills lists each skill with its own description.
  • Your messages stand out behind a gray ▌ down their left edge, a resumed session's included; with NO_COLOR the ▌ alone marks them. The input box has no ❯ any more: what you type starts at the left edge and wraps at the full width.
  • The two rules around the input box are solid again (─ instead of the faint dashed ┄).