Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Plugins

Everything you see in Greed comes from these plugins, each a folder of Luau you can read, change or replace. Unload one with greed.plugin.unload(name) in your config.

acp

Agents in Greed over the Agent Client Protocol: Claude Code, Gemini, Codex or any agent that speaks ACP, each in a transcript buffer you write to and read from, working in the project or in a workspace of its own.

  space i n   start an agent: pick which, and where it works
  space i l   the sessions, running and kept: show, take up, review or bring them in
  space i m   move this session's transcript to a pane, tab, float or panel

In a transcript, alt-enter sends what’s in the box at the bottom (queued while the agent works) and ctrl-c stops the agent’s turn. A question the agent asks shows as a row of choices in the box, answered with enter or a choice’s letter in any mode, or rejected with esc (question.luau). Enter or a click on a row opens it (a helper’s transcript, a tool’s output, a thought), and alt-up and alt-down highlight rows to open from the box (transcript.luau’s pick). A message like /model or /effort high runs one of Greed’s chat commands instead of going to the agent, and tab after / completes them (slash.luau).

Agents are registered by name with the commands that run them; the first one installed is used. Add your own in init.luau:

    require("@acp").register({ name = "mine", commands = { { "my-agent", "--acp" } } })

Uses: core, picker, statusline, vcs, agent, models, panes, markdown, terminal.

CommandKeysWhat it does
agentShow the latest agent session, or start one when none runs
agent-answeralt-q (in agent-transcript buffers), enter (every style’s command mode; in agent-transcript buffers)On a row of a transcript, open it: a helper’s transcript in a float, a tool’s output or a thought; on a button, like a code block’s run, press it; else draw the question the agent waits on in the box again, to answer it there
agent-autoalt-a (in agent-transcript buffers)Switch the agent between auto mode, where Greed answers its questions where it safely can, and asking you every time
agent-boxShow or hide something on the line under agents’ message boxes (the agent-box option): agent, auto, mode, model, effort, keys, a field added with acp.box_field or “text in quotes”
agent-choice-clickAnswer the agent’s question with the choice under the cursor
agent-choice-keyAnswer the agent’s question with the choice of the key pressed
agent-choice-nextHighlight the next choice of the agent’s question
agent-choice-pickAnswer the agent’s question with the highlighted choice
agent-choice-prevHighlight the previous choice of the agent’s question
agent-choice-rejectReject the agent’s question; what’s in the box goes with it, as what to do instead
agent-code-askAsk the agent to run the shell code block at the cursor itself
agent-code-copyCopy the shell code block at the cursor
agent-code-promptPut the shell code block at the cursor at this project’s shell’s prompt, in a float, to look over before running it; what comes of it goes to the agent with your next message
agent-code-runRun the shell code block at the cursor in this project’s shell, showing it in a float, and tell the agent what came of it with your next message; one that destroys something asks first
agent-compactCompact the conversation with Greed’s own agent: the model summarises all but the last few turns
agent-completetab (every style’s typing mode; in agent-transcript buffers)In a transcript’s box, complete the slash command being typed; elsewhere, type a tab
agent-copy-or-stopctrl-c (vscode’s typing mode; in agent-transcript buffers)Copy the selection, or with nothing selected stop the agent’s turn
agent-drop-imagesalt-x (in agent-transcript buffers)Drop the images pasted for your next message to the agent
agent-effortHow hard the model of Greed’s own agent thinks in this session: none, low, medium, high or max; without one, pick it
agent-float-closeesc, q (every style’s command mode; in agent-transcript buffers)Close a transcript’s float opened from a row of another, back to that row; elsewhere, what the key does otherwise
agent-foldtab (every style’s command mode; in agent-transcript buffers)Show all of the output of the tool call or the thought under the cursor, or fold it again
agent-forkf (in agents buffers)Fork the agent: a new session that starts with everything said so far
agent-history-backup (every style’s typing mode; in agent-transcript buffers)In a transcript’s box, put the message you sent before it there, one starting with what’s typed; elsewhere move up
agent-history-forwarddown (every style’s typing mode; in agent-transcript buffers)In a transcript’s box, put the message you sent after it there, or back to what was typed; elsewhere move down
agent-listesc, q (in agents buffers), i l (after the leader)List the agent sessions, running and kept, to show, take up, move, review or close them
agent-modealt-m (in agent-transcript buffers)Pick the mode the agent works in, like plan or accept edits, or switch to the one named
agent-modelalt-M (in agent-transcript buffers)Pick the model the agent uses, from those it offers, or switch to the one named; Greed’s own agent can also use any model a provider lists
agent-movei m (after the leader)Move the session’s transcript to a pane, a tab, a float or a panel: the next key says which
agent-newn (in agents buffers), i n (after the leader)Start an agent: Greed’s own, or Claude Code, Gemini or Codex over ACP; pick which, and where it works
agent-resumeThe same as agent-list
agent-resume-pickPick a saved session of this project and take it up here, as /resume in a transcript does
agent-row-downalt-down (in agent-transcript buffers)In a transcript, highlight the row below; from the newest, back to the box
agent-row-dropDrop the highlight from a transcript’s row, back to the box
agent-row-upalt-up (in agent-transcript buffers)In a transcript, highlight the row above to open with enter or fold with tab: from the box, the newest
agent-sendalt-enter (in agent-transcript buffers)Send what’s in the transcript’s box to its agent
agent-show-floatw (in agents buffers)Show the session (the transcript’s, or those chosen in the list) in a floating view
agent-show-panep (in agents buffers)Show the session (the transcript’s, or those chosen in the list) in a pane of the tab
agent-show-panels (in agents buffers)Show the session (the transcript’s, or those chosen in the list) in a panel on the right
agent-show-tabt (in agents buffers)Show the session (the transcript’s, or those chosen in the list) in a tab of its own
agent-stopctrl-c (in agent-transcript, agents buffers)Stop the agent’s turn
agent-toggle-thoughtsShow or hide what agents think in their transcripts (the agent-thoughts option)
agentsThe same as agent-list
agents-bringb (in agents buffers)Bring what the agent under the cursor changed into your working copy
agents-closex (in agents buffers)Close the sessions marked in the list, or the one under the cursor: stop and forget them and remove their workspaces, asking first for those running or with a workspace
agents-diffd (in agents buffers)Show what the agent under the cursor changed in its workspace
agents-filter/ (in agents buffers)Narrow the list to the sessions with the text typed
agents-markm (in agents buffers)Mark the session under the cursor in the list, or unmark it, to act on several
agents-resumer (in agents buffers)Take up the sessions marked in the list, or the one under the cursor, without showing them
agents-resume-hereh (in agents buffers)Take up Greed’s own sessions marked in the list, or the one under the cursor, in this workspace
agents-reviewR (in agents buffers)Review what the agent under the cursor changed as proposals on your files
agents-showenter (in agents buffers)Show the sessions marked in the list, or the one under the cursor, taking them up if they’re kept
claude-workspacei W (after the leader)Start Claude Code in a terminal, in a workspace of its own; it’s in the session list, where its work is reviewed and brought in
decision-checkTry the decision model auto mode uses on commands it should and shouldn’t let agents run, and show what it would do with each
researchResearch a question on the web: a helper agent searches and reads pages, its transcript open, and ends with a report with sources
OptionDefaultWhat it does
agent-autofalseStart agent sessions in auto mode: Greed answers their questions where it can, the decision model judging commands by what you asked for, and asks you the rest; alt-a switches a session
agent-auto-rules""What the decision model should know in auto mode, in plain words: what’s fine to do in your setup and what isn’t, like “deleting under /tmp is fine; never touch the prod cluster”
agent-box"auto model mode effort keys"What the line under an agent’s message box shows before its status, in the order it gives way when space is short: agent, auto (only when Greed answers its questions), mode (when not the one it started in), model, effort, keys, fields added with acp.box_field and “text in quotes”
agent-care"thorough"How Greed’s own agent gathers context: “thorough” maps what exists with helpers before design questions and says what it checked; “quick” only reads what an answer depends on
agent-compact-at0Compact conversations with Greed’s own agent once they reach this many tokens; 0 waits until they near the model’s limit
agent-editor-contexttrueSend agents the file you’re in, the cursor, the selection and the other files on screen with each message
agent-greed-toolstrueGive agents Greed’s own tools (buffers, diagnostics, syntax queries, proposals) through greed mcp
agent-heading"model"Who the line under each of the agent’s turns says answered: its “model”, falling back to the agent’s name, or the agent’s “name”
agent-max-thought8000Stop a thought of Greed’s own agent once it passes this many tokens, before it acts, and ask for smaller steps; 0 lets thoughts run on
agent-max-tokens0Stop Greed’s own agent once a session has read and written this many tokens, every request counted; 0 sets no limit
agent-max-turns0Stop Greed’s own agent after this many steps in one prompt, for runs nobody watches; 0 lets it work until it’s done
agent-pane-titletrueWhether a panel or float showing an agent has the agent’s name as its title
agent-sessions-kept50How many sessions with Greed’s own agent are kept per repository to take up again; older ones are deleted
agent-thoughtstrueShow what agents think in their transcripts, each thought folded to its first line (tab unfolds it); /thoughts switches it
agent-title"agent folder workspace"What the line above an agent’s transcript says, in its order: agent, model, folder (in ~/where), workspace, fields added with acp.box_field and “text in quotes”; empty for no line
agent-workspace-editstrueLet agents in a workspace of their own edit, move and delete files there without asking

agent

Lets agents and scripts use the editor: greed ctl from a shell, and MCP clients like Claude Code through greed mcp.

Requests come in on the session socket. registry.luau answers MCP’s methods (initialize, tools/list, tools/call), so the tools are the same for an agent and for greed ctl TOOL. Add your own with require("@agent").tool { ... }; tools.luau has the built-in ones, and proposals.luau the review of edits agents propose.

Uses: core, picker, terminal, operations, approvals, describe, markdown, models.

CommandKeysWhat it does
ask-cancelAnswer none of these questions, telling the agent you didn’t
ask-enterOn a page of questions: pick the choice under the cursor and go on to the next question, start typing an answer, or go on; on the last line, send
ask-sendSend your answers to the agent that asked these questions
claudei C (after the leader)Go to the Claude Code pane, or open one
eval-allow-sessionLet the agent’s code run, and every run until its session ends
eval-denyDon’t let the agent’s code run
eval-logShow each run of an agent’s code past the sandbox, with who let it
eval-runLet the agent’s code run, this once
ide-mentiono m (after the leader)Mention the selected lines to Claude Code, like @file#L1-5
memory-editOpen your personal memories: standing preferences agents follow
memory-edit-projectOpen your private memories of this project, the same in all its workspaces
memory-edit-sharedOpen this project’s shared memories, .greed/memory.md in the repository
plugin-review-accepta (in plugin-review buffers)Install, approve and load the plugin under review
plugin-review-rejectesc, q, r (in plugin-review buffers)Reject the plugin under review
proposal-accepto a (after the leader)Accept the proposed changes your selections touch
proposal-accept-allo A (after the leader)Accept the whole of the proposals in this file, in every file they change
proposal-compareo d (after the leader)Show the file with its proposed changes in, side by side
proposal-next] o (every style’s command mode)Select the next proposed change
proposal-noteo n (after the leader)Reject the proposed changes your selections touch, telling the agent what to do instead
proposal-note-allo N (after the leader)Reject the whole of the proposals in this file, telling the agent what to do instead
proposal-prev[ o (every style’s command mode)Select the previous proposed change
proposal-rejecto r (after the leader)Reject the proposed changes your selections touch
proposal-reject-allo R (after the leader)Reject the whole of the proposals in this file, in every file they change
proposalso o (after the leader)Pick a proposal to review: each agent’s change, with every file it changes
repo-mapShow the repo map agents get: the functions and types that matter most, ranked toward the open files
working-setShow the files you’ve been working in lately, the way agents see them
OptionDefaultWhat it does
agent-eval"auto"How Luau from agents runs: “auto” (sandboxed, a reviewer or you for more), “ask”, “allow” or “off”
agent-tool-groups"plan"The tool groups agents get from the start, besides those they switch on: names with spaces between, or “all”
claude-command"claude"How the Claude pane starts Claude Code, e.g. “claude –continue”
web-search""The search service agents search the web with: “brave”, “exa”, “tavily” or “searxng”; empty for none
web-search-url""Where your SearXNG is, for web-search searxng
web-sources""Domains whose results agents’ searches show first, like “reuters.com docs.rs”; a domain counts its subdomains too
web-sources-onlyfalseAgents’ searches show only results from the web-sources domains

approvals

Approving plugins. A plugin that isn’t one of Greed’s own and declares capabilities (running programs, files by path, the network, …) waits until you approve them, and again if it later asks for more.

  :plugins-approve   review the waiting plugins and approve one
  :plugins           every plugin, where it comes from and what it may use
  :plugin-reload NAME load a plugin again from its folder

Uses: core, picker.

CommandKeysWhat it does
plugin-reloadLoad a plugin again from its folder, as after changing its code
pluginsList the plugins, where each comes from and what it may use; enter opens one
plugins-approveReview the plugins waiting for approval of what they use, and approve one

assist

Commands that ask a language model, in the roles :models shows, with what you pinned to the context (space i p, see the context plugin):

  space i e   explain the selection, in a panel as the answer arrives
  space i a   ask something about the selection
  space i f   fix the problem under the cursor, as changes to review
  space i c   draft a description of the changes in progress

Fixes come as proposed changes (] o, space o a, space o r), which undo as one operation. In the description buffer, a applies it (jj describe, or a git commit of what’s staged).

Uses: core, models, agent, vcs, context.

CommandKeysWhat it does
ask-abouti a (after the leader)Ask a language model something about the selection (or the line)
assist-closeq (in answer, commit-message buffers)Close the answer panel
commit-messagei c (after the leader)Draft a description of the changes in progress, from their diff
commit-message-applya (in commit-message buffers)Use the drafted description: jj describe, or a git commit of what’s staged
explaini e (after the leader)Explain the selection (or the line), in a panel as the answer arrives
fixi f (after the leader)Ask a language model to fix the problem under the cursor, as changes to review
OptionDefaultWhat it does
assist-role"fast"The model role assist’s commands ask; see :models

blocks

Runnable blocks in Markdown: a fenced block whose language has a runner (```sh, ```python, ```luau, ```http) runs when you ask, and its output is saved in a result block right under it, so the file shows it anywhere and a diff shows what changed. Running it again replaces the result.

  space m r   run the block under the cursor (enter on its fence too)
  space m R   run every block in the file, in order, asking before
              each one not marked safe=true
  space m c   clear the block's result; :blocks-results-clear for all
  space m s   stop the block running under the cursor
  space m k   run the blocks marked safe=true again, to see what changed

A result that comes out different from the run before shows how: the new lines marked, the old ones struck out under them, until the block runs again or its result is edited. drift-ignore=REGEX leaves out what differs every run, like a timestamp.

Nothing runs when a file opens. The first time you run a block in a file Greed asks whether to: y for now, a to always trust that file. Files you trust, and those whose front matter says greed: run, show a run button on each block. Agents run blocks only in files you trust, and only as they were when you last ran them or trusted the file, so a block an agent rewrote waits for you to run it first. So do blocks that run by themselves (choices as a file opens, a pick’s when=): a block changed from outside waits, and what you change yourself and save runs.

Options go in the info string: id=NAME names a block’s result, and input=NAME gives another block that result (on stdin, or as input in Luau), running the named block first if it has no result yet, or every time with rerun=true. dir=PATH runs a program elsewhere than the file’s folder, and timeout=SECONDS stops it after that long. safe=true says running a block changes nothing: only those run without asking when you didn’t press them, as an input or in run all. Add a language from Luau:

    require("@blocks").runner("lua", require("@blocks").program({ "lua", "-e" }))

Uses: core, agent, markdown, scene, shell.

CommandKeysWhat it does
block-result-clearm c (after the leader)Remove the result under the code block at the cursor
block-runm r (after the leader)Run the code block under the cursor and save its output in a result block under it
block-shellPut the code block under the cursor at the project shell’s prompt, in a float, to run from there; python, node and ruby blocks go as a file the line runs
block-stopm s (after the leader)Stop the code block running under the cursor
block-terminal-keepKeep what the terminal block under the cursor shows as its result, saved with the file
block-terminal-keySend the key to the program in the terminal block being typed into
block-terminal-leavectrl-\ (terminal-block)Stop typing into the terminal block
block-terminal-typeType into the terminal block under the cursor, starting it if it isn’t running; ctrl-\ stops
blocks-checkm k (after the leader)Run this file’s blocks marked safe=true again and mark those whose output changed since the last run
blocks-results-clearRemove every code block’s result in the file
blocks-run-allm R (after the leader)Run every code block in the file, in order, saving each one’s result; asks before those not marked safe=true
blocks-trustAlways let this file’s code blocks run, without asking
blocks-untrustAsk again before this file’s code blocks run
markdown-runPress the command button at the cursor, label in Markdown
OptionDefaultWhat it does
blocks-max-lines1000The most lines of output a block’s result keeps; the rest is cut
blocks-streamtrueShow a block’s output under it as it comes, not only once it’s done; a block’s stream=false turns it off for that one

board

Boards: saved, named sets of live shell commands, each a card showing what its command prints now, one after another down a buffer that scrolls like any other. A board is a Markdown file in the project’s .greed/boards, or in your own config’s boards folder; its cards run in a shell of the board’s own, from the project’s root, with the shell’s live blocks: a watch, or a command that keeps printing.

  :board [NAME]    open a board, or pick one
  :board-new NAME  make one in this project (`!` for one of your own)
  space .          on a shell block: "pin to board"

On a board, enter opens a card’s block in a float, space . acts on it as on the block in its shell, space a adds a command, space e (or i on a card) edits the file at the card and space r runs the cards again. Saving the file shows the board as it says. A board from a file you didn’t make asks before it runs anything, as code blocks do, and trusting one trusts the other. A card changed from outside since you let it run waits, showing its command, until enter on it.

Uses: core, picker, shell, blocks, chart, scene.

CommandKeysWhat it does
boardOpen a board: live shell commands, saved by name; pick one without a name
board-adda (after the leader; in board buffers)Add a command to this board as a card
board-edite (after the leader; in board buffers), a, c, i, o (every style’s command mode, every style’s typing mode; in board buffers)Open this board’s file at the card under the cursor; saving it shows the board as it says
board-move-back< (every style’s command mode, every style’s typing mode; in board buffers)Move the card under the cursor one place back on the board, in its file too
board-move-forward> (every style’s command mode, every style’s typing mode; in board buffers)Move the card under the cursor one place on along the board, in its file too
board-newMake a board in this project, or with ! one of your own, and open it
board-open-cardenter (every style’s command mode, every style’s typing mode; in board buffers)Open the card under the cursor in a float, all of it; run it, when it waits for you to let it
board-refreshr (after the leader; in board buffers)Run this board’s cards again
OptionDefaultWhat it does
board-card-width50How wide a board’s cards are at least, in columns: a wider board puts more of them side by side

chart

Charts in the shell: | chart draws a table as a chart, guessing the kind from its columns unless told. A name column and numbers are bars; times and numbers, lines over time; numbers alone, a line each; two numbers, one against the other. In a watch every run adds a point, so watch -n 1 kubectl top pods | chart draws how each pod’s CPU goes.

    kubectl top pods | chart                  bars, a pod each
    kubectl top pods | chart bar MEMORY       of another column
    watch -n 1 cat /proc/loadavg | chart      the load, over time
    $3 | chart area --stacked                 how a table says

A chart is drawn in characters, braille for lines and eighth blocks for bars, in the theme’s chart styles, so it shows in every terminal; on a board, a card with chart after its language is one.

Uses: core, shell, scene, markdown, data.

OptionDefaultWhat it does
chart-height12How many lines tall a chart in the shell is, unless –height says

chat

Chat: Matrix and Mattermost in Greed. In the chat session (greed chat) a sidebar lists your rooms and channels, those with something unread first, then each space (or team) with its rooms under it, and rooms open beside it; :chat opens the same sidebar elsewhere, or with chat-list a float of the tab, rooms opening in its place. :chat-go (alt-g) goes to any room or person by name. A room shows its messages, kept up to date, and a box under them where enter sends what’s written (as Markdown) and alt-enter starts a new line; enter on a space offers the rooms it holds. :chat-login signs in to a server, by password or through the browser; :chat-logout signs out. The services run as programs of their own (backend.luau).

Uses: core, picker, markdown, panes, service.

CommandKeysWhat it does
chatM s (after the leader)Your rooms and channels, as the chat-list option says: a sidebar on the left, or a float of the tab
chat-alertedGo to the room of the latest chat alert
chat-attachIn a room: send a file, picked by its path
chat-closeIn a room: stop answering or changing; else back to the room from a thread, or to the list
chat-commandsalt-/ (every style’s typing mode; in chat-room buffers)In a room: pick one of the service’s commands (Mattermost) into the box
chat-deletealt-d (in chat-room buffers)In a room: delete the message under the cursor, asking first
chat-editalt-e (in chat-room buffers)In a room: change your message under the cursor
chat-encryptionHow a Matrix account’s encryption stands; sets a recovery key up where there’s none
chat-enterenter (every style’s command mode; in chat-room buffers)In a room: open the file of the message under the cursor (play a recording), vote in its poll, open its place on the map, press its buttons, or open its thread
chat-goalt-g (in chat, chat-room buffers), M g (after the leader)Go to a room, channel or person by name, those with something unread first, or write to someone new; alt-enter or ctrl-v opens it beside, ctrl-s below
chat-join+ (in chat buffers), M j (after the leader)Join a room: one the server lists, or by its name, address or id
chat-leave- (in chat buffers)Leave the room under the cursor in the list, or the room you’re in, after asking
chat-linkFinish signing in with the link the browser ended on (what greed link hands over)
chat-loginSign in to a Matrix or Mattermost server
chat-logoutSign out of a chat account, and forget it
chat-newlinealt-enter (every style’s typing mode; in chat-room buffers)In a room’s box: start a new line
chat-olderalt-up (in chat-room buffers)In a room: fetch older messages
chat-openenter (in chat buffers)In the list of rooms: open the room under the cursor, answer its invite, or offer a space’s rooms
chat-pressalt-b (in chat-room buffers)In a room: press a button in the message under the cursor, or pick from its menu
chat-reactalt-k (in chat-room buffers)In a room: react to the message under the cursor, or take your reaction back
chat-recoverUnlock a Matrix account’s keys with its recovery key, so older messages decrypt
chat-replyalt-r (in chat-room buffers)In a room: answer the message under the cursor with what’s sent next
chat-room-1alt-1 (in chat-room buffers)In a room: room 1 of the bar over it
chat-room-2alt-2 (in chat-room buffers)In a room: room 2 of the bar over it
chat-room-3alt-3 (in chat-room buffers)In a room: room 3 of the bar over it
chat-room-4alt-4 (in chat-room buffers)In a room: room 4 of the bar over it
chat-room-5alt-5 (in chat-room buffers)In a room: room 5 of the bar over it
chat-room-6alt-6 (in chat-room buffers)In a room: room 6 of the bar over it
chat-room-7alt-7 (in chat-room buffers)In a room: room 7 of the bar over it
chat-room-8alt-8 (in chat-room buffers)In a room: room 8 of the bar over it
chat-room-9alt-9 (in chat-room buffers)In a room: room 9 of the bar over it
chat-room-nexttab (every style’s command mode; in chat-room buffers)In a room: the next room in the bar over it
chat-room-previousshift-tab (every style’s command mode; in chat-room buffers)In a room: the room before in the bar over it
chat-search/ (in chat buffers), alt-s (in chat-room buffers), M / (after the leader)Search your chat messages; in a room, that room’s
chat-sendenter (every style’s typing mode; in chat-room buffers)In a room: send what’s written in its box
chat-sessionGo to the chat session, starting it if it isn’t running
chat-sidebarYour rooms and channels as a sidebar on the left, rooms opening beside it
chat-threadalt-t (in chat-room buffers)In a room: open the thread of the message under the cursor
chat-verifyVerify this device against another of yours (a phone, Element) by comparing emoji
chat-writeM w (after the leader)Write to someone: find them by name and open your direct messages, starting them if needed
OptionDefaultWhat it does
chat-alerts"mentions"Which new messages tell you: mentions and direct messages, all the service notifies of, or none
chat-alerts-desktopfalseShow chat alerts as the desktop’s own notifications too (notify-send or osascript), for when no Greed is attached to tell you
chat-list"sidebar"Where :chat shows your rooms outside the chat session: “sidebar”, a panel on the left, or “float”
chat-matrix-program""The greed-matrix program, its name on PATH or a path; empty for the one beside greed, or else on PATH
chat-mattermost-program""The greed-mattermost program, its name on PATH or a path; empty for the one beside greed, or else on PATH
chat-previewstrueShow what links in chat messages lead to, under them, where the service can say
chat-search-days90How many days back each room’s messages are fetched and kept to search; newer ones are always kept

cli

Greed’s command line commands that are only Luau: greed ls, greed new, greed bring and greed reference. Plugins add their own the same way:

    greed.cli({
        name = "hello",
        doc = "Say hello",
        usage = "[NAME]",
        run = function(args)
            return `hello {args[1] or "there"}`
        end,
    })

greed hello world then prints “hello world”.

Uses: agent.

cmdline

The command line: press “:” (alt-x in the vscode style) and type a command, like in Vim or Helix.

Every command can be run by name (:save, :pick-file), and the short names Vim and Helix users know are aliases (:w, :q, :wq, :e). Words after the command are its arguments (:open src/main.rs), and a trailing “!” forces it (:q! quits with unsaved changes). :lua runs Luau and := shows the value of an expression. A line range in front (:%s/a/b/g, :5,10d) selects those lines first; ex.luau has Vim’s line commands, and :g/regex/command is here.

Matches show above the prompt as you type. Tab and shift-tab go through them, up and down go through earlier command lines starting with what’s typed, enter runs and esc closes.

Other plugins add aliases and argument completion through require("@cmdline"):

    local cmdline = require("@cmdline")
    cmdline.alias("gs", "git-status")
    cmdline.completer("branch", function(word)
        return { { text = "main" }, { text = "dev" } }
    end)

A command then uses args = { { name = "branch", complete = "branch" } }.

Uses: core.

CommandKeysWhat it does
command-line: (blocks, read, every style’s command mode), ctrl-g (vscode), alt-x (vscode’s typing mode)Type a command to run, with completion, starting with the text given
command-line-closectrl-c, esc (in cmdline buffers)Close the command line without running anything
command-line-newerctrl-n, down (in cmdline buffers)Show the next command line that starts with what’s typed
command-line-nexttab (in cmdline buffers)Fill in the next match on the command line
command-line-olderctrl-p, up (in cmdline buffers)Show the previous command line that starts with what’s typed
command-line-prevshift-tab (in cmdline buffers)Fill in the previous match on the command line
command-line-runenter (in cmdline buffers)Run what’s typed on the command line
copy-linesCopy the selected lines below a line, 0 for the top (:t)
delete-linesDelete the selected lines, copying them (:d)
eval-selectionl e (after the leader)Run the selected Luau, or the line, and show what it returns at the end of it
get-optionShow an option’s value
move-linesMove the selected lines below a line, 0 for the top (:m)
normalType keys in normal mode on each selected line (:norm)
setSet an option: NAME VALUE; for a yes-or-no one, NAME, noNAME or NAME! as in Vim; NAME? shows it
sort-linesSort the selected lines (:sort): ! reverses, u keeps one of each, i ignores case, n sorts by the first number
substituteReplace a regex with text on the selected lines (:s/regex/text/flags)
toggle-optionTurn a yes-or-no option on or off
yank-linesCopy the selected lines (:y)
OptionDefaultWhat it does
substitute-previewtrueShow what :s will change as you type it, before it runs

context

The context: what you’ve pinned for models and agents to see, as live references read fresh each time they’re sent.

  space i p   pin the selection, or the file when nothing is selected
  space i i   show the pinned items, one a line with its size; d drops
              the items on the lines selected (x d)

:context-add-problems pins this file’s problems, :context-add-diff the changes in progress, :context-clear drops everything. Assist commands send the context with each question, and agents read it with the context_get tool. It’s kept per project.

A plugin adds items that are worked out when sent:

    require("@context").define("todos", function()
        return "the TODO lines of the project ..."
    end)
    require("@context").add({ kind = "computed", name = "todos" })

Uses: core, agent, vcs.

CommandKeysWhat it does
contexti i (after the leader)Show what’s pinned for models and agents, with sizes; d drops an item
context-addi p (after the leader)Pin the selection to the context, or the file when nothing is selected; elsewhere, what’s under the cursor
context-add-diffPin the changes in progress to the context
context-add-problemsPin this file’s problems to the context
context-clearDrop everything pinned to the context
context-closeesc, q (in context buffers)Close the context list
context-dropd (in context buffers)Drop the pinned items on the lines selected in the context list

core

Greed’s editing engine: the commands, motions, text objects, registers, floats, prompts and the editing styles registry, written against the same API any plugin uses. The editing styles themselves, like Helix and Vim, are plugins that give these commands keys.

CommandKeysWhat it does
add-newline-above[ space (helix, vim)Add an empty line above each selection, staying put
add-newline-below] space (helix, vim)Add an empty line below each selection, staying put
align-selections& (helix)Line the selections up at one column, with spaces before them
align-view-bottomz b (helix, vim), b (view)Scroll so the cursor’s line is at the bottom of the screen
align-view-topz t (helix, vim), t (view)Scroll so the cursor’s line is at the top of the screen
append-line-endA (helix)Insert at the end of each line
append-modea (helix)Insert after each selection
backesc, q (every style’s command mode; in chat, chat-room, help, image, mail, mail-thread, multibuffer, pdf, staged-diff, tree buffers)Go back: a step in what’s shown, else where you came from (q and esc where you read rather than edit)
big-word-endE (helix)Select to the end of the WORD
bufferShow an open file by its name or part of it, as Vim’s :b does; # is the one you were in before
buffer-closectrl-w (vscode)Close this buffer, showing another file in its place; refuses with unsaved changes (force closes anyway)
buffer-close-othersClose every file but this one; refuses if one has unsaved changes (force closes anyway)
buffer-nextg n (helix)Show the next open file
buffer-prevg p (helix)Show the previous open file
camel-caseChange the selected words to camel case, each line on its own
center-viewz c (helix), z z (helix, vim), c, z (view)Scroll so the cursor’s line is in the middle of the screen
changec (helix)Copy each selection, delete it and switch to insert mode
change-without-copyalt-c (helix)Delete each selection and switch to insert mode, leaving the clipboard alone
client-followHave this client show the project, tabs and panes the other clients follow, closing the panes it had on its own (their buffers stay open)
client-independentLay this client out on its own, starting from what it shows now: its tabs, panes and project no longer follow the other clients
collapse; (helix), esc (vscode)Collapse each selection to its cursor
config-openOpen your config, init.luau, to change it; it runs again when saved
config-reloadRun your config again, as saving it does
copyspace Y, space y, y (helix)Copy each selection to the clipboard
copy-lines-downalt-shift-down (vscode)Copy the cursors’ lines below them
copy-lines-upalt-shift-up (vscode)Copy the cursors’ lines above them
copy-or-linectrl-c (vscode)Copy the selection, or the line when nothing is selected
copy-selection-downC (helix), ctrl-alt-down (vscode)Add a selection on the next line, at the same columns
copy-selection-upalt-C (helix), ctrl-alt-up (vscode)Add a selection on the line above, at the same columns
cutCopy each selection to the clipboard and delete it
cut-or-linectrl-x (vscode)Cut the selection, or the line when nothing is selected
debugTurn debug topics on (:debug keys frames), off (:debug -keys, :debug off), or say which are on
debug-logShow what the debug topics on have said, in a pane below, following new lines
decrementctrl-x (helix)Subtract the count (or 1) from the number at each cursor
dedent< (helix), shift-tab (every style’s typing mode, vscode), ctrl-d (vim-insert)Take one level of indent off the lines of each selection; while typing in a snippet, go back to its last place
deleted (helix)Copy each selection and delete it
delete-backbackspace (every style’s typing mode)Delete the character before each cursor, and the closer of an empty pair
delete-forwarddelete (every style’s typing mode)Delete the character after each cursor
delete-lines-at-cursorctrl-K (vscode)Delete the lines the cursors are on
delete-to-line-endctrl-k (every style’s typing mode)Delete to the end of the line from each cursor
delete-to-line-startctrl-u (every style’s typing mode)Delete back to the start of the line from each cursor
delete-without-copyalt-d (helix)Delete each selection, leaving the clipboard alone
delete-word-backalt-backspace, ctrl-w (every style’s typing mode), ctrl-backspace (vscode)Delete back to the start of the word before each cursor
delete-word-forwardalt-d (every style’s typing mode), ctrl-delete (vscode)Delete to the start of the next word after each cursor
detachLeave the editor running in the background; greed attach comes back
earlieralt-u (helix), g - (vim)Go back to the state of the text made before this one, on any undo branch
erase-backbackspace (vscode)Delete the selection, or the character before the cursor
erase-forwarddelete (vscode)Delete the selection, or the character after the cursor
errorsList errors from plugin code that nothing caught, with the plugin, what it ran and where it failed
expand-selectionalt-o (helix)Grow each selection to the syntax node around it
extend-big-word-endE (helix-select)Extend the selection to the end of the WORD
extend-big-word-leftB (helix-select)Extend the selection to the previous WORD
extend-big-word-rightW (helix-select)Extend the selection to the next WORD
extend-downdown, j (helix-select), shift-down (vscode)Extend the selection one line down
extend-endg e (helix-select), ctrl-shift-end (vscode)Extend the selection to the end of the buffer
extend-find-next-charf (helix-select)Extend to and including the next character typed
extend-find-prev-charF (helix-select)Extend back to the previous character typed
extend-first-non-blankg s (helix-select)Extend the selection to the first character that isn’t a space
extend-goto-lineG (helix-select)Extend the selection to the line given as a count, or the last line
extend-lefth, left (helix-select), shift-left (vscode)Extend the selection one character left
extend-line-endend, g l (helix-select), shift-end (vscode)Extend the selection to the end of the line
extend-line-startg h, home (helix-select)Extend the selection to the start of the line
extend-rightl, right (helix-select), shift-right (vscode)Extend the selection one character right
extend-smart-homeshift-home (vscode)Select to the first non-blank of the line, or to its start
extend-startg g (helix-select), ctrl-shift-home (vscode)Extend the selection to the start of the buffer
extend-till-next-chart (helix-select)Extend up to the next character typed
extend-till-prev-charT (helix-select)Extend back to just after the previous character typed
extend-to-line-boundsX (helix)Extend each selection to whole lines
extend-upk, up (helix-select), shift-up (vscode)Extend the selection one line up
extend-word-ende (helix-select)Extend the selection to the end of the word
extend-word-leftb (helix-select), ctrl-shift-left (vscode)Extend the selection to the previous word
extend-word-rightw (helix-select), ctrl-shift-right (vscode)Extend the selection to the next word
file-deleteDelete this file from the disk, after you press y, and close it
file-renameRename or move this file: a name alone keeps it in its folder, a path is from the project
findctrl-f (vscode)Find text in the file as you type, as VS Code’s ctrl-f does: enter and shift-enter go to the next and previous match, esc closes
find-nextenter, f3 (in find buffers)Go to the next match with the find bar open
find-next-charf (helix)Select up to and including the next character typed
find-prevshift-enter, shift-f3 (in find buffers)Go to the previous match with the find bar open
find-prev-charF (helix)Select back to the previous character typed
first-non-blankg s (helix)Move to the first character on the line that isn’t a space
flipalt-; (helix)Swap the anchor and head of each selection
fold-closez C (helix), z c (vim)Fold the block the cursor is in under its first line
fold-close-allz M (vim), ctrl-k ctrl-0 (vscode)Fold every outermost block in the buffer
fold-nextz j (vim)Go to the start of the block below the cursor
fold-openz o (helix, vim), z d (vim)Unfold the folds the cursor is in
fold-open-allz R (helix, vim), z E (vim), ctrl-k ctrl-j (vscode)Unfold everything in the buffer
fold-prevz k (vim)Go to the end of the block above the cursor
fold-selectionFold the selected lines under the first
fold-toggletab (blocks, helix, vim), z a (helix, vim), ctrl-k ctrl-l (vscode)Fold the block the cursor is in, or unfold it
fold-toggle-allshift-tab (blocks, helix)Unfold everything when anything is folded, or else fold every outermost block
font-biggerctrl-+, ctrl-= (global)Make the window’s text bigger
font-resetctrl-0 (global)Put the window’s text back to its size before zooming
font-smallerctrl-- (global)Make the window’s text smaller
goto-columng | (helix)Move to the column given as a count, on each cursor’s line
goto-definitiong d (every style’s command mode), f12 (vscode)Go to where the thing under the cursor is defined
goto-endctrl-end (vscode)Move to the end of the buffer
goto-fileg f (helix)Open the file named under the cursor or in the selection
goto-last-accessed-fileg a (helix), ctrl-6, ctrl-^ (every style’s command mode)Show the file you were in before this one
goto-last-lineg e (helix)Move to the start of the last line
goto-last-modificationg . (helix), ctrl-k ctrl-q (vscode)Move to where this file was last changed
goto-last-modified-fileg m (helix)Show the file you changed last, other than this one
goto-lineG (helix)Move to the line given as a count, or the last line
goto-parent-endalt-e (helix)Move to the end of the syntax node around each selection’s
goto-parent-startalt-b (helix)Move to the start of the syntax node around each selection’s
goto-startg g (helix), ctrl-home (vscode)Move to the start of the buffer, or with a count, to that line
goto-window-bottomg b (helix)Move to the bottom line on the screen
goto-window-centerg c (helix)Move to the middle line on the screen
goto-window-topg t (helix)Move to the top line on the screen
half-page-downctrl-d (helix, read, view, vim), z ctrl-d (helix)Move half a screen down
half-page-upctrl-u (helix, read, view, vim), z ctrl-u (helix)Move half a screen up
hoverk (after the leader), K (vim), ctrl-k ctrl-i (vscode)Show what’s under the cursor, and any problems there
incrementctrl-a (helix)Add the count (or 1) to the number at each cursor
indent> (helix), ctrl-t (vim-insert), ctrl-] (vscode)Indent the lines of each selection
insert-charInsert the typed character at each cursor
insert-line-abovectrl-shift-enter (vscode)Start a new line above this one
insert-line-belowctrl-enter (vscode)Start a new line below this one
insert-line-startI (helix)Insert at the start of each line, after its indent
insert-modei (helix)Insert before each selection
insert-newlineenter (every style’s typing mode), alt-enter (every style’s typing mode; in shell buffers)Insert a line break at each cursor, starting the new line at its indent
insert-registerctrl-r (every style’s typing mode)Insert what the register typed next holds at each cursor
insert-tabtab (every style’s typing mode)Go to the next place of the snippet being filled in; on a list item’s first line, indent it with what’s under it (when there’s one before it to go under); otherwise insert a level of indent at each cursor
join-linesJ (helix)Join the next line onto each cursor’s, or the lines of each selection, with one space
jump-backctrl-o (helix, vim), alt-left (vscode)Go back to where the last jump started, in this view
jump-forwardctrl-i (helix, vim), alt-right (vscode)Go forward again after jumping back, in this view
jump-to-wordg w (helix)Label the words on screen and select the one whose label is typed
kebab-caseChange the selected words to kebab case, each line on its own
keep-matchingK (helix)Keep the selections that match a regex
keep-primary, (helix)Keep only the primary selection
lateralt-U (helix), g + (vim)Go on to the state of the text made after this one, on any undo branch
line-endend (helix, every style’s typing mode, vscode), g l (helix)Move to the end of the line
line-startg h (helix), home (helix, every style’s typing mode)Move to the start of the line
link-copyy (in link buffers)Copy the link in this float
lowercase``` (helix)Make the selections lowercase
macro-saveSave the last macro (or the one in a register) as a command you can run and edit
match-bracketm m (helix)Move to the matching bracket, or the closing one of the pair around the cursor
merge-consecutive-selectionsalt-_ (helix)Merge selections that touch or overlap
merge-selectionsMerge all selections into one, from the first to the last
motion-hint-1Do the last motion 1 more times
motion-hint-2Do the last motion 2 more times
motion-hint-3Do the last motion 3 more times
motion-hint-4Do the last motion 4 more times
motion-hint-5Do the last motion 5 more times
motion-hint-6Do the last motion 6 more times
motion-hint-7Do the last motion 7 more times
motion-hint-8Do the last motion 8 more times
motion-hint-9Do the last motion 9 more times
move-downdown (helix, read, every style’s typing mode, vscode), j (helix, read)Move one line down
move-lefth (helix, read), left (helix, read, every style’s typing mode, vscode)Move one character left
move-lines-downalt-down (vscode)Move the cursors’ lines down one, or the list item or section the cursor is in past the next
move-lines-upalt-up (vscode)Move the cursors’ lines up one, or the list item or section the cursor is in past the one before
move-rightl (helix, read), right (helix, read, every style’s typing mode, vscode)Move one character right
move-upk (helix, read), up (helix, read, every style’s typing mode, vscode)Move one line up
move-word-leftctrl-left (vscode)Move to the start of the previous word
move-word-rightctrl-right (vscode)Move to the start of the next word
next-big-wordW (helix)Select to the start of the next WORD (punctuation included)
next-comment] c (helix, vim)Select the next comment
next-entry] e (helix, vim)Select the next entry
next-function] f (helix, vim)Select the next function
next-item] m (every style’s command mode)Go to the next item: a message in a chat room or a mail thread, a row of a list
next-parameter] a (helix, vim)Select the next parameter
next-test] T (helix, vim)Select the next test
next-type] t (helix, vim)Select the next type
next-wordw (helix)Select to the start of the next word
normal-modeesc (every style’s typing mode)Back to the editing style’s own mode (normal, in Helix’s)
openOpen a file in the main view
open-aboveO (helix)Open a new line above each cursor and insert there
open-belowo (helix)Open a new line below each cursor and insert there
page-downctrl-f (helix, read, view, vim), pagedown (helix, read, every style’s typing mode, vim, vscode), z ctrl-f (helix)Move a screen down
page-upctrl-b (helix, read, view, vim), pageup (helix, read, every style’s typing mode, vim, vscode), z ctrl-b (helix)Move a screen up
pascal-caseChange the selected words to pascal case, each line on its own
paste-afterp, space p (helix)Paste after each selection
paste-beforeP (helix)Paste before each selection
paste-imagealt-v (in agent-transcript buffers)Paste the image on your clipboard into what you’re in, like an agent’s box
paste-overctrl-v (vscode)Paste, replacing each selection; whole lines go above the cursor’s line
play-macroq (helix)Play the macro in @, or the register picked
press-buttonenter (helix, read, vim)Run the button under the cursor, as clicking it does
prev-big-wordB (helix)Select to the start of the previous WORD
prev-comment[ c (helix, vim)Select the previous comment
prev-entry[ e (helix, vim)Select the previous entry
prev-function[ f (helix, vim)Select the previous function
prev-parameter[ a (helix, vim)Select the previous parameter
prev-test[ T (helix, vim)Select the previous test
prev-type[ t (helix, vim)Select the previous type
prev-wordb (helix)Select to the start of the previous word
previous-item[ m (every style’s command mode)Go to the item before, or the start of the one the cursor is in
profileStart counting where the editor’s time goes; again, stop and show it, the most time first
projectOpen a project, or switch to it if it’s open
project-closeClose the shown project, unless it has unsaved changes (force closes anyway)
project-configRun the shown project’s own config in .greed/, if you trusted it
prompt-cancelctrl-c, esc (in find, prompt, search-box buffers)Close the prompt without accepting
prompt-submitenter (in prompt, search-box buffers)Accept what’s typed in the prompt
quick-fixa (after the leader), g r a (vim), ctrl-. (vscode)Fix or change what’s under the cursor: what a plugin offers there, like linking a note a line mentions, or else the language server’s fixes and refactorings
quitctrl-q (global)Close this pane when there are others; otherwise close the project and leave, or exit the editor if it’s the last one, refusing with unsaved changes (force goes anyway)
quit-abortIn a file a program waits on, like git commit’s message, stop the program with an error, as Vim’s :cq does; whatever was written is left as it is
quit-allEnd the session and every project in it, whatever runs, unless files have unsaved changes (force ends it anyway)
quit-askctrl-q (vscode)Leave the project, or exit the editor, from any pane, as VS Code’s ctrl-q does; asks whether to save unsaved files first rather than refusing
quit-sessionEnd the session, whatever runs in it, unless files have unsaved changes (force ends it anyway); terminals, shells and agents never count as unsaved
record-macroQ (helix)Start recording keys into a macro (@, or the register picked), or stop
redoU (helix), ctrl-Z, ctrl-y (vscode)Redo the last undone change
reflowRewrap the lines of each selection to the text width, or the width given
reindent-linesIndent each selected line as its language and the lines around it say
reloadLoad the file again from disk, as an edit undo can take back
reload-allLoad every open file again from disk, as edits undo can take back
remove-matchingalt-K (helix)Remove the selections that match a regex
remove-primaryalt-, (helix)Remove the primary selection
repeat-change. (helix, vim)Repeat the last change, at the cursors; a count replaces the one it had
repeat-findalt-. (helix)Do the last f, t, F or T again; in select mode, extending
replace-charr (helix)Replace every selected character with the next one typed
replace-in-filectrl-h (vscode)Replace text everywhere in the file, as VS Code’s ctrl-h does: what to find, with its matches lit and counted, then what to put instead
replace-with-copyR, space R (helix)Replace each selection with what was copied
rotate-contentsalt-) (helix)Move each selection’s text to the selection after it, the last’s to the first
rotate-contents-backalt-( (helix)Move each selection’s text to the selection before it, the first’s to the last
rotate-primary) (helix)Make the next selection the primary one
rotate-primary-back( (helix)Make the previous selection the primary one
savectrl-s (global)Write the buffer to its file, or to a new one; force makes a folder it goes in that isn’t there
save-allctrl-k s (vscode)Write every file with unsaved changes; force makes folders they go in that aren’t there
save-quitZ Z (vim)Write the buffer to its file if it changed, then quit
save-quit-allWrite every file with unsaved changes, then end the session
scroll-downz down, z j (helix), down, j (view), ctrl-e (vim)Scroll the view a line down
scroll-upz k, z up (helix), k, up (view), ctrl-y (vim)Scroll the view a line up
search/ (helix, read, vim)Search forward for a regex as you type
search-back? (helix, vim)Search backward for a regex as you type
search-box-newerdown (in search-box buffers)Put the query submitted after this one in the search box
search-box-olderup (in search-box buffers)Put the query submitted before this one in the search box
search-clearTake away the search’s match highlights, as Vim’s :noh does
search-nextn (helix, read, vim), f3 (vscode)Select the next match of the last search
search-next-addn (helix-select)Add the next match of the last search as another selection
search-prevN (helix, read, vim), shift-f3 (vscode)Select the previous match of the last search
search-prev-addN (helix-select)Add the previous match of the last search as another selection
search-selection* (helix)Search for the selected text, as whole words where it starts or ends one
search-selection-anywherealt-* (helix)Search for the selected text, also inside longer words
secret-setKeep a secret, like an API key, in the system keyring (or Greed’s secrets file)
select-all% (helix), ctrl-a (vscode)Select the whole buffer
select-all-childrenalt-I (helix)Select every syntax node inside each selection’s
select-all-matchesctrl-L (vscode)Select every match of the selected text (or the word at the cursor)
select-all-siblingsalt-a (helix)Select every syntax node beside each selection’s, its own included
select-around-anglesm a <, m a > (helix)Select around the angles
select-around-backticks`m a `` (helix)Select around the backticks
select-around-big-wordm a W (helix)Select the WORD and the space after it
select-around-bracesm a {, m a } (helix)Select around the braces
select-around-bracketsm a [, m a ] (helix)Select around the brackets
select-around-commentm a c (helix)Select around the comment at each selection
select-around-double-quotesm a " (helix)Select around the double-quotes
select-around-entrym a e (helix)Select around the entry at each selection
select-around-functionm a f (helix)Select around the function at each selection
select-around-indentm a i (helix)Select the lines indented as far as this one, and the one above
select-around-lastm a l (helix)Select around the last pair of the bracket or quote typed next
select-around-nextm a n (helix)Select around the next pair of the bracket or quote typed next
select-around-numberm a d (helix)Select the number at or after the cursor, with its sign
select-around-pairm a m (helix)Select around the nearest brackets or quotes
select-around-parameterm a a (helix)Select around the parameter at each selection
select-around-parensm a (, m a ) (helix)Select around the parens
select-around-quotesm a ' (helix)Select around the quotes
select-around-tagm a x (helix)Select around the XML or HTML element
select-around-testm a T (helix)Select around the test at each selection
select-around-typem a t (helix)Select around the type at each selection
select-around-wordm a w (helix)Select the word and the space after it
select-inside-anglesm i <, m i > (helix)Select inside the angles
select-inside-backticks`m i `` (helix)Select inside the backticks
select-inside-big-wordm i W (helix)Select the WORD
select-inside-bracesm i {, m i } (helix)Select inside the braces
select-inside-bracketsm i [, m i ] (helix)Select inside the brackets
select-inside-commentm i c (helix)Select inside the comment at each selection
select-inside-double-quotesm i " (helix)Select inside the double-quotes
select-inside-entrym i e (helix)Select inside the entry at each selection
select-inside-functionm i f (helix)Select inside the function at each selection
select-inside-indentm i i (helix)Select the lines indented as far as this one
select-inside-lastm i l (helix)Select inside the last pair of the bracket or quote typed next
select-inside-nextm i n (helix)Select inside the next pair of the bracket or quote typed next
select-inside-numberm i d (helix)Select the number at or after the cursor
select-inside-pairm i m (helix)Select inside the nearest brackets or quotes
select-inside-parameterm i a (helix)Select inside the parameter at each selection
select-inside-parensm i (, m i ) (helix)Select inside the parens
select-inside-quotesm i ' (helix)Select inside the quotes
select-inside-tagm i x (helix)Select inside the XML or HTML element
select-inside-testm i T (helix)Select inside the test at each selection
select-inside-typem i t (helix)Select inside the type at each selection
select-inside-wordm i w (helix)Select the word
select-linex (helix)Select the whole line, including its line break; again, the next line too
select-linesctrl-l (vscode)Select the cursor’s line, or the next one too when whole lines are selected
select-next-matchctrl-d (vscode)Select the word at the cursor, then add the next match of it as another selection
select-next-sibling] n (helix, vim)Select the next syntax node beside each selection
select-prev-sibling[ n (helix, vim)Select the previous syntax node beside each selection
select-regexs (helix)Select every match of a regex inside the selections
select-register" (helix, vim)Pick a register, by the next key typed, for the next copy, paste or macro
selection-redoctrl-k (helix), ctrl-U (vscode)Go forward to the selection selection-undo went back from
selection-undoctrl-h (helix), ctrl-u (vscode)Go back to the selection before the last command
sentence-caseChange the selected words to sentence case, each line on its own
sessionGo to another session: a running one by name, or a project’s (started if needed)
session-backB (after the leader)Go back to the session you were in before, on whichever machine (space B)
session-homeGo back to this machine: the session here you were in last, or this folder’s
shrink-selectionalt-i (helix)Shrink each selection back, or to the first syntax node inside it
shrink-to-line-boundsalt-x (helix)Shrink each selection to the whole lines inside it
smart-homehome (vscode)Go to the first non-blank of the line, or to its start
snake-caseChange the selected words to snake case, each line on its own
split-linesalt-s (helix)Split the selections into lines
split-regexS (helix)Split the selections at every match of a regex
stallsList the times plugin code held the editor up, with the plugin and what it ran
styleSwitch editing style, or pick one
surround-addm s (helix)Wrap each selection in the pair of the next character typed
surround-deletem d (helix)Take away the pair of the next character typed from around each selection
surround-replacem r (helix)Swap the pair of the next character typed around each selection for another’s
swap-node-nextalt-shift-right (helix, vim, vim-visual)Move the syntax node selected past the one after it
swap-node-prevalt-shift-left (helix, vim, vim-visual)Move the syntax node selected past the one before it
switch-case~ (helix)Switch the case of each selected letter
text-float-closeClose the float showing text
till-next-chart (helix)Select up to the next character typed
till-prev-charT (helix)Select back to just after the previous character typed
title-caseChange the selected words to title case, each line on its own
toggle-commentctrl-c, space c (helix), ctrl-/, ctrl-_ (vscode)Comment the lines of each selection, or uncomment them if they all are
trim-selections_ (helix)Trim the spaces and line breaks off both ends of each selection
trustTrust the shown project to run its own code: its config in .greed/, language servers and formatting on save
type-charType the pressed character, replacing any selection
type-newlineenter (vscode)Type a line break, replacing any selection, and start the new line at its indent
type-tabtab (vscode)Go to the next place of the snippet being filled in; otherwise indent the selected lines when a selection spans lines, or the list item the cursor starts with what’s under it, or type a level of indent
ui-nextGo to the next widget of a plugin’s view
ui-pressPress the widget at the cursor in a plugin’s view, as clicking it does
ui-prevGo to the widget before in a plugin’s view
undou (helix), ctrl-z (vscode)Undo the last change
uppercase`alt-`` (helix)Make the selections uppercase
view-modeZ (helix)Keys for the view until esc: center, top, bottom, scroll
view-mode-leaveesc (view)Back from the view mode
window-newctrl-N (global)Open another window on this session, laid out on its own, as a terminal’s new window does; space P in it goes to another project
word-ende (helix)Select to the end of the word
zoom-inz (after the leader)Show only the list item or section the cursor is in, with what’s under it
zoom-outZ (after the leader)Show what’s around the list item or section zoomed in to, or all of it again
OptionDefaultWhat it does
auto-pairs"style"Type brackets and quotes in pairs: style (as the editing style does: on in helix and vscode, off in vim), on or off
auto-reloadtrueLoad files changed on disk into their buffers, unless they have unsaved changes
auto-savefalseSave files on their own a moment after their edits stop
auto-save-delay1000How long after the last edit auto-save saves, in milliseconds
editing-style"helix"How editing works: helix, vim, vscode or another style a plugin adds (see :style)
effectsfalseSmall animations, like a wave of light through the status line when you switch files
effects-changestrueLight up text someone other than you changed, like an agent or a formatter, fading out
effects-dimfalseDim the text of the panes you’re not in
effects-jumpstrueLight up the line a jump lands on, briefly
gui-font""The font the window draws text in, by family name; empty for the system’s monospaced font
gui-font-prose""The proportional font the window draws prose in (styles with font = “prose”, like Markdown’s text), by family name; empty for the system’s sans-serif
gui-font-size15The size of the window’s text in pixels, before the screen’s scale; zooming gives a window a size of its own
gui-smooth-scrolltrueWhether the window glides a view’s text to where it scrolled, rather than jumping there
indent" "One level of indent, spaces or a tab, in languages that don’t set their own
jump-label-alphabet"abcdefghijklmnopqrstuvwxyz"The letters jump labels are made of, most comfortable first
line-numbers"absolute"How line numbers count: “absolute”, “relative” to the cursor’s line, or “hybrid” (relative, with the cursor’s line its own number)
link-opener""What opens a link, e.g. “firefox”; empty for xdg-open, or open on macOS
markup-reveal"cursor"Where hidden markup (a field’s brackets, a link’s target) shows as written outside typing: cursor, once the cursor steps inside it; never
motion-hintsfalseNumber the next places a word motion would go, and go there on a digit
notes-search-case"ignore"How searching notes minds case: “smart” (only when what you type has a capital letter), “ignore”, “match”, or “default” for as search-case says
on-quit"auto"What :q on the last project does to the session: “auto” ends it unless something is running (a command in a terminal, an agent at work) and keeps it then, “end” always ends it, “keep” always leaves it running to attach to again
on-quit-remote"keep"Like on-quit, when you’re attached over greed ssh
project-trust"ask"“ask”: a project you haven’t trusted runs none of its own code (its .greed config, language servers, formatting on save) until you say so, asked once when a file of it opens; “off”: every project runs them
scroll-margin5How many lines a view keeps in sight above and below the cursor, at most half of it (Vim’s and Helix’s scrolloff)
search-case"smart"How searches you type mind case, unless their kind says otherwise: “smart” (only when what you type has a capital letter), “ignore” or “match”
session-idle-hours24A session nothing is attached to, with nothing running and nothing unsaved, ends after this many hours; 0 keeps it
shell-filter-search-case"ignore"How filtering a shell block with / minds case: “smart” (only when what you type has a capital letter), “ignore”, “match”, or “default” for as search-case says
ssh-agent-confirm"first"When to ask before a program in a session from greed ssh signs with your ssh key: never, first (once each time you attach) or always
ssh-agent-confirm-hosts""ssh-agent-confirm for some machines alone, by the name of the machine the session runs on: “bastion=always devbox=never”
substitute-search-case"match"How :s minds case: “smart” (only when what you type has a capital letter), “ignore”, “match”, or “default” for as search-case says
tab-width4How many columns apart tab stops are, in languages that don’t set their own
text-width80How wide :reflow (and Vim’s gq) makes lines
trashtrueDeleting a file or folder moves it to the trash, where there is one on the same disk
undo-filestrueKeep each saved file’s undo history, so undo goes on after a restart
watch-interval10Seconds between looks at each watched object

data

Data in documents: tables read from files and databases, shown live in Markdown under the block that asks for them. The sources (sources.luau) are core.data’s, so any plugin can add one and any plugin can read one; documents draw them (document.luau).

  space m n   the data block's next rows; space m p the ones before
  space m o   its table in a float, as text (enter on the table too)

Uses: core, markdown, blocks, shell.

CommandKeysWhat it does
data-closeesc, q (in data-row, data-table buffers)Close the float showing a data block’s table, or a row of it
data-openm o (after the leader)Open the data block at the cursor’s table in a float, as text to go through
data-page-nextm n (after the leader)Show the data block’s next rows
data-page-prevm p (after the leader)Show the data block’s rows before these
data-refreshRead the data block at the cursor again
data-runLet the data block at the cursor run its query, as a code block, and read it
OptionDefaultWhat it does
data-psql"psql"The psql program the psql data source runs
data-sqlite3"sqlite3"The sqlite3 program the sqlite data source runs

describe

Help: describe anything the editor is made of, to see what it does, who defined it and where. In the help window, enter jumps to the definition and esc (or q) closes it.

  space h h   describe anything: commands, options, events, the API,
              plugins and modes, in one picker
  space h c   a command          space h o   an option
  space h e   an event           space h a   a function of the API
  space h p   a plugin           space h m   a mode and its keys
  space h k   press a key to see what it runs
  space h i   inspect what's under the cursor, or the editor: an
              object's state, what it relates to and what it can do

Agents get the same through the describe tool, from text.

Uses: core, picker.

CommandKeysWhat it does
describeh h (after the leader)Describe anything: a command, option, event, API function, plugin or mode
describe-apih a (after the leader)Describe a function or type of the plugin API
describe-commandh c (after the leader)Describe a command
describe-eventh e (after the leader)Describe an event
describe-keyh k (after the leader)Press keys to see what command they run
describe-modeh m (after the leader)Describe a mode
describe-objectDescribe an object
describe-optionh o (after the leader)Describe an option
describe-pluginh p (after the leader)Describe a plugin
describe-styleh s (after the leader)Describe a style
help-againr (in help buffers)In the inspector, look at the object again, as it is now
help-backalt-left, backspace, ctrl-o (in help buffers)In the inspector, go back to the object inspected before
help-closeClose the help window
help-forwardalt-right, ctrl-i (in help buffers)In the inspector, go forward again to the object gone back from
help-gotoenter (in help buffers)Open the file what’s described is defined in, at its definition; in the inspector, inspect the object on this line or run its action
inspecth i (after the leader)Inspect what’s under the cursor: its state, what it relates to, what it can do; with nothing there, start at the editor

docker

Docker in the shell. docker ps’s rows are containers, in the docker context the command ran against when it named one, to read the logs of, open a shell in, inspect, restart or stop; the image each runs is an object too, to inspect or pull. Containers complete the next docker command acting on one.

Uses: core, shell.

docs

The manual, in the editor: the same Markdown pages the website is built from, shipped with Greed, so they’re the ones for the version you run.

  space h d       go to a page or a heading in it, from a picker of them all
  space h /       search the pages as you type
  :docs [WORDS]   the heading with those words, or the picker

Pages open read-only, in the reading view: links go to other pages, and esc shows the Markdown. A plugin’s own docs folder joins them.

Uses: core, picker, markdown.

CommandKeysWhat it does
docsh d (after the leader)Read the manual: go to the heading with these words, or pick one of them all
docs-searchh / (after the leader)Search the manual and plugins’ docs as you type, and go to what’s found

flash

Flashes text as it’s copied, so you can see what went to the clipboard.

With a “#rrggbb” background for “ui.flash” in the theme it fades out; with the 16 terminal colors it shows briefly and goes. Either way it’s a decoration and a theme entry changing over time, which is all an animation is.

To change how long it lasts, set “flash-duration” from your config:

    require("@greed").option.set("flash-duration", 150)

Uses: core.

OptionDefaultWhat it does
flash-duration300How long copied text flashes, in milliseconds

folders

Folders as text you edit: space - (or :folder) shows the folder of the file you’re in as a buffer with a line per file and folder. Rename by editing a name, with any style’s keys (Helix’s s and c rename many at once); make a file by adding a line, a folder by ending it in /, and a file in a new folder with a/b.txt; delete by deleting the line. Move a file by cutting its line in one folder’s buffer and pasting it in another’s; pasting it while it’s still in the first copies it. Saving says what it will do and does it once you press y, for every folder buffer at once; :folder-undo takes that back. Deleting goes to the trash where there is one (see core.file.remove).

In a folder’s buffer, enter opens the file or folder on the line and - goes up to the folder above. Each line starts with a hidden number that says which file it was, so a renamed line is a rename, not a delete and a new file.

Uses: core.

CommandKeysWhat it does
folder- (after the leader)Show a folder as a buffer you edit to rename, make, move and delete files: this file’s, or the one given
folder-openenter (every style’s command mode; in folder buffers)Open the file or folder on the cursor’s line of a folder’s buffer
folder-undoTake back what the last save of folder buffers did
folder-up- (every style’s command mode; in folder buffers)Show the folder above in a folder’s buffer
OptionDefaultWhat it does
folder-hiddenfalseShow hidden files and folders in a folder’s buffer

format

Formatting: :format, and on every save unless format-on-save is off. A language’s formatter program (see the languages plugin) is used when it’s installed; otherwise the language server is asked. Only what changed is replaced, so the cursor and selections stay where they were.

To stop formatting on save:

    require("@greed").option.set("format-on-save", false)

Uses: core, languages.

CommandKeysWhat it does
format= (helix’s command mode)Format the buffer with its language’s formatter or language server
OptionDefaultWhat it does
format-on-savetrueFormat files when they’re saved

git-plugins

Plugins from git: say which in your config, and Greed fetches them into its data folder and pins each to a commit in a lock file next to your config, plugins.lock, so another machine gets the same ones. Put the lines in init.luau or in a file you require from it:

    local plugins = require("@git-plugins")
    plugins.use("https://github.com/someone/greed-jump")
    plugins.use("https://github.com/someone/greed-todo", { ref = "v2", name = "todo" })

Saying so only records it: nothing is fetched while the config runs, so starting never waits on the network. Missing plugins are fetched in the background once the editor is up, or with :plugins-sync, at the commit the lock file says, or the latest of ref for one that’s new there. :plugins-update [NAME] fetches the latest of each ref and writes the lock file again. Taking a line out of your config and running :plugins-sync removes that plugin (to the trash where there is one) and its pin. A plugin fetched loads like any of yours: one asking for capabilities waits for your approval (:plugins-approve), and so does an update asking for more.

Uses: core, approvals.

CommandKeysWhat it does
plugins-syncFetch the plugins your config says to use from git that aren’t here yet, at the lock file’s commits, and remove those it no longer uses
plugins-updateTake the plugins from git (or the one named) to the latest of what each follows, and pin that
OptionDefaultWhat it does
plugins-lock""The lock file pinning plugins from git to commits; empty for plugins.lock in your config’s folder

grep

Search the whole project, and replace by editing what was found.

  space /             search the project for a regex as you type
  space L             the same in this buffer, unsaved changes included
  ctrl-e              in that picker: put the matches in a results panel
  :grep PATTERN DIR?  put the matches in a results panel straight away

The results panel is a multibuffer: each matching line under its file’s name. Edit the lines with anything (s to select the matches and c to change them all works well) and the files change as you type; :w saves them, enter opens the match under the cursor, and q closes the panel.

Patterns are regexes; ones in lowercase ignore case. The project is the folder holding .jj or .git (see core’s project.luau).

Uses: picker, multibuffer.

CommandKeysWhat it does
grepPut the lines matching a regex in a panel, to go to them or edit them
grep-closeClose the search results
search-bufferL (after the leader)Search this buffer for a regex as you type, listing the lines that match
search-project/ (after the leader)Search the project for a regex as you type, and go to a match

guides

Indent guides: a thin line at each level of indent, so you can see the lines a block holds. Blank lines inside a block get them too. :set indent-guides false turns them off; their style is “ui.indent.guide”.

Rulers, at the columns the rulers option names, go the same way: where nothing is written at their column, in “ui.ruler”.

Both are drawn over the text (overlay), past a line’s end too, so neither moves the cursor or what you type.

Uses: core.

OptionDefaultWhat it does
indent-guidestrueShow a line at each level of indent
rulers""Columns to show a ruler at, counted from 1, like “80,100”; empty for none

helix

Helix’s editing style, the default: select text, then say what to do with it. Its modes are helix (normal), helix-insert and helix-select; the status line shows them as NORMAL, INSERT and SELECT. The commands are core’s; this plugin gives them Helix’s keys. Copy any part of it into your own config to change it.

Uses: core.

CommandKeysWhat it does
select-modev (helix, helix-select), esc (helix-select)Start select mode, where moves extend the selection, or leave it

hints

Key hints: after a key that starts longer sequences, like “space”, show what can come next and what each key does. f1 shows the keys of the mode you’re in, and the first time you’re in a mode listed in intro (like typing into a terminal), a line in the status line says how to get out.

Uses: core.

CommandKeysWhat it does
keys-helpf1 (global, pane, resize, tab, terminal)Show the keys of the mode you’re in and what each does

hoard

Hoard: your notes, todos and today, for anyone, not only programmers. greed notes goes to it in the session of the hoard service, which opens your notes folder on its home: search, adding a todo or a thought to today’s note, today’s note, the agenda with boxes to tick, the inbox and recent notes (home.luau). Editing there is modeless, with VS Code’s keys (hoard-editing-style changes that), notes save on their own and have no line numbers, and language servers leave them alone. That session starts with Greed when you have notes, and it’s the one that sets off reminders and runs the agent’s scheduled jobs, once for all sessions.

:hoard (space n h) goes to Hoard from any session, starting it if needed, and :hoard-window (space n H) opens it in a window of its own.

Uses: core, notes, statusline, picker, service.

CommandKeysWhat it does
hoardn h (after the leader)Go to Hoard (your notes, todos and today), starting it if needed; in Hoard, its home
hoard-addalt-enter, ctrl-enter (in hoard buffers)Add what’s written in the home’s box to today’s note: lines starting [] as todos; starting with ?, ask your notes
hoard-agendaOpen the agenda note: what’s due, as queries you can change
hoard-boxesc (every style’s typing mode; in hoard buffers)On the home: back to the end of the box to write in
hoard-downdown (every style’s typing mode; in hoard buffers)On the home: down a line in the box, or to the next thing to open or press, and past the last back to the box
hoard-enterenter (every style’s typing mode; in hoard buffers)On the home: a new line in the box, or else open or press what the cursor is on
hoard-escapeesc (vscode’s typing mode; in file buffers)In Hoard: let go of the selection, or zoom out of a list item or section, or else go back to the home
hoard-reviewn w (after the leader)Look back at the week: what was done, what’s overdue, coming and waiting, the inbox and what was written, in a note of its own
hoard-schedulealt-d (every style’s typing mode; in hoard buffers)On the home: say when the todo on the agenda the cursor is on is due; in the box, delete the next word as usual
hoard-tabtab (every style’s typing mode; in hoard buffers)On the home: the next place of a snippet being filled in, or the next thing to open
hoard-tab-backshift-tab (every style’s typing mode; in hoard buffers)On the home: the place of a snippet before, or the thing to open before
hoard-upup (every style’s typing mode; in hoard buffers)On the home: up a line in the box, from its first line to the nearest thing above to open or press, and from there to the one before
hoard-windown H (after the leader)Open Hoard in a window of its own, staying here; in a terminal, go to it
OptionDefaultWhat it does
hoard-editing-style"vscode"The editing style in Hoard: “vscode” types as soon as a key is pressed, without modes; “same” keeps the one the rest of Greed uses
hoard-language-serversfalseRun Markdown’s language servers (spelling, grammar) on notes in Hoard

hosts

Connecting to another machine from inside Greed: space C (:connect) lists the hosts you connected to lately and those in ~/.ssh/config, and going to one shows its session here, as greed ssh HOST would, starting one there if none is running. Typing a host that isn’t listed connects to it too.

Uses: core, picker.

CommandKeysWhat it does
connectC (after the leader)Show a session on another machine here, as greed ssh does: pick a host, or type one

hub

The hub: one session on the machine follows all the others, so every session can say what waits elsewhere and go there, and one place decides what to tell you. The hub is a role, not a process: among the running sessions of this greed’s build, the one hub-session names, or else the first by name. Each session works it out again as sessions come and go, so when the hub ends another takes over.

The hub follows each other session with greed ctl watch and adds what they say to its own status (machine); the others follow only the hub. Every message is a whole status, so a missed one only means a later look.

Hubs follow hubs: the machines you reached with greed ssh lately, and the hosts in hub-hosts, are other machines whose hubs this one follows over ssh (greed ssh HOST ctl watch --hub), and what they say of the machines they know comes along (machines). There’s no main hub: every entry names the machine it’s about, a hub ignores news of its own machine, and of each other machine it keeps what it heard itself, else the freshest, so loops die out.

  space i A   the agents of every session you can reach: enter goes there,
              ctrl-a answers or stops one where it runs

Uses: core, agent, picker, statusline.

CommandKeysWhat it does
machinei A (after the leader)The agents of every other session, here and on the machines the hub follows: enter goes there, ctrl-a answers or stops it (space i A)
machine-forgetStop following a machine you reached with greed ssh, until you do again
OptionDefaultWhat it does
hub-hosts""More machines whose hubs this machine’s hub follows, beside the ones you reached with greed ssh lately, as ssh hosts separated by spaces, like “eris mini”
hub-session""The session that follows the others on this machine; empty for the first running one by name

image

Image files open as the image: PNG, JPEG and GIF, drawn as wide as the view at most (in the window, and in terminals that show images), under a line with its name, size and zoom.

  +  -  bigger, smaller
  =     as wide as the view, or its own size when it's smaller
  0     its own size

Uses: core.

CommandKeysWhat it does
image-zoom-actual0 (in image buffers)Draw the image at its own size
image-zoom-fit= (in image buffers)Draw the image as wide as the view, or at its own size when it’s smaller
image-zoom-in+ (in image buffers)Draw the image bigger
image-zoom-out- (in image buffers)Draw the image smaller

kubernetes

Kubernetes in the shell. The prompt shows the context and namespace kubectl would use, read from its config without running it, in red when the context is a production one (shell-production-contexts). kubectl get’s rows are pods, deployments and other objects, in the context and namespace the command ran against, to describe, read the logs of, open a shell in, restart or delete; and they complete the next kubectl command. space o k and space o K switch the context and namespace, everywhere or in one shell. On a kubectl get block, space . shows another resource or namespace in its place, live if it was.

Uses: core, shell, picker, terminal.

CommandKeysWhat it does
kube-contexto k (after the leader)Switch kubectl’s context, everywhere or in this shell only; with a name, to that one
kube-namespaceo K (after the leader)Switch the namespace of kubectl’s context, everywhere or in this shell only; with a name, to that one

languages

Languages, batteries included: which files are in which language, their language servers and how they’re commented and indented. The table is in languages.luau. A server only starts if it’s installed, so nothing needs setting up; :health shows what’s found and what’s missing.

Change an entry from your config. Fields you give replace those fields:

    local languages = require("@languages")
    languages.set("python", { servers = { { "pylsp" } } })
    languages.set("odin", { extensions = { "odin" }, servers = { { "ols" } } })

Uses: core, cmdline.

CommandKeysWhat it does
grammar-fetchDownload a grammar Greed knows where to get, ahead of opening a file in it
healthShow each language’s highlighting and servers, and which are installed
languageSet this buffer’s language, for its highlighting, indent and language server; with none, say which it has
OptionDefaultWhat it does
grammar-downloadtrueDownload the grammar for a language Greed has none for when a file in it opens

lsp

Language servers: hover, definitions, references, rename, code actions and diagnostics. Lines with problems get a sign, and the worst problem’s message shows after the line (turn that off with :set diagnostic-messages false).

  space k   show what's under the cursor, with any problems there
  g d       go to the definition
  g r       pick a place it's used
  space r   rename it everywhere
  space a   pick a fix or refactor
  space d   pick a problem in this file
  space D   pick a problem in any file
  ] d / [ d next / previous problem

Servers start the first time a file of their language is open, if one is installed; the languages plugin says which (see :health).

Uses: core, markdown, picker, multibuffer, statusline.

CommandKeysWhat it does
code-actionPick a fix or refactor for the cursor or the selection
completion-acceptenter (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Put the current completion in place of the word being typed; with none chosen, close the menu and do what enter does
completion-askctrl-x (helix’s typing mode), tab (every style’s typing mode; in search-box, shell buffers), ctrl-space (every style’s typing mode)Ask what could go at the cursor: a source like the shell’s, or the language server
completion-closeesc (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Close the completion menu and do what esc does where you were typing
completion-downdown (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Move to the next completion, or in a shell’s menu that opened by itself, the command after
completion-nextctrl-n (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Move to the next completion
completion-prevctrl-p, shift-tab (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Move to the previous completion
completion-tabtab (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Move to the next completion; where tab completes in place, as in a shell, first put in what every match starts with
completion-upup (completion-helix-insert, completion-vim-insert, completion-vscode; in agent-transcript, file, hoard, mail-compose, search-box, shell buffers)Move to the previous completion, or in a shell’s menu that opened by itself, the command before
completion-wordsctrl-n (vim-insert)Complete the word being typed from words in open files
completion-words-backctrl-p (vim-insert)Complete the word being typed from words in open files, starting with the last
first-diagnostic[ D (every style’s command mode)Go to the first problem in this file
goto-declarationg D (every style’s command mode)Go to where the thing under the cursor is declared
goto-implementationg i (every style’s command mode), g r i (vim)Go to where the thing under the cursor is implemented
goto-referencesg r (every style’s command mode), g r r (vim), shift-f12 (vscode)Pick a place where the thing under the cursor is used, and go there
goto-type-definitiong y (every style’s command mode), g r t (vim)Go to where the type of the thing under the cursor is defined
last-diagnostic] D (every style’s command mode)Go to the last problem in this file
lsp-restartStart this file’s language server again, as when it’s stuck; with all, every server
next-diagnostic] d (every style’s command mode), f8 (vscode)Go to the next problem in this file
pick-diagnosticd (after the leader)Pick a problem in this file and go to it
pick-problemD (after the leader), ctrl-M (vscode)Pick a problem in any file, open or not, and go to it
pick-workspace-symbolS (after the leader), ctrl-t (vscode)Pick a function, type or other symbol anywhere in the project, as the language server knows them; with a kind, only those
prev-diagnostic[ d (every style’s command mode), shift-f8 (vscode)Go to the previous problem in this file
renamer (after the leader), g r n (vim), f2 (vscode)Rename the thing under the cursor everywhere it’s used
select-referencesH (after the leader)Select every place in this file where the thing under the cursor is used
signature-helpWhile typing, show what the function being called takes
OptionDefaultWhat it does
completion-delay150Milliseconds of no typing before a completion menu opens by itself; 0 opens it only when asked
completion-enter"auto"What enter does in a completion menu: “first” puts in the first item, “selected” only one moved to with tab or the arrows (otherwise enter does what it does without a menu, like running a shell’s line), “auto” lets each source say: the shell “selected”, language servers “first”
diagnostic-messagestrueShow each line’s worst problem after the end of the line

mail

Mail: your mail searched and read in Greed. In the mail session (greed mail) the page shows what a search finds, newest first, with the search box over it (in:inbox to start); elsewhere :mail opens the same list in a float for a quick look. enter reads a thread, / searches again, $ syncs now, q goes back or closes; u marks read or unread, s flags, t tags, T makes a todo, e archives and d trashes; r replies, a replies to all and c writes new mail, which :mail-send sends. greed-mail syncs the accounts in mail.toml and keeps the index this searches (backend.luau); a search is the query language anywhere in Greed: from:anna is:unread date:2w.. in:work invoice.

Uses: core, notes, picker, panes, service.

CommandKeysWhat it does
mailSearch and read your mail: on the page in the mail session, a quick look elsewhere
mail-archivee (in mail, mail-thread buffers)Move the message (or the thread being read) to the archive
mail-attachAttach a file to the mail being written
mail-browserb (in mail, mail-thread buffers)Show the message in a web browser as it was sent, loading nothing from anywhere
mail-closeGo back from a thread to the list, or close a quick look at mail
mail-composec (in mail, mail-thread buffers)Write new mail
mail-draftsPick a draft to go on writing; alt-. on one discards it
mail-fromPick which of your addresses the mail being written is from, with its signature
mail-open-allo (in mail-thread buffers)Show all of the thread: every message opened and every quote, or folded again
mail-plainh (in mail-thread buffers)Read the thread as its messages’ text, or laid out from their HTML again
mail-readenter (in mail buffers)Read the thread of the message under the cursor
mail-replyr (in mail, mail-thread buffers)Reply to the message (or the thread being read), quoting it
mail-reply-alla (in mail, mail-thread buffers)Reply to everyone the message (or the thread being read) went to
mail-rule-runRun a mail rule over all the mail it finds, asking first
mail-rule-tryShow what a mail rule finds in the mail you have, changing nothing
mail-save-attachmentS (in mail-thread buffers)Save what’s attached under the cursor (or the thread’s only attachment) where you say
mail-search/ (in mail buffers)Search the mail in the list again
mail-search-1alt-1 (in mail buffers)Show what saved search 1 finds (require(“@mail”).searches)
mail-search-2alt-2 (in mail buffers)Show what saved search 2 finds (require(“@mail”).searches)
mail-search-3alt-3 (in mail buffers)Show what saved search 3 finds (require(“@mail”).searches)
mail-search-4alt-4 (in mail buffers)Show what saved search 4 finds (require(“@mail”).searches)
mail-search-5alt-5 (in mail buffers)Show what saved search 5 finds (require(“@mail”).searches)
mail-search-6alt-6 (in mail buffers)Show what saved search 6 finds (require(“@mail”).searches)
mail-search-7alt-7 (in mail buffers)Show what saved search 7 finds (require(“@mail”).searches)
mail-search-8alt-8 (in mail buffers)Show what saved search 8 finds (require(“@mail”).searches)
mail-search-9alt-9 (in mail buffers)Show what saved search 9 finds (require(“@mail”).searches)
mail-search-nexttab (in mail buffers)Show what the next saved search finds
mail-search-previousshift-tab (in mail buffers)Show what the saved search before finds
mail-searchesg s (in mail buffers)Pick a saved search to show, however many there are, with how many unread each finds
mail-sendalt-enter, ctrl-enter (in mail-compose buffers)Send the mail being written
mail-sessionGo to the mail session, starting it if needed: it syncs your mail
mail-sync$ (in mail buffers)Sync your mail now
mail-tagt (in mail, mail-thread buffers)Tag the message (or the thread being read), or take the tag off if it has it
mail-todoT (in mail, mail-thread buffers)Add a todo about the message (or the thread being read) to your inbox note, linking back to it
mail-toggle-flags (in mail, mail-thread buffers)Flag the message (or the thread being read), or take its flag off
mail-toggle-readu (in mail, mail-thread buffers)Mark the message (or the thread being read) read, or unread if it’s read
mail-trash#, d (in mail, mail-thread buffers)Move the message (or the thread being read) to the trash; in the trash, delete it for good
mail-undoz (in mail, mail-thread buffers)Undo the last change to your mail, or take back the mail just sent while it waits
OptionDefaultWhat it does
mail-markdowntrueWhether mail you write is Markdown, sent as what you wrote and the HTML it makes; off sends plain text alone
mail-program""The greed-mail program that syncs your mail, its name on PATH or a path; empty for the one beside greed, or else on PATH
mail-threadstrueWhether a mail list shows each thread once, as its newest message found, rather than every message

markdown

Markdown as a document: headings without their hashes (the top level twice the size), bold, italic, struck and code without their markers, links as their text, fenced code on a background of its own, quotes with a bar, --- as a line, list dashes as bullets and tables in columns with borders (tables.luau). The file stays plain Markdown: typing on a line shows it as written (see core.reveal). Turn it off with :set markdown-look false, or for one file with markdown-look-toggle. tab folds the section, list item or code block around the cursor (folds.luau).

The reading view (markdown-read) shows the file read-only with no markup at all, images in place and links to follow (links.luau), in the “read” mode; esc goes back to editing at the same place.

Other plugins can draw some parts their own way: notes draws headings and bullets as symbols, and claims them with require("@markdown").claim.

Uses: core.

CommandKeysWhat it does
choice-pickPick the choice under the cursor, unpicking the others in its group
markdown-cell-editm t e (after the leader)Type the text of the Markdown table cell at the cursor, or the formula filling its column
markdown-cell-nextalt-l (every style’s command mode, vscode’s typing mode)Go to the next cell of a Markdown table; elsewhere, what the key does otherwise
markdown-cell-prevalt-h (every style’s command mode, vscode’s typing mode)Go to the cell before in a Markdown table; elsewhere, what the key does otherwise
markdown-field-makem f (after the leader)Make what’s selected, or the number or word at the cursor, a field named as you type; on a field, rename it
markdown-field-setSet the value of the field at the cursor, value in Markdown
markdown-followFollow the Markdown link under the cursor: to a heading, another file or a web page
markdown-look-togglem l (after the leader), alt-V (vscode’s typing mode)Show this Markdown file as a document or as written, whatever markdown-look says
markdown-readm v (after the leader), alt-v (read, vscode’s typing mode), esc, q, space m v (read)Read this Markdown file as a document, with images and links to follow; again or esc to edit
markdown-table-alignm t = (after the leader)Line up a Markdown table’s pipes
markdown-table-column-addm t c (after the leader)Add a column right of the cursor’s, in a Markdown table
markdown-table-column-add-leftm t C (after the leader)Add a column left of the cursor’s, in a Markdown table
markdown-table-column-deletem t D (after the leader)Delete the cursor’s column of a Markdown table
markdown-table-column-leftm t h (after the leader)Move the cursor’s column of a Markdown table left
markdown-table-column-rightm t l (after the leader)Move the cursor’s column of a Markdown table right
markdown-table-row-addm t o (after the leader)Add a row under the cursor’s, in a Markdown table
markdown-table-row-add-abovem t O (after the leader)Add a row above the cursor’s, in a Markdown table
markdown-table-row-deletem t d (after the leader)Delete the cursor’s row of a Markdown table
markdown-table-row-downm t j (after the leader)Move the cursor’s row of a Markdown table down
markdown-table-row-upm t k (after the leader)Move the cursor’s row of a Markdown table up
markdown-table-sortm t s (after the leader)Sort a Markdown table’s rows by the cursor’s column
markdown-table-sort-descendingm t S (after the leader)Sort a Markdown table’s rows by the cursor’s column, largest first
OptionDefaultWhat it does
markdown-looktrueShow Markdown with its markup hidden and its headings, code and quotes drawn as such

models

Language models by role. Plugins ask for a role, like “fast” or “reasoning”, and your config says which provider and model plays it, so no plugin hard-codes a provider and switching to a local model is one line.

  :models   each role's provider and model and whether its key is found;
            enter changes a role, e its effort, k sets a key, l signs in

What you pick in :models (or the setup page) is kept in Greed’s data folder and read before your config, which has the last word.

In your config:

    local models = require("@models")
    models.roles.fast = { provider = "ollama", model = "llama3.2" }
    models.providers.work = { kind = "openai", url = "https://llm.example.com/v1", secret = "work" }

Keys come from greed.secrets (:models, :secret-set anthropic, or ANTHROPIC_API_KEY).

Uses: core, picker.

CommandKeysWhat it does
loginSign in to a provider: with an account for those whose plan comes with one, like Berget Code or Mistral’s Vibe, or else its API key
logoutForget the sign-in kept for a provider
modelsShow and change which model plays each role, set API keys and sign in
models-changeOn the :models page, pick the provider and model that play the role under the cursor
models-closeClose the :models page
models-effortOn the :models page, pick how hard the model of the role under the cursor thinks
models-keyOn the :models page, set the API key of the provider of the role under the cursor
models-loginOn the :models page, sign in to the provider of the role under the cursor
usageHow many tokens the models were sent and wrote today and over the last week
OptionDefaultWhat it does
models-idle-timeout90Seconds a model’s answer may go quiet before its request counts as failed and is tried again; the first bytes get three times as long. 0 waits for ever

multibuffer

Multibuffers: one buffer made of excerpts from many files, edited in place. Typing in an excerpt edits its file as you go (the file opens in Greed the first time one of its excerpts changes), and a change made to the file anywhere else shows in the excerpt. :w saves every file changed this way, enter goes to the line under the cursor and q closes the view.

Search results open in one. A plugin makes its own with

    require("@multibuffer").open({ { path = "/src/main.rs", from = 9, to = 12 } },
        { summary = "1 place" })

Each file’s name shows above its excerpts and its line numbers beside them; neither is text you can edit. Excerpts that overlap or touch are joined.

Uses: core.

CommandKeysWhat it does
multibuffer-closeq (in why buffers)Close the view showing the multibuffer
multibuffer-openenter (every style’s command mode; in multibuffer buffers)Go to the line under the cursor in its file
multibuffer-revertg r (after the leader; in multibuffer buffers)Put the change under the cursor back the way it was, in a view of changes

notes

Notes: a folder of plain Markdown files, linked with [[note]], with todos and an agenda. It’s only files, so git or Syncthing can carry them to other machines and a phone.

  space n d   today's note            space n f   find a note
  space n c   capture a todo          space n /   search the notes
  space n a   the agenda: open todos, soonest due first
  space n x   tick a todo, or untick it
  space n t   jot a thought down in the inbox
  space n r   dismiss the reminders notice
  space n l   have Greed's agent link the inbox to your other notes
  space n j   pick another job for the agent (jobs.luau)
  space n k   link to a heading, list item or block in a note
  space n n   a new note from a template (types.luau)
  space n y   give this note a template's fields
  space k     on a due date or a reminder, say when it is in words
  g d         follow the [[link]] under the cursor (making the note)
  tab, z a    fold the section, list item or code block under the cursor,
              or unfold it (Markdown's folds)

In notes (Markdown files in the notes folder, or every Markdown file with notes-everywhere), links show without their brackets, markup shows as symbols (look.luau), and each note lists the notes linking to it at its end. Todos and lines can carry reminders (reminders.luau).

    local greed = require("@greed")
    greed.option.set("notes-folder", "~/Documents/notes")

Uses: core, picker, agent, markdown, statusline, acp, image, service.

CommandKeysWhat it does
notes-agendan a (after the leader)Pick from the open todos in every note, soonest due first
notes-agentn j (after the leader)Pick a job for Greed’s agent on your notes: connect them, pull out todos, ask them
notes-askAsk your notes a question: Greed’s agent answers from them, linking what it used
notes-capturen c (after the leader)Add a todo to the inbox note, from wherever you are: the project’s when it keeps notes
notes-capture-mineAdd a todo to your own inbox note, even in a project that keeps notes
notes-connectn l (after the leader)Have Greed’s agent go through the inbox (or the note you’re in), link it to your other notes and add context, as changes you review
notes-dailyn d (after the leader)Open today’s note, making it if there isn’t one
notes-findn f (after the leader)Open a note by name, or pick one
notes-linkn k (after the leader)Link to a heading, a list item or a block in a note, picked from all of them
notes-newn n (after the leader)Make a note from a template: pick one, then name the note
notes-reminder-openOpen the first reminder in the notice, and close the notice
notes-reminders-dismissn r (after the leader)Close the reminders notice
notes-searchn / (after the leader)Search every note as you type
notes-tag-renameRename a tag in every note, with the tags under it
notes-thoughtn t (after the leader)Jot a thought or an idea down in the inbox note, with today’s date, from wherever you are
notes-typen y (after the leader)Give this note a template’s fields, those it doesn’t have yet
todo-togglen x (after the leader)Tick the todo on each selected line, or untick it; a plain line becomes a todo
OptionDefaultWhat it does
notes-agent-schedule""Jobs Greed’s agent runs on its own, as JOB DAY HH:MM separated by commas, e.g. week friday 16:00, connect weekdays 08:00; DAY is daily, weekdays or a weekday’s name. Empty runs none
notes-concealtrueShow links in notes without their brackets, and markup as symbols
notes-everywherefalseTreat every Markdown file as a note: concealed links and backlinks
notes-folder"~/notes"The folder notes live in; ~ is your home folder
notes-project-folder".greed/notes"Where a project keeps its notes, in the project: they’re named project:NAME, and the plan and decisions you share with agents are among them
notes-remind-desktoptrueShow reminders as desktop notifications with notify-send or osascript, where installed
notes-remind-time"09:00"When a reminder with a date and no time goes off, as HH:MM

operations

Operations: work across files taken as one thing. An operation groups the edits it makes in every buffer and the programs it runs, so you can review it in one view and undo it in one step.

  space u o   recent operations, to review one
  space u u   undo the latest operation (in a review, that one)

In a review, space g r puts back the change under the cursor.

A plugin or agent makes one with

    local operations = require("@operations")
    operations.run("rename parse to parse_line", function(op)
        -- edit buffers, then
        operations.exec(op, { "cargo", "test" })
    end)

Uses: core, picker, multibuffer.

CommandKeysWhat it does
operation-undou u (after the leader)Undo the latest operation, or the one being reviewed, in every file at once
operationsu o (after the leader)Pick a recent operation to review: its changes across files and the programs it ran

panes

Panes and tabs, the way a terminal multiplexer has them: split the screen between files and terminals, move between them, give a pane more room, keep tabs of layouts (arranged by the layout managers in layouts.luau). The keys follow zellij’s where they can:

  • alt keys work everywhere, in every editing style and in terminals:
  alt-h/j/k/l move between panes (and to the next tab at the edge),
  alt-n opens a terminal pane (a floating one while floats are shown),
  alt-f shows or hides the tab's floating views (opening a floating
  terminal when there are none), alt-F floats this file, alt-= and
  alt-- resize, alt-< and alt-> (alt-[ and alt-] too) or alt-1..9
  change tabs. alt-w changes how the tab lays out its floats (see
  floats.luau), alt-{ and alt-} cycle through them and alt-W picks one
  from the dock.
  • alt-p and alt-t open the pane and tab modes, where single keys act until
  esc.
  • In normal mode, ctrl-w (and the leader’s w) is the window prefix Vim and Helix
  users know, and in Vim, g t and g T change tabs.

Every key is in M.keys; rebind or unbind them from your config like any other (see the keys docs).

Uses: core, picker, terminal, statusline.

CommandKeysWhat it does
float-dockShow the dock of this tab’s floating views, or hide it
float-dock-pickalt-W (global, terminal)Pick a floating view from the dock: 1 to 9, or the arrows and enter
float-filealt-F (global, terminal), E (pane)Open a file (this one if none is given) in a new floating view
float-flipF, e (pane)Take this pane out to float over the tab, or put a floating view back in as a pane
float-goBring this tab’s floating view number N to the front, as the dots on its border count
float-layout-nextalt-w (global, terminal)Lay this tab’s floating views out with the next float layout
float-layout-pickY (pane)Pick how this tab lays out its floating views
float-move-downdown (resize)Move the floating view down
float-move-leftleft (resize)Move the floating view left
float-move-rightright (resize)Move the floating view right
float-move-upup (resize)Move the floating view up
float-nextalt-} (global, terminal), } (pane)Bring the next floating view in this tab to the front
float-previousalt-{ (global, terminal), { (pane)Bring the floating view before in this tab to the front
float-terminal-newW (pane)Open another floating terminal in this tab
floats-cascadeC (pane)Stack this tab’s floating views in a cascade, from now on
floats-oneO (pane)Show this tab’s floating views one at a time, like tabs, all in the same place, from now on
floats-tileT (pane)Lay this tab’s floating views out side by side, from now on
floats-togglealt-f (global, terminal), w, z (pane)Hide this tab’s floating views or show them again; with none, open a floating terminal
layout-main-grow] (pane)Give the main pane more room
layout-main-shrink[ (pane)Give the main pane less room
layout-nextalt-space (global, terminal), space (pane)Arrange this tab with the next layout
layout-openOpen a saved layout as a new tab
layout-picky (pane)Pick how this tab arranges its panes
layout-rotateo (pane)Move every pane one place along
layout-saveSave this tab’s panes, and what they show, as a layout of the project
layout-save-mineSave this tab’s panes, and what they show, as a layout for any project
layout-swap-mainalt-m (global, terminal), m (pane)Swap this pane with the main one
pane-closew c, w q (after the leader), ctrl-w c, ctrl-w q (every style’s command mode)Close this pane
pane-close-donex (pane)pane-close, then back from the mode
pane-downalt-down, alt-j (global, terminal), w j (after the leader), down, j (pane), ctrl-w j (every style’s command mode)Move to the pane below
pane-file-downw f (after the leader), ctrl-w f (every style’s command mode)Open the file named under the cursor in a pane below
pane-file-rightw F (after the leader), ctrl-w F (every style’s command mode)Open the file named under the cursor in a pane on the right
pane-growalt-+, alt-= (global, terminal), +, = (pane, resize)Give this pane more room
pane-leftalt-h, alt-left (global, terminal), w h (after the leader), h, left (pane), ctrl-w h (every style’s command mode)Move to the pane on the left, or the tab before
pane-modealt-p (global, terminal)Keys for panes until esc: move, split, resize, close
pane-mode-leavealt-p (pane), enter, esc (pane, resize, tab), alt-r (resize), alt-t (tab)Back from the pane or tab mode
pane-new-downw n s (after the leader), ctrl-w n s (every style’s command mode)Open a pane below with a new, empty buffer
pane-new-rightw n v (after the leader), ctrl-w n v (every style’s command mode)Open a pane on the right with a new, empty buffer
pane-nextw w (after the leader), tab (pane), ctrl-w w (every style’s command mode)Move to the next pane
pane-onlyw o (after the leader), ctrl-w o (every style’s command mode)Close every other pane in the tab
pane-pickw g (after the leader), g (pane), ctrl-w g (every style’s command mode)Label the panes and go to the one whose label you type next; esc leaves the pane mode
pane-placep (pane)Show where a new pane would go, to move it and open it there
pane-place-cancelesc (pane-place)Put things back without a new pane
pane-place-downdown, j (pane-place)Move the new pane’s frame down
pane-place-hereenter (pane-place)Open a pane with this file where the frame is
pane-place-lefth, left (pane-place)Move the new pane’s frame left
pane-place-rightl, right (pane-place)Move the new pane’s frame right
pane-place-terminalt (pane-place)Open a terminal where the frame is
pane-place-upk, up (pane-place)Move the new pane’s frame up
pane-resize-downJ (pane), j (resize)Make this pane bigger by moving its bottom edge down, or the other edge at the screen’s edge
pane-resize-leftH (pane), h (resize)Make this pane bigger by moving its left edge out, or the other edge at the screen’s edge
pane-resize-rightL (pane), l (resize)Make this pane bigger by moving its right edge out, or the other edge at the screen’s edge
pane-resize-upK (pane), k (resize)Make this pane bigger by moving its top edge up, or the other edge at the screen’s edge
pane-rightalt-l, alt-right (global, terminal), w l (after the leader), l, right (pane), ctrl-w l (every style’s command mode)Move to the pane on the right, or the tab after
pane-shrinkalt-- (global, terminal), - (pane, resize)Give this pane less room
pane-shrink-downJ (resize)Make this pane smaller by moving its bottom edge up, or the other edge at the screen’s edge
pane-shrink-leftH (resize)Make this pane smaller by moving its left edge in, or the other edge at the screen’s edge
pane-shrink-rightL (resize)Make this pane smaller by moving its right edge in, or the other edge at the screen’s edge
pane-shrink-upK (resize)Make this pane smaller by moving its top edge down, or the other edge at the screen’s edge
pane-split-downw s (after the leader), s (pane), ctrl-w s (every style’s command mode)Show this pane’s file in a new pane below
pane-split-rightw v (after the leader), v (pane), ctrl-w v (every style’s command mode), ctrl-\ (vscode)Show this pane’s file in a new pane on the right
pane-swap-downw J (after the leader), ctrl-w J (every style’s command mode)Swap this pane with the one below
pane-swap-leftw H (after the leader), ctrl-w H (every style’s command mode)Swap this pane with the one on its left
pane-swap-rightw L (after the leader), ctrl-w L (every style’s command mode)Swap this pane with the one on its right
pane-swap-upw K (after the leader), ctrl-w K (every style’s command mode)Swap this pane with the one above
pane-terminalalt-n (global, terminal), w t (after the leader), ctrl-w t (every style’s command mode)Open a terminal in a new pane, or a floating one while floating views are shown
pane-terminal-donen (pane)pane-terminal, then back from the mode
pane-terminal-downd (pane)Open a terminal in a new pane below
pane-terminal-rightr (pane)Open a terminal in a new pane on the right
pane-to-new-tabMove this pane (or panel, or floating view) to a new tab
pane-to-new-tab-doneb (pane)pane-to-new-tab, then back from the mode
pane-to-panelMove this pane (or floating view) into a panel on the right
pane-to-panel-doneP (pane)pane-to-panel, then back from the mode
pane-to-tabMove this pane (or panel, or floating view) to a tab you pick, or a new one
pane-to-tab-donet (pane)pane-to-tab, then back from the mode
pane-upalt-k, alt-up (global, terminal), w k (after the leader), k, up (pane), ctrl-w k (every style’s command mode)Move to the pane above
pane-zoomw z (after the leader), f (pane), ctrl-w z (every style’s command mode)Show only this pane, or all of them again
resize-modealt-r (global, terminal), R (pane)Keys for resizing the pane or floating view until esc, and moving a float
tab-closeClose this tab and its panes
tab-close-donex (tab)tab-close, then back from the mode
tab-goalt-1, alt-2, alt-3, alt-4, alt-5, alt-6, alt-7, alt-8, alt-9 (global, terminal)Show tab N
tab-modealt-t (global, terminal)Keys for tabs until esc: new, close, switch, rename
tab-newOpen a new tab
tab-new-donen (tab)tab-new, then back from the mode
tab-nextalt->, alt-] (global, terminal), ], l, right (tab), g t (vim’s command mode)Show the next tab; with a count, tab N, as Vim’s 3gt
tab-previousalt-<, alt-[ (global, terminal), [, h, left (tab), g T (vim’s command mode)Show the tab before; with a count, that many tabs back
tab-renameName this tab
tab-rename-doner (tab)tab-rename, then back from the mode
tab-terminalOpen a new tab with a terminal
tab-terminal-donet (tab)tab-terminal, then back from the mode
terminal-floatShow the floating terminal, or hide it
OptionDefaultWhat it does
float-layout"free"How new tabs lay out their floating views: “free”, “one”, “tiled”, “cascade” or your own
pane-layout"manual"How new tabs arrange their panes: “manual”, “main-stack”, “columns”, “spiral” or your own

pdf

PDF files open as their pages: one page at a time, drawn as wide as the view (in terminals that show images, and in the window), or as the text on every page, which reads anywhere and searches with /.

  ]  [     next and previous page
  +  -  =  bigger, smaller, as wide as the view
  t        pages or text

Uses: core.

CommandKeysWhat it does
pdf-next-page] (in pdf buffers)Show the next page of the PDF
pdf-previous-page[ (in pdf buffers)Show the previous page of the PDF
pdf-textt (in pdf buffers)Switch between the PDF’s pages and the text on them
pdf-zoom-fit= (in pdf buffers)Draw the PDF’s page as wide as the view
pdf-zoom-in+ (in pdf buffers)Draw the PDF’s page bigger
pdf-zoom-out- (in pdf buffers)Draw the PDF’s page smaller

picker

Pickers: type to narrow a list down, then choose an item.

A picker is one floating buffer. Its first line is what you type; the lines below are the items that match, best first, with the current one highlighted. Move with up/down (or ctrl-n/ctrl-p), choose with enter, close with esc.

Other plugins open one with require("@self/picker").pick(...); see pickers.luau for examples.

Uses: core.

CommandKeysWhat it does
act. (blocks, after the leader), alt-. (vscode’s typing mode)List what you can do with what’s under the cursor (a file, link, symbol, problem, change or the selection), and do it
command-palette? (after the leader), ctrl-P (vscode)Run any command by name
pick-anythingspace (after the leader)Switch to anything: a file, a shell, a terminal or another buffer, and what plugins add, like your sessions and agents; @kind keeps one kind, ctrl-a lists what can be done to it (answer an agent), ctrl-v, ctrl-s and ctrl-f open a buffer beside, below or in a float
pick-bufferb (after the leader), ctrl-b (vscode)Switch to an open file, or a buffer kept open without one, like a shell’s > buf:NAME
pick-filef (after the leader), ctrl-p (vscode)Open a file in the project, skipping ignored files
pick-file-hereF (after the leader)Open a file under the folder Greed was started in, skipping ignored files
pick-jumpj (after the leader)Pick a place from the jumplist and go there
pick-outlines (after the leader), g O (vim), ctrl-O (vscode)Jump to a function or type in the file, from its syntax tree
pick-stylePick an editing style
picker-actalt-. (in picker buffers)List what you can do with the current item, and do it
picker-chooseenter (in picker buffers)Choose the current item and close the picker
picker-closeesc (in picker buffers)Close the picker without choosing
picker-completetab (in picker buffers)Put the current path in the picker’s query, to go on from there
picker-keyRun what the open picker does for the key pressed
picker-nextctrl-n, down (in picker buffers)Move to the next item in the picker
picker-prevctrl-p, up (in picker buffers)Move to the previous item in the picker
picker-resume' (after the leader)Open the last picker again
search-everywheren s (after the leader)Search your notes, mail and chat at once, as you type; in:mail, in:chat or in:notes picks some
watchesList what’s watched for changes; enter stops watching one

pipe

Pipe each selection through something and put back what comes out:

  |               ask what to pipe through
  :pipe TARGET    the same, from the command line

The target says what it is:

  sort -u                        a shell command, given the selection as input
  luau: snake_case               a Luau function (see pipe.define)
  model: use the new client API  a language model, in the pipe-model role

Every selection gets its own result, and they all go in as one change, so one undo takes them back. A model’s changes are an operation too, to review with space u o; each result lands in its place even if you edit while the model works.

Uses: core, models, operations.

CommandKeysWhat it does
append-outputalt-! (helix’s command mode)Insert what a shell command prints after each selection
insert-output! (helix’s command mode)Insert what a shell command prints before each selection
keep-pipe$ (helix’s command mode)Keep the selections a shell command succeeds on, given each as input
pipe| (helix’s command mode)Pipe each selection through a shell command, a Luau filter (luau: name) or a model (model: what to do)
pipe-toalt-| (helix’s command mode)Give each selection to a shell command as input, leaving the text as it is
OptionDefaultWhat it does
pipe-model-role"fast"The model role | model: ... asks; see :models

plan

A plan and decisions you share with agents, as notes in the project’s notes folder (.greed/notes, see the notes plugin), so they’re searched, linked and in the agenda like any note.

The plan (project:plan) is an agent’s checklist where you can see and change it: tick, reorder, add or delete items, and the agent reads what you did. An agent replaces the whole plan when it writes, giving the version it read, so it can’t write over changes you made since.

Decisions (project:decisions/*) are what you settled, kept across sessions: “use sqlite”, “never touch the generated code”. Ones an agent adds stay proposed until you accept them, and agents are told so, so an agent can’t make itself rules the next one follows.

Uses: core, agent, picker, notes.

CommandKeysWhat it does
decision-acceptAccept the proposed decision you’re in, so agents follow it
decision-newWrite down a decision for this project, kept for you and agents
decisionsPick a decision kept for this project to open it
planOpen the plan you share with agents, in the project’s notes

projects

Projects: space P lists, in one picker, the projects open here, the sessions running on this machine, recent projects, and the projects your sources find, each saying what enter does with it. A project gets a session of its own: enter switches to one open here or to its session, and starts a session for one that has none. alt-o opens it here instead, in this session, for work across projects; alt-enter starts a new session even when one is running for it, and alt-w goes to it in another window, this one staying where it is. A typed folder opens too.

Sources are folders to look in and commands that print paths:

    require("@projects").sources({
        -- every folder one level under these
        { dirs = { "~/Development", "~/Work" } },
        -- deeper, but only folders that look like projects
        { dirs = { "~/src" }, depth = 3, markers = { ".jj", ".git" } },
        -- any command that prints one path per line
        { command = { "zoxide", "query", "-l" } },
    })

Sources are looked at in the background, when the editor starts and each time the picker opens, and what they found last is kept, so the picker opens at once.

Uses: core, picker.

CommandKeysWhat it does
pick-projectP (after the leader)Go to a project: one open here, a running session, a recent one or one your sources find; or type a folder to open

prometheus

Prometheus in the shell: prom QUERY asks a Prometheus server (the prometheus-url option, or --url) and prints what it answers as rows, which the shell shows as a table and | chart draws.

  prom 'up'                              a row a series, as it is now
  prom 'rate(http_requests_total[5m])' | chart          bars of each
  watch -n 5 prom 'rate(http_requests_total[5m])' | chart
                                         a line a series, as it goes
  prom 'node_load1' --range 1h | chart    the last hour, a line a series

A series is named by its labels’ values, api/10.0.0.1:9100, or its metric’s name when it has none of its own.

Uses: shell.

OptionDefaultWhat it does
prometheus-url"http://localhost:9090"The Prometheus server prom asks, unless –url says

prose

Text objects for prose: select or move by sentence, paragraph and Markdown section.

  m i p / m a p   select the paragraph (a: with the blank lines after it)
  m i s / m a s   select the sentence (a: with the spaces after it)
  m i h / m a h   select the section under a heading (a: with the heading)
  ] p / [ p       next / previous paragraph
  ] s / [ s       next / previous sentence

Uses: core, markdown.

CommandKeysWhat it does
next-paragraph] p (every style’s command mode)Move to the start of the next paragraph
next-sentence] s (every style’s command mode)Move to the start of the next sentence
prev-paragraph[ p (every style’s command mode)Move to the start of the paragraph, or the one before
prev-sentence[ s (every style’s command mode)Move to the start of the sentence, or the one before
select-paragraphm i p (helix’s command mode)Select the paragraph
select-paragraph-aroundm a p (helix’s command mode)Select the paragraph and the blank lines after it
select-sectionm i h (helix’s command mode)Select the text under the Markdown heading
select-section-aroundm a h (helix’s command mode)Select the Markdown section, heading included
select-sentencem i s (helix’s command mode)Select the sentence
select-sentence-aroundm a s (helix’s command mode)Select the sentence and the spaces after it

restore

Session restore: a session remembers its projects, the files open in each and where the cursor was, and each project’s tabs: their panes, what those show, and the terminals in them (run again, unless what they ran is risky; then a shell). It opens them again when it starts, unless it was quit: then it starts clean, except with restore-after-quit or after an upgrade. Written down when it starts and quits and when a file is opened, closed or saved, per session name in the cache, so it only works for editors running as a session (which greed is, unless GREED_NO_SESSION is set).

Uses: core, panes.

OptionDefaultWhat it does
restore-after-quitfalseRestore a session when it starts again after it was quit, too
restore-sessiontrueOpen the files a session had open when it starts again after it ended without being quit, as in a crash or a restart

scene

Scenes: small vector drawings, as charts are made of, and how one looks drawn in a block of character cells, which every client shows. Lines and dots are braille, two by four dots a cell; filled shapes are eighth blocks, so a bar’s end falls between cells; text is text. Each cell takes the style of what was drawn in it last.

A scene’s coordinates are in cells, as numbers with fractions: (0, 0) is the top left, (cols, rows) the bottom right, y going down.

    local scene = require("@scene")
    local lines = scene.cells({
        alt = "cpu over the last minute",
        items = {
            { kind = "line", points = { { 0, 9 }, { 10, 2 } }, style = "chart.series.1" },
            { kind = "rect", at = { 12, 4 }, size = { 1, 6 }, fill = "chart.series.2" },
            { kind = "text", at = { 0, 0 }, text = "cpu", style = "chart.title" },
        },
    }, 40, 10)

Items are drawn in order: line (points, style), area (points down to base, fill), rect (at, size, fill, or style for its edges), dots (points, style), text (at, text, style, align “start”, “middle” or “end”) and group (items, clipped to clip, x0 y0 x1 y1). Kinds it doesn’t know are left out.

OptionDefaultWhat it does
scene-drawing"auto"How charts and other scenes show: auto (as an image where the terminal can draw one, else characters) or cells (characters everywhere)

service

Services: state that lives in one place, the session of its owner, shown and acted on from any session through views. The owner offers a service; a view uses it, in the owner’s session directly and elsewhere over the owner’s session socket, through greed mcp started for that session. Greed starts the owner’s session when a view needs it.

On the socket, as JSON-RPC: service/hello (which version the owner speaks, and its incarnation: an id that changes whenever it starts again), service/listen and service/ignore (topics), service/request, and the owner’s service/notify to views listening.

Uses: core, agent.

CommandKeysWhat it does
service-restartQuit a service’s session and start it again with this greed, as after an upgrade
OptionDefaultWhat it does
services-at-start""The services that start in the background when Greed starts, names with spaces between (like mail hoard chat); the others start when first used

setup

Setting Greed up: the first time you start it without a config, a page asks how you like to edit, which theme, whether your font has icons, whether to add Greed’s tools to the agents installed here, and which language model to use. The page is setup.md, a questionnaire in Markdown (see the markdown and blocks plugins): a style or theme picked switches at once, and Save writes a config from the answers and opens it, and has the model’s roles use the provider picked. :setup brings the page back any time.

tab and shift-tab go from choice to choice and button to button, enter (or space) or a click picks one or presses it, and esc or q closes it as “Not now”.

Uses: core, theme, models, markdown, blocks.

CommandKeysWhat it does
config-typesSet up type checking for your config: a .luaurc beside it that knows @greed and the plugins
setupAnswer a few questions to set Greed up: editing style, theme, icons, agents, a model
setup-closeClose the setup page without saving; :setup brings it back
setup-nextGo to the next choice or button on the setup page
setup-prevGo to the previous choice or button on the setup page
setup-saveSave the setup page’s answers as your config, and open it
OptionDefaultWhat it does
setup-first-starttrueShow the setup page the first time a terminal or window attaches without a config

shell

A shell in a buffer: type a command at the prompt at the bottom, enter runs it, and it becomes a block above: the command, what it printed, and how it ended. Blocks stay to read, search, fold, copy and run again.

  space o s   switch to a shell, or open one (:shell opens a new one)
  enter       run what's at the prompt; on a block, edit its command
  [ p  ] p    the block before or after the cursor
  g o         select the block's output
  ] e  [ e    the next or previous file:line the output names; enter opens it
  ctrl-c      interrupt the running block (vscode style: copy a selection)
  ctrl-t      type into the running block's program, in a terminal
  space r     run the block again, as it ran; space R here and now
  space y/Y   copy its output / its command
  space x     stop it; space v opens its whole output; space c clears

The shell runs cd, export, unset, env, history, clear, open and help itself; every other line goes to a real shell, yours (sh for an agent), whose cd and export carry over (fallback.luau). It runs in a pseudo terminal (pty.luau), handed to a terminal when a program wants one; an agent’s run through a pipe. Each shell has its own folder and variables, and a project can have several.

$3 | sort, buf:NAME | ..., @sel | ... and @file | ... send block 3’s output, a buffer, the selection or the file you’re in to a command, and ... > buf:NAME (>> adds) sends its output to a buffer (data.luau). Output that’s JSON is kept as a value on the block, and a table (kubectl get, docker ps, ps) as a table, which $3 | where ..., select and sort work on (tables.luau). / filters what a block shows, and space s sorts a table (rows.luau).

Agents run commands with shell_run and read blocks with shell_read (tools.luau).

Uses: core, picker, terminal.

CommandKeysWhat it does
pick-runningo w (after the leader)Pick among what runs in every shell, its output beside: enter opens it in a float, ctrl-o goes to it, ctrl-x stops it
pick-shello s (after the leader)Switch to a shell of this project, or open a new one
shellOpen a new shell: a buffer of commands and what they printed
shell-accept-or-endctrl-e, end (every style’s typing mode; in shell buffers)At the end of the prompt, take the rest of the command it suggests; elsewhere go to the end of the line
shell-accept-or-rightright (every style’s typing mode; in shell buffers)At the end of the prompt, take the rest of the command it suggests; elsewhere move right
shell-beforeb (blocks)Show what the block showed the run before this one
shell-besidev (blocks)Show the block in a pane beside, following it as it prints, with a filter of its own (/)
shell-blocksGo to blocks mode, to move between commands and act on them
shell-blocks-downdown, j (blocks)Down a step: the next row, or the next command
shell-blocks-filter/ (blocks)Filter the rows the command printed
shell-blocks-firstg (blocks)The first command
shell-blocks-keys? (blocks)List the keys of blocks mode
shell-blocks-lastG (blocks)The last command
shell-blocks-nextJ, ctrl-down (blocks)The next command, past its rows
shell-blocks-outh, left (blocks)Back out of the rows to the command
shell-blocks-previousK, ctrl-up (blocks)The command before
shell-blocks-prompta, esc, i (blocks)Go back to the prompt
shell-blocks-rerunr (blocks)Run the selected command again in its place, staying on it
shell-blocks-rowsl, right (blocks)Into the rows the command printed
shell-blocks-typeGo back to the prompt and type there what the key types; a key that types nothing does nothing
shell-blocks-upk, up (blocks)Up a step: the row before, or the command before
shell-changeC (after the leader; in shell buffers)Change the block’s command and run it in the block’s place, as a watch switching to show something else
shell-clearc (after the leader; in shell buffers)Take the finished blocks out of the shell
shell-copy-commandY (blocks, after the leader; in shell buffers)Copy the block’s command
shell-copy-or-interruptctrl-c (vscode’s typing mode; in shell buffers)Copy the selection, or with nothing selected interrupt the running block
shell-copy-outputy (blocks, after the leader; in shell buffers)Copy what the block printed
shell-diff-befored (blocks)Show what changed in the block since the run before
shell-drill-keepctrl-z (every style’s command mode, vscode’s typing mode; in shell buffers)Go back up from a level drilled down to, keeping its command running in the shell
shell-editPut the block’s command at the prompt, to change and run again
shell-enterenter (blocks, every style’s command mode, every style’s typing mode; in shell buffers)Run what’s at the prompt; on a block, put its command at the prompt to edit, or on a row that’s a file or a pod, open or describe it
shell-escesc (every style’s typing mode; in shell buffers)Leave the prompt: for blocks mode, or the style’s own mode with shell-blocks off
shell-filter/ (every style’s command mode; in shell buffers), ctrl-f (vscode’s typing mode; in shell buffers)Keep the lines of the block at the cursor with what’s typed in them (/ for a regex), or a table’s rows (COL=VALUE, COL~TEXT, COL>N); elsewhere, search
shell-handoffctrl-t (blocks, every style’s command mode, every style’s typing mode; in shell buffers)Show the running block’s program in a terminal, to type into it
shell-historyctrl-r (blocks, every style’s command mode, every style’s typing mode; in shell buffers)Pick a command typed before, in any shell, to put at the prompt
shell-history-backup (every style’s typing mode; in shell buffers)Put the command typed before at the prompt, one starting with what’s typed there
shell-history-forwarddown (every style’s typing mode; in shell buffers)Put the command typed after at the prompt, or back to what was typed
shell-interruptctrl-c (blocks, every style’s command mode, every style’s typing mode; in shell buffers), s (blocks)Interrupt the running block at the cursor, or the latest one, as ctrl-c does
shell-killx (after the leader; in shell buffers)Stop the running block at the cursor, or the latest one, for good
shell-lineRun a command line in this project’s shell, opening one if there’s none, as :!cmd does
shell-next-block] p (every style’s command mode; in shell buffers), ctrl-down (vscode’s typing mode; in shell buffers)Go to the block after the cursor, or the prompt
shell-next-reference] e (every style’s command mode; in shell buffers), f8 (vscode’s typing mode; in shell buffers)Go to the next file and line a block’s output names, like an error’s place; enter opens it
shell-notifySend a notification each time a watch’s rows change, saying how, while Greed isn’t focused; again to stop
shell-output-openo (blocks), v (after the leader; in shell buffers)Open the block’s whole output in a buffer of its own
shell-peekOpen the block in a float, to filter it, act on its rows or stop it, and close it again with esc
shell-prettyp (blocks)Show the block’s JSON lines readably (time, level and message first) or as they came
shell-prev-block[ p (every style’s command mode; in shell buffers), ctrl-up (vscode’s typing mode; in shell buffers)Go to the block before the cursor
shell-prev-reference[ e (every style’s command mode; in shell buffers), shift-f8 (vscode’s typing mode; in shell buffers)Go to the file and line a block’s output names before the cursor
shell-rerunr (after the leader; in shell buffers)Run the block’s command again, in the folder and with the variables it had
shell-rerun-hereR (after the leader; in shell buffers)Run the block’s command again in the shell’s folder now
shell-rerun-in-placeRun the block’s command again in its place, keeping what it showed before (b in blocks mode shows it)
shell-runRun what’s at the prompt
shell-select-outputg o (every style’s command mode; in shell buffers)Select the block’s output, to copy or search
shell-show-allS (after the leader; in shell buffers)Show the block at the cursor’s output as it came, without a filter or a sort
shell-sorts (after the leader; in shell buffers)Sort the table at the cursor by the column under it; again to reverse, a third time as it came
shell-unfilteresc (every style’s command mode; in shell buffers)Show every line, or row, of the filtered block at the cursor again, keeping its sort; in a block’s float, close it
OptionDefaultWhat it does
shell-agent-max-output30000How many bytes of a command’s output and of its errors the shell tools give an agent: the start and the end, with what’s between left out
shell-aliasestrueWhether a line can start with one of your shell’s aliases, read once from its startup files
shell-ask-role"fast"The model role a line ending or starting with ? asks for a command; see :models
shell-blockstrueIn the shell, esc and clicks in output go to blocks mode, to move between commands and rows and act on them
shell-completion-sources"cobra fish carapace man help"Where a shell completes a program’s arguments from, in order: cobra, fish, carapace, man, help
shell-completion-timeout2000Milliseconds a program asked for completions (kubectl, fish, carapace, –help) gets to answer
shell-confirm-lines5Running a prompt of more lines than this asks first, as after pasting a transcript
shell-editortrueWhether programs you run in a shell, like git commit, open files to edit in Greed: $EDITOR, $VISUAL, $GIT_EDITOR, $JJ_EDITOR and $KUBE_EDITOR are greed edit –wait
shell-environments"devenv direnv"Which environments a shell loads in folders that bring one, in order, the first that applies winning: devenv, direnv, and those plugins add; empty for none
shell-fallback""The shell that runs lines with pipes, globs and the like, e.g. “bash”; empty for your $SHELL (sh unless it’s sh, bash, zsh, dash, ksh, fish or nu)
shell-fallback-rcfalseWhether the shell running those lines reads its startup files (-i), for your aliases and functions
shell-fold-lines0A block that printed more lines than this folds as it ends, unless it failed; 0 never
shell-fold-olderfalseRunning a command folds the finished blocks above it, except those that failed
shell-fold-structured100JSON or YAML output of more lines than this shows its top keys folded as it ends, and inside a fold still this long, the keys under it; 0 never
shell-help-completion"on-flag"When a shell runs a program with –help to complete its flags: on-flag (when you press tab on one) or never
shell-help-never"reboot shutdown halt poweroff init telinit kill killall pkill"Programs a shell never runs with –help to complete their flags
shell-history-size5000How many commands typed at shells are kept
shell-icons"plain"The icons of a shell’s prompt segments: “plain” ones any font has, or “nerd” ones a Nerd Font has
shell-json-lines"pretty"How a block whose lines are JSON objects or logfmt, as many logs are, shows them: “pretty” (time, level and message first, the other fields after) or “raw”
shell-max-lines5000How many lines of a block’s output a shell shows: the first half and the latest half
shell-max-record8388608How many bytes of a block’s output its record keeps; the rest goes to a file in the cache folder
shell-production-contexts"prod"Patterns for kubernetes contexts a shell’s prompt warns about, like prod; space between them
shell-prompt"greed"What draws a shell’s prompt before its ❯: “greed” (its own segments and folder) or “starship” (your starship prompt, when starship is installed)
shell-suggestionstrueWhether a shell’s prompt suggests the rest of a command typed before, after the cursor
shell-watch-minutes60How long a shell’s watch runs before it stops by itself, in minutes; 0 for until it’s stopped

slides

Slides from a Markdown file. A --- line with a blank line above it starts the next slide (right under text, --- underlines a heading), and front matter at the top isn’t a slide. :slides (space m P) shows the slide the cursor is on in a float over the whole screen, a view of the file itself, so a block on a slide runs there and its result shows.

  right, space, l, pagedown   the next     left, backspace, h, pageup   the one before
  home, g            the first            end, G               the last
  r                  run the block the cursor is on (it lands on the first)
  q, esc             back to the file

A ```speaker block at the end of a slide is what you’d say there: it isn’t shown on the slide.

The slides are a talk, and every client can show it: :slides on another screen joins it, and :slides-presenter shows the slide with the notes, the next slide and the time beside it. Going to another slide on any of them goes there on all; q leaves one, and the talk ends with the last.

Uses: core, markdown, blocks.

CommandKeysWhat it does
slide-firstGo to the first slide, on every screen showing the slides
slide-lastGo to the last slide, on every screen showing the slides
slide-nextGo to the next slide, on every screen showing the slides
slide-prevGo to the slide before, on every screen showing the slides
slidesm P (after the leader)Show this Markdown file as slides, from the one the cursor is on, or join the slides another screen shows
slides-presenterShow the slides with their notes, the next slide and the time beside them, for whoever presents
slides-stopStop showing slides here and go back to the file; other screens go on
OptionDefaultWhat it does
slides-centerfalseCenter what’s on a slide, across and down: each heading, and the rest as one block
slides-margin2Cells left empty above and left of a slide
slides-scale1How many times bigger slides’ text is drawn, 1 to 4, in the window and in kitty, a big heading twice that; “fit” draws each slide as big as fits

snippets

Snippets of your own, in VS Code’s format: a JSON file per language in your snippets folder (snippets in your config’s folder) or a project’s (.greed/snippets), each snippet a name with a prefix to type, a body and a description:

    {
      "test": {
        "prefix": "test",
        "body": ["#[test]", "fn ${1:name}() {", "\t$0", "}"],
        "description": "A test function"
      }
    }

rust.json is for Rust, all.json for every language, and a .code-snippets file, as VS Code shares them, may give a snippet a “scope” (“rust,python”); without one it’s for every language. Snippets come up as you type their prefix, after what the language server offers; :snippet picks one by name, and :snippets-edit opens this language’s file. Saving a file reloads it.

Uses: core, picker.

CommandKeysWhat it does
snippetPick one of the snippets for this file’s language by name and put it in
snippets-editOpen your snippets for this file’s language, making the file if there’s none
OptionDefaultWhat it does
snippets-folder""Where your own snippets are; empty for the snippets folder in your config’s folder

statusline

The status line: on the left the mode, the tab, the file (or the latest message) and whether keys are being recorded; on the right the branch, problems, the language and its server, the editing style (dim), anything unusual about the file, how many selections there are, where the cursor is, the machine and the session. With the statusline-pills option some are pills, with rounded ends drawn in the theme’s colors, and with the effects option light goes through the tab or the file when you go to another, and the mode when it changes.

Add to it from your config, or take a piece away:

    local statusline = require("@statusline")
    statusline.add("right", "clock", function() return os.date("%H:%M") end)
    statusline.remove("host")

greed.statusline with a function of your own replaces it all; the last one set wins.

Uses: core.

CommandKeysWhat it does
messagesShow the last messages in full, newest last
OptionDefaultWhat it does
statusline-caps"round"The ends of status line pills: “round” (needs a Nerd Font) or “none”
statusline-pillsfalseShow the mode, tab, machine and session in the status line as pills in their colors

swatches

Colors written as #rrggbb (or #rgb, #rrggbbaa) get a small square in that color in front of them, in any file. A three-digit one needs a letter in it, so an issue number like #123 stays plain. :set color-swatches false turns them off.

Uses: core.

OptionDefaultWhat it does
color-swatchestrueShow a square in their color in front of colors like #ff8800

terminal

Terminals: a shell, or any program, in a buffer. :terminal [command] opens one in the main view and sends it every key; ctrl-\ goes back to the editing style’s mode, where the output is text to select, search and copy, and i or enter types into the program again.

The buffer holds the lines that scrolled off the top, then the screen. Output replaces the screen part and adds what scrolled off above it.

Uses: core, picker.

CommandKeysWhat it does
open-linkg x (in terminal buffers)Open the link under the cursor, or the file it names, at the line it says
pick-terminalt (after the leader)Switch to a terminal, or open a new one
tasko t (after the leader)Run a task, like the project’s build or tests, in a terminal that stays open; without a name, pick one
terminalOpen a terminal running a command, or your shell
terminal-closeEnd the terminal’s program and close it
terminal-escesc (terminal)Send esc to the terminal’s program; a second one quickly after stops typing into it
terminal-inputa, enter, i (in terminal buffers)Type into the terminal’s program
terminal-keySend the key to the terminal’s program
terminal-leaderctrl-space (terminal)Stop typing into the terminal and open the leader, for the keys after it
terminal-leavectrl-\ (terminal)Stop typing into the terminal, to move around its output
terminal-next-command] p (in terminal buffers)Go to the command after the cursor in a terminal, where its shell marks commands
terminal-next-reference] e (in terminal buffers)Go to the next file and line the output names, like an error’s place; g x opens it
terminal-pastep (in terminal buffers)Paste the latest copy into the terminal’s program
terminal-prev-command[ p (in terminal buffers)Go to the command before the cursor in a terminal, where its shell marks commands
terminal-prev-reference[ e (in terminal buffers)Go to the file and line the output names before the cursor
terminal-referencesd (after the leader; in terminal buffers)Pick from the files and lines the output names, like a compiler’s errors, to open one
terminal-select-outputg o (in terminal buffers)Select the output of the command at the cursor in a terminal, to copy or search
terminal-sendT (after the leader)Send the selection, the code block the cursor is in, or the cursor’s line, to the terminal you used last, and run it
OptionDefaultWhat it does
terminal-esc-waittrueHold esc a moment in terminals whose program draws on the normal screen, like Claude Code, so esc esc stops typing into it without the program getting an esc
terminal-notificationstrueWhether what a program in a terminal notifies (OSC 9, OSC 777) also goes to your desktop, as Greed’s own notifications do
terminal-scrollback10000How many lines that scrolled off a terminal’s screen are kept
terminal-shell""What a new terminal runs, e.g. “fish -l”; empty for your $SHELL
terminal-shell-integrationtrueWhether a terminal’s bash, zsh or fish gets the marks around prompts, commands and output and the folder it’s in, with nothing to set up

theme

Themes: what every style name looks like. Greed comes with the default (the terminal’s 16 colors) and the usual ones from other editors: Nord, Dracula, Catppuccin, Gruvbox, Tokyo Night, One Dark and more.

  :theme NAME   switch to a theme
  :theme        pick one, trying each as you move; esc goes back

The theme picked is remembered (in the cache folder) until you pick another. To set it from your config, or define your own:

    local theme = require("@theme")
    theme.use("nord")
    theme.define("mine", {
        palette = { bg = "#101418", ... },  -- see palette.luau
        styles = { comment = { fg = "#5c6773" } },
    })
    theme.define("nord-bold", { inherits = "nord", styles = { keyword = { bold = true } } })

A theme is the base under greed.theme.set: entries set that way, from your config or a plugin, stay on top whichever theme is in use.

Uses: picker, cmdline.

CommandKeysWhat it does
themectrl-k ctrl-t (vscode)Switch to a theme, or pick one trying each as you move

todo-comments

TODO, FIXME and their kind stand out in comments: TODO, HACK and XXX in one color, FIXME and BUG in another, NOTE in a third. Only in comments, by the syntax tree where the language has one (by its comment marker where it doesn’t), so a string saying “TODO” stays as it is. :todo-comments lists them across the project. :set todo-comments false stops picking them out.

Change the words and their styles from your config:

    require("@todo-comments").words.PERF = "comment.note"

Uses: core, picker.

CommandKeysWhat it does
todo-commentsList the TODO, FIXME and like comments in the project’s files
OptionDefaultWhat it does
todo-commentstruePick out TODO, FIXME and the like in comments

tree

A file tree in a side panel. space e opens it (or moves to it, or closes it if you’re in it). In the tree: enter or l opens a file or folds a folder, h folds the folder you’re in, r reads the disk again, q closes; a makes a file (or a folder, ending in /), R renames, d deletes (to the trash, where there is one); e shows the folder on the cursor as a buffer to edit many names at once (the folders plugin). Hidden and ignored files are left out, like in the file picker.

It’s only a plugin: to turn it off, greed.plugin.unload("tree") from your config.

Uses: core.

CommandKeysWhat it does
treee (after the leader)Open the file tree, move to it, or close it if you’re in it
tree-adda (in tree buffers)Make a file in the folder on the cursor, or a folder with a / at the end
tree-closeClose the file tree
tree-deleted (in tree buffers)Delete the file or folder on the cursor, after you press y
tree-edite (in tree buffers)Show the folder on the cursor, or the one its file is in, as a buffer to edit its files’ names
tree-foldh (in tree buffers)Fold the folder on the cursor, or the one it’s in
tree-openenter, l (in tree buffers)Open the file on the cursor, or fold or unfold the folder
tree-refreshr (in tree buffers)Read the tree from the disk again
tree-renameR (in tree buffers)Rename or move the file or folder on the cursor; open files go along
OptionDefaultWhat it does
tree-icons"none"Icons by the names in the file tree: “none”, or “nerd” for a Nerd Font’s

tutor

The tutor: :tutor opens tutor.md, a page to read and edit with the keys of your editing style. It asks which style first, switches to the one picked, and shows each lesson’s keys for it, with <!-- if style=... --> parts (see the markdown plugin’s questions).

A lesson’s exercise is a practice block followed by a want block, the text it should become. The tutor hides the want block and marks the practice block done once its text matches. The want block’s options give each style’s keys for it (vim="w d w"); the tests press them, so the keys the page teaches are known to work.

Uses: core, markdown, blocks.

CommandKeysWhat it does
tutorLearn to edit with your editing style’s keys, and get around Greed

undo-tree

The undo tree, like Emacs’s vundo: every state the text has been in, the branches an undo followed by an edit left behind included. space u t shows it; moving up and down takes the text to that state as you go, enter keeps it, and esc goes back to where you were.

  ○ 0  loaded
  ○ 1  3m
  │ ○ 2  2m        a branch left behind
  ● 3  now         where the text is

The newest branch of each state carries on below it; older ones are indented under it.

Uses: core.

CommandKeysWhat it does
undo-treeu t (after the leader)Show every state the file has been in, branches included, and go to one
undo-tree-cancelesc (in undo-tree buffers)Close the undo tree and put the text back as it was
undo-tree-downdown, j (in undo-tree buffers)Go to the next state down the undo tree
undo-tree-keepenter, q (in undo-tree buffers)Close the undo tree, keeping the text as it is
undo-tree-upk, up (in undo-tree buffers)Go to the next state up the undo tree

vcs

Version control: signs beside lines added (+), changed (~) and removed (-) since the last commit, with jj, or git where there’s no .jj.

  ] g / [ g   next / previous change; ] G / [ G the last and first
  m i g       the change under the cursor; m a g its lines
  space g r   put the change under the cursor back the way it was
  space g b   who last changed this line, and when
  space g s   every change since the last commit, in one multibuffer
  space u c   commit just the latest operation's files, named after it
  space g a   stage the change under the cursor (git)
  space g S   what's staged (git), to unstage hunks and commit

With jj the comparison is with the working copy’s parent (@-), so the signs show what the change you’re working on does to the file. With git it’s with what’s staged, so staged changes lose their signs.

In a shell, the rows of git status, git log, jj st and jj log are changed files, commits and revisions to act on.

Uses: core, agent, multibuffer, operations, picker, statusline, shell.

CommandKeysWhat it does
blame-lineg b (after the leader)Show who last changed the line under the cursor, and when
change-diff-closeq (in change-diff buffers)Go back to the change stack
change-stackg l (after the leader)Show the changes from the last pushed one to the working copy, to describe, squash, move or abandon
change-stack-abandona (in change-stack buffers)Abandon it, after asking
change-stack-closeq (in change-stack buffers)Close the stack and go back to what was shown before
change-stack-described (in change-stack buffers)Describe the change
change-stack-downalt-j (in change-stack buffers)Move it below the change below it
change-stack-edite (in change-stack buffers)Make it the working copy, to edit it
change-stack-menu? (in change-stack buffers)List the change stack’s keys and pick one
change-stack-newn (in change-stack buffers)Start a new change on top of it
change-stack-refreshr (in change-stack buffers)Read the stack again
change-stack-showenter (in change-stack buffers)Show the change’s diff
change-stack-splitS (in change-stack buffers)Split it: pick the hunks that go in a change of their own before it
change-stack-squashs (in change-stack buffers)Squash it into its parent, keeping the parent’s description
change-stack-undou (in change-stack buffers)Undo the last jj operation
change-stack-upalt-k (in change-stack buffers)Move it above the change above it
changesg s (after the leader)Show every change since the last commit in one buffer, to read, edit or put back
first-change[ G (every style’s command mode)Go to the first change since the last commit
hunk-picker-alla (in hunk-picker buffers)Pick every hunk, or none if all are picked
hunk-picker-cancelesc, q (in hunk-picker buffers)Put back what was shown, picking nothing
hunk-picker-doneenter (in hunk-picker buffers)Go on with the hunks picked
hunk-picker-togglespace (in hunk-picker buffers)Pick the hunk under the cursor, or put it back, and go to the next
last-change] G (every style’s command mode)Go to the last change since the last commit
next-change] g (every style’s command mode)Go to the next change since the last commit
operation-commitu c (after the leader)Save the files of the latest operation (or the one being reviewed) and commit just them, named after it
pick-changed-fileg g (after the leader)Open a file changed since the last commit
prev-change[ g (every style’s command mode)Go to the previous change since the last commit
revert-changeg r (after the leader)Put the change under the cursor back the way it was at the last commit
select-around-changem a g (helix’s command mode)Select the lines of the change since the last commit under the cursor
select-inside-changem i g (helix’s command mode)Select the text of the change since the last commit under the cursor
stage-changeg a (after the leader)Stage the change under the cursor for the next git commit, leaving the rest
stagedg S (after the leader)Show what’s staged for the next git commit, to unstage hunks or commit
staged-commitc (in staged-diff buffers)Commit what’s staged
staged-refreshr (in staged-diff buffers)Read what’s staged again
staged-unstageu (in staged-diff buffers)Unstage the hunk under the cursor
why-linesg w (after the leader)Show how the selected lines came to be: each change that made them, with its description and diff
OptionDefaultWhat it does
vcs-signstrueShow signs beside lines changed since the last commit

versions

When Greed would show a session that another version of Greed runs, the two can’t work together. Greed then runs a Greed of its own for this page, in the terminal or the window you started, which says so and asks what to do: end that session and start one of this version, open it with the version it runs, to save your work first, or start one beside it. Greed does what’s picked once the page closes.

  1 2 3       pick that choice
  enter       press the button under the cursor; tab goes to the next
  esc, q      cancel

Uses: core, markdown, blocks.

CommandKeysWhat it does
versions-1Pick choice 1 on the page about another version of Greed
versions-2Pick choice 2 on the page about another version of Greed
versions-3Pick choice 3 on the page about another version of Greed
versions-cancelLeave the session another version of Greed runs as it is, and stop
versions-nextGo to the next button on the page about another version of Greed

vim

Vim-style editing, written only against the plugin API. It has modes of its own (vim, vim-insert, vim-replace and the three visual modes), beside Helix’s, and says which plays each role: keys other plugins bind for the command role (the language server’s, the next change) and the leader (space) work here as in every style.

Switch to it with :style vim, or put this in ~/.config/greed/init.luau:

    require("@greed").option.set("editing-style", "vim")

It reads in this order: common.luau, text helpers; motions.luau, the motions (one table, each saying how an operator takes its range) and marks; objects.luau, ranges and text objects; operators.luau, operators applied through apply and the line and case tables; visual.luau, the visual modes (block mode keeps a selection per line), with the commands for motions and operators; then this file, with insert, replace, the change list and U; keys.luau last. Ex commands (:s, :g, ranges) are the command line plugin’s, and . is core’s.

Uses: core.

CommandKeysWhat it does
vim-appenda (vim)Insert after the cursor
vim-append-line-endA (vim)Insert at the end of the line
vim-block-appendA (vim-visual-block)Type after the block on each of its lines
vim-block-insertI (vim-visual-block)Type before the block on each of its lines
vim-change-lineS (vim)Change the whole line
vim-change-newerg , (vim)Go to a newer place in the change list
vim-change-olderg ; (vim)Go to an older place in the change list
vim-change-to-endC (vim)Change to the end of the line
vim-command-line: (vim, vim-visual)Open the command line, with the selected lines (or the count’s) as its range
vim-decrementctrl-x (vim)Subtract the count (or 1) from the number at or after the cursor
vim-delete-charx (vim)Delete the character under the cursor
vim-delete-char-beforeX (vim)Delete the character before the cursor
vim-delete-to-endD (vim)Delete to the end of the line
vim-expand-selectionalt-o (vim, vim-visual)Select the syntax node around the cursor or selection, in visual mode
vim-incrementctrl-a (vim)Add the count (or 1) to the number at or after the cursor
vim-inserti (vim)Insert before the cursor
vim-insert-lastg i (vim)Insert where insert mode was last left
vim-insert-line-startI (vim)Insert at the first non-blank of the line
vim-insert-onectrl-o (vim-insert)Run one normal mode command, then go on typing
vim-joinJ (vim)Join the next line onto this one, with one space
vim-join-rawg J (vim)Join the next line onto this one as it is
vim-jump-to-wordg s (vim)Label every word on screen and jump to the one typed
vim-macroq (vim)Record a macro into the register typed next, or stop recording
vim-markm (vim)Set the mark typed next (a to z here, A to Z across files) at the cursor
vim-motion-$$ (vim, vim-visual)Vim motion $
vim-motion-%% (vim, vim-visual)Vim motion %
vim-motion-'' (vim, vim-visual)Vim motion ’
vim-motion-(( (vim, vim-visual)Vim motion (
vim-motion-)) (vim, vim-visual)Vim motion )
vim-motion-++ (vim, vim-visual)Vim motion +
vim-motion-,, (vim, vim-visual)Vim motion ,
vim-motion--- (vim, vim-visual)Vim motion -
vim-motion-00 (vim, vim-visual)Vim motion 0
vim-motion-;; (vim, vim-visual)Vim motion ;
vim-motion-BB (vim, vim-visual)Vim motion B
vim-motion-EE (vim, vim-visual)Vim motion E
vim-motion-FF (vim, vim-visual)Vim motion F
vim-motion-GG (vim, vim-visual)Vim motion G
vim-motion-HH (vim, vim-visual)Vim motion H
vim-motion-LL (vim, vim-visual)Vim motion L
vim-motion-MM (vim, vim-visual)Vim motion M
vim-motion-TT (vim, vim-visual)Vim motion T
vim-motion-WW (vim, vim-visual)Vim motion W
vim-motion-^^ (vim, vim-visual)Vim motion ^
vim-motion-__ (vim, vim-visual)Vim motion _
`vim-motion-````` (vim, vim-visual)Vim motion `
vim-motion-bb (vim, vim-visual)Vim motion b
vim-motion-ee (vim, vim-visual)Vim motion e
vim-motion-ff (vim, vim-visual)Vim motion f
vim-motion-gEg E (vim, vim-visual)Vim motion g E
vim-motion-g_g _ (vim, vim-visual)Vim motion g _
vim-motion-geg e (vim, vim-visual)Vim motion g e
vim-motion-ggg g (vim, vim-visual)Vim motion g g
vim-motion-hh (vim, vim-visual)Vim motion h
vim-motion-jj (vim, vim-visual)Vim motion j
vim-motion-kk (vim, vim-visual)Vim motion k
vim-motion-ll (vim, vim-visual)Vim motion l
vim-motion-tt (vim, vim-visual)Vim motion t
vim-motion-ww (vim, vim-visual)Vim motion w
vim-motion-{{ (vim, vim-visual)Vim motion {
`vim-motion-`| (vim, vim-visual)
vim-motion-}} (vim, vim-visual)Vim motion }
vim-multi-appendA, a (vim-multi)Type after every selection
vim-multi-backctrl-p (vim-multi)Drop the match added last
vim-multi-changec, s (vim-multi)Delete every selection and type in each place
vim-multi-copyy (vim-multi)Copy every selection
vim-multi-deleted, x (vim-multi)Delete every selection
vim-multi-insertI, i (vim-multi)Type before every selection
vim-multi-nextctrl-n (vim, vim-multi)Select the word under the cursor, or add its next match
vim-multi-skipctrl-x (vim-multi)Drop this match and add the next one instead
vim-normalesc (vim-insert, vim-multi, vim-visual), V, v (vim-visual), ctrl-v (vim-visual-block)Back to normal mode
vim-open-aboveO (vim)Open a line above and insert
vim-open-belowo (vim)Open a line below and insert
vim-operator-!! (vim, vim-visual)Vim operator !, followed by a motion
vim-operator-<< (vim, vim-visual)Vim operator <, followed by a motion
vim-operator-== (vim, vim-visual)Vim operator =, followed by a motion
vim-operator->> (vim, vim-visual)Vim operator >, followed by a motion
vim-operator-cc (vim, vim-visual)Vim operator c, followed by a motion
vim-operator-dd (vim, vim-visual), x (vim-visual)Vim operator d, followed by a motion
vim-operator-g?g ? (vim, vim-visual)Vim operator g?, followed by a motion
vim-operator-gUg U (vim), U (vim-visual)Vim operator gU, followed by a motion
vim-operator-gcg c (vim, vim-visual)Vim operator gc, followed by a motion
vim-operator-gqg q (vim, vim-visual)Vim operator gq, followed by a motion
vim-operator-gug u (vim), u (vim-visual)Vim operator gu, followed by a motion
vim-operator-gwg w (vim)Vim operator gw, followed by a motion
vim-operator-g~g ~ (vim, vim-visual), ~ (vim-visual)Vim operator g~, followed by a motion
vim-operator-yy (vim, vim-visual)Vim operator y, followed by a motion
vim-operator-zfz f (vim, vim-visual)Vim operator zf, followed by a motion
vim-paste-afterp (vim)Paste after the cursor, or below the line
vim-paste-beforeP (vim)Paste before the cursor, or above the line
vim-play-macro@ (vim)Play the macro in the register typed next; @@ plays the last one again
vim-quit-unsavedZ Q (vim)Close without saving (ZQ)
vim-redoctrl-r (vim)Redo
vim-replace-backbackspace (vim-replace)Put back the character typed over last, or move left
vim-replace-charr (vim)Replace the character under the cursor with the next one typed
vim-replace-modeR (vim)Type over the text
vim-replace-typedType over the character under the cursor
vim-reselectg v (vim)Select the last visual selection again
vim-search-word* (vim)Search for the word under the cursor
vim-search-word-back# (vim)Search for the word under the cursor
vim-select-matchg n (vim)Select the search match under the cursor, or the next one
vim-shrink-selectionalt-i (vim, vim-visual)Shrink the selection back, or to the first syntax node inside it
vim-substitutes (vim)Change the character under the cursor
vim-switch-case~ (vim)Switch the case of the character under the cursor and move on
vim-undou (vim)Undo
vim-undo-lineU (vim)Put back the line last changed as it was before (U)
vim-visualv (vim)Select characters, starting here
vim-visual-arounda (vim-visual)Select around the text object typed next
vim-visual-blockctrl-v (vim, vim-visual)Select a block of columns across lines
vim-visual-insidei (vim-visual)Select inside the text object typed next
vim-visual-joinJ (vim-visual)Join the selected lines, with one space
vim-visual-lineV (vim)Select whole lines, starting with this one
vim-visual-pasteP, p (vim-visual)Replace the selection with what’s in the register
vim-visual-replacer (vim-visual)Replace every selected character with the next one typed
vim-visual-surroundS (vim-visual)Wrap the selection in the pair typed next
vim-visual-swapo (vim-visual)Go to the other end of the selection

vscode

The vscode style: no modes, VS Code’s keys. Typing inserts text (replacing any selection), arrows move, shift and the arrows select, and the usual ctrl shortcuts do the usual things. The editing itself is core’s (core/modeless.luau), shared with any other style without modes; this plugin gives it VS Code’s keys.

Switch to it with :style vscode, or to use it all the time, put this in ~/.config/greed/init.luau:

    require("@greed").option.set("editing-style", "vscode")

Uses: core, picker.

watch

Watchers: Greed’s own agent with a standing job, set up in your config, keeping an eye on chat rooms, mentions and direct messages. It wakes on new messages that match, a few at once, and escalates to you, drafts a reply for you to send, or replies on its own where you allowed it.

    local watch = require("@watch")
    watch.add({
        name = "work",
        prompt = "Escalate anything about outages; draft answers to questions for me.",
        watch = { chat = { rooms = { "infra" }, mentions = true, dms = true } },
        may = { reply = "draft", escalate = true },
    })

A watcher runs where what it watches is kept, in the chat session, and only there; it starts with it. A new one starts in quarantine: it reads and decides, and logs what it would have done, but sends and drafts nothing, until :watcher-release. :watchers lists them, each an object to pause, turn off, run now, or read the log of.

Uses: core, picker, chat, acp, agent.

CommandKeysWhat it does
watcher-draftsThe replies watchers drafted: pick one to send, change or drop
watcher-logShow a watcher’s log
watcher-offTurn a watcher off, across restarts
watcher-onTurn a watcher on, out of quarantine
watcher-pausePause a watcher, for an hour or as long as you say (30m, 2h)
watcher-quarantinePut a watcher back in quarantine: it reads and logs only
watcher-releaseLet a watcher out of quarantine (turn it on)
watcher-resumeResume a paused or stopped watcher
watcher-runWake a watcher now on what’s waiting
watcher-signSign what a watcher sends on its own with a text, or off
watchersYour watchers: their state; pick one to pause, turn off, run now or read its log
watchers-pausePause every watcher for an hour, or as long as you say (30m, 2h)