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.
| Command | Keys | What it does |
|---|---|---|
agent | Show the latest agent session, or start one when none runs | |
agent-answer | alt-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-auto | alt-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-box | Show 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-click | Answer the agent’s question with the choice under the cursor | |
agent-choice-key | Answer the agent’s question with the choice of the key pressed | |
agent-choice-next | Highlight the next choice of the agent’s question | |
agent-choice-pick | Answer the agent’s question with the highlighted choice | |
agent-choice-prev | Highlight the previous choice of the agent’s question | |
agent-choice-reject | Reject the agent’s question; what’s in the box goes with it, as what to do instead | |
agent-code-ask | Ask the agent to run the shell code block at the cursor itself | |
agent-code-copy | Copy the shell code block at the cursor | |
agent-code-prompt | Put 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-run | Run 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-compact | Compact the conversation with Greed’s own agent: the model summarises all but the last few turns | |
agent-complete | tab (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-stop | ctrl-c (vscode’s typing mode; in agent-transcript buffers) | Copy the selection, or with nothing selected stop the agent’s turn |
agent-drop-images | alt-x (in agent-transcript buffers) | Drop the images pasted for your next message to the agent |
agent-effort | How hard the model of Greed’s own agent thinks in this session: none, low, medium, high or max; without one, pick it | |
agent-float-close | esc, 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-fold | tab (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-fork | f (in agents buffers) | Fork the agent: a new session that starts with everything said so far |
agent-history-back | up (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-forward | down (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-list | esc, 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-mode | alt-m (in agent-transcript buffers) | Pick the mode the agent works in, like plan or accept edits, or switch to the one named |
agent-model | alt-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-move | i 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-new | n (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-resume | The same as agent-list | |
agent-resume-pick | Pick a saved session of this project and take it up here, as /resume in a transcript does | |
agent-row-down | alt-down (in agent-transcript buffers) | In a transcript, highlight the row below; from the newest, back to the box |
agent-row-drop | Drop the highlight from a transcript’s row, back to the box | |
agent-row-up | alt-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-send | alt-enter (in agent-transcript buffers) | Send what’s in the transcript’s box to its agent |
agent-show-float | w (in agents buffers) | Show the session (the transcript’s, or those chosen in the list) in a floating view |
agent-show-pane | p (in agents buffers) | Show the session (the transcript’s, or those chosen in the list) in a pane of the tab |
agent-show-panel | s (in agents buffers) | Show the session (the transcript’s, or those chosen in the list) in a panel on the right |
agent-show-tab | t (in agents buffers) | Show the session (the transcript’s, or those chosen in the list) in a tab of its own |
agent-stop | ctrl-c (in agent-transcript, agents buffers) | Stop the agent’s turn |
agent-toggle-thoughts | Show or hide what agents think in their transcripts (the agent-thoughts option) | |
agents | The same as agent-list | |
agents-bring | b (in agents buffers) | Bring what the agent under the cursor changed into your working copy |
agents-close | x (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-diff | d (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-mark | m (in agents buffers) | Mark the session under the cursor in the list, or unmark it, to act on several |
agents-resume | r (in agents buffers) | Take up the sessions marked in the list, or the one under the cursor, without showing them |
agents-resume-here | h (in agents buffers) | Take up Greed’s own sessions marked in the list, or the one under the cursor, in this workspace |
agents-review | R (in agents buffers) | Review what the agent under the cursor changed as proposals on your files |
agents-show | enter (in agents buffers) | Show the sessions marked in the list, or the one under the cursor, taking them up if they’re kept |
claude-workspace | i 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-check | Try the decision model auto mode uses on commands it should and shouldn’t let agents run, and show what it would do with each | |
research | Research a question on the web: a helper agent searches and reads pages, its transcript open, and ends with a report with sources |
| Option | Default | What it does |
|---|---|---|
agent-auto | false | Start 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-at | 0 | Compact conversations with Greed’s own agent once they reach this many tokens; 0 waits until they near the model’s limit |
agent-editor-context | true | Send agents the file you’re in, the cursor, the selection and the other files on screen with each message |
agent-greed-tools | true | Give 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-thought | 8000 | Stop 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-tokens | 0 | Stop Greed’s own agent once a session has read and written this many tokens, every request counted; 0 sets no limit |
agent-max-turns | 0 | Stop 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-title | true | Whether a panel or float showing an agent has the agent’s name as its title |
agent-sessions-kept | 50 | How many sessions with Greed’s own agent are kept per repository to take up again; older ones are deleted |
agent-thoughts | true | Show 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-edits | true | Let 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.
| Command | Keys | What it does |
|---|---|---|
ask-cancel | Answer none of these questions, telling the agent you didn’t | |
ask-enter | On 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-send | Send your answers to the agent that asked these questions | |
claude | i C (after the leader) | Go to the Claude Code pane, or open one |
eval-allow-session | Let the agent’s code run, and every run until its session ends | |
eval-deny | Don’t let the agent’s code run | |
eval-log | Show each run of an agent’s code past the sandbox, with who let it | |
eval-run | Let the agent’s code run, this once | |
ide-mention | o m (after the leader) | Mention the selected lines to Claude Code, like @file#L1-5 |
memory-edit | Open your personal memories: standing preferences agents follow | |
memory-edit-project | Open your private memories of this project, the same in all its workspaces | |
memory-edit-shared | Open this project’s shared memories, .greed/memory.md in the repository | |
plugin-review-accept | a (in plugin-review buffers) | Install, approve and load the plugin under review |
plugin-review-reject | esc, q, r (in plugin-review buffers) | Reject the plugin under review |
proposal-accept | o a (after the leader) | Accept the proposed changes your selections touch |
proposal-accept-all | o A (after the leader) | Accept the whole of the proposals in this file, in every file they change |
proposal-compare | o 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-note | o n (after the leader) | Reject the proposed changes your selections touch, telling the agent what to do instead |
proposal-note-all | o 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-reject | o r (after the leader) | Reject the proposed changes your selections touch |
proposal-reject-all | o R (after the leader) | Reject the whole of the proposals in this file, in every file they change |
proposals | o o (after the leader) | Pick a proposal to review: each agent’s change, with every file it changes |
repo-map | Show the repo map agents get: the functions and types that matter most, ranked toward the open files | |
working-set | Show the files you’ve been working in lately, the way agents see them |
| Option | Default | What 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-only | false | Agents’ 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.
| Command | Keys | What it does |
|---|---|---|
plugin-reload | Load a plugin again from its folder, as after changing its code | |
plugins | List the plugins, where each comes from and what it may use; enter opens one | |
plugins-approve | Review 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.
| Command | Keys | What it does |
|---|---|---|
ask-about | i a (after the leader) | Ask a language model something about the selection (or the line) |
assist-close | q (in answer, commit-message buffers) | Close the answer panel |
commit-message | i c (after the leader) | Draft a description of the changes in progress, from their diff |
commit-message-apply | a (in commit-message buffers) | Use the drafted description: jj describe, or a git commit of what’s staged |
explain | i e (after the leader) | Explain the selection (or the line), in a panel as the answer arrives |
fix | i f (after the leader) | Ask a language model to fix the problem under the cursor, as changes to review |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
block-result-clear | m c (after the leader) | Remove the result under the code block at the cursor |
block-run | m r (after the leader) | Run the code block under the cursor and save its output in a result block under it |
block-shell | Put 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-stop | m s (after the leader) | Stop the code block running under the cursor |
block-terminal-keep | Keep what the terminal block under the cursor shows as its result, saved with the file | |
block-terminal-key | Send the key to the program in the terminal block being typed into | |
block-terminal-leave | ctrl-\ (terminal-block) | Stop typing into the terminal block |
block-terminal-type | Type into the terminal block under the cursor, starting it if it isn’t running; ctrl-\ stops | |
blocks-check | m 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-clear | Remove every code block’s result in the file | |
blocks-run-all | m 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-trust | Always let this file’s code blocks run, without asking | |
blocks-untrust | Ask again before this file’s code blocks run | |
markdown-run | Press the command button at the cursor, label in Markdown |
| Option | Default | What it does |
|---|---|---|
blocks-max-lines | 1000 | The most lines of output a block’s result keeps; the rest is cut |
blocks-stream | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
board | Open a board: live shell commands, saved by name; pick one without a name | |
board-add | a (after the leader; in board buffers) | Add a command to this board as a card |
board-edit | e (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-new | Make a board in this project, or with ! one of your own, and open it | |
board-open-card | enter (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-refresh | r (after the leader; in board buffers) | Run this board’s cards again |
| Option | Default | What it does |
|---|---|---|
board-card-width | 50 | How 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.
| Option | Default | What it does |
|---|---|---|
chart-height | 12 | How 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.
| Command | Keys | What it does |
|---|---|---|
chat | M 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-alerted | Go to the room of the latest chat alert | |
chat-attach | In a room: send a file, picked by its path | |
chat-close | In a room: stop answering or changing; else back to the room from a thread, or to the list | |
chat-commands | alt-/ (every style’s typing mode; in chat-room buffers) | In a room: pick one of the service’s commands (Mattermost) into the box |
chat-delete | alt-d (in chat-room buffers) | In a room: delete the message under the cursor, asking first |
chat-edit | alt-e (in chat-room buffers) | In a room: change your message under the cursor |
chat-encryption | How a Matrix account’s encryption stands; sets a recovery key up where there’s none | |
chat-enter | enter (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-go | alt-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-link | Finish signing in with the link the browser ended on (what greed link hands over) | |
chat-login | Sign in to a Matrix or Mattermost server | |
chat-logout | Sign out of a chat account, and forget it | |
chat-newline | alt-enter (every style’s typing mode; in chat-room buffers) | In a room’s box: start a new line |
chat-older | alt-up (in chat-room buffers) | In a room: fetch older messages |
chat-open | enter (in chat buffers) | In the list of rooms: open the room under the cursor, answer its invite, or offer a space’s rooms |
chat-press | alt-b (in chat-room buffers) | In a room: press a button in the message under the cursor, or pick from its menu |
chat-react | alt-k (in chat-room buffers) | In a room: react to the message under the cursor, or take your reaction back |
chat-recover | Unlock a Matrix account’s keys with its recovery key, so older messages decrypt | |
chat-reply | alt-r (in chat-room buffers) | In a room: answer the message under the cursor with what’s sent next |
chat-room-1 | alt-1 (in chat-room buffers) | In a room: room 1 of the bar over it |
chat-room-2 | alt-2 (in chat-room buffers) | In a room: room 2 of the bar over it |
chat-room-3 | alt-3 (in chat-room buffers) | In a room: room 3 of the bar over it |
chat-room-4 | alt-4 (in chat-room buffers) | In a room: room 4 of the bar over it |
chat-room-5 | alt-5 (in chat-room buffers) | In a room: room 5 of the bar over it |
chat-room-6 | alt-6 (in chat-room buffers) | In a room: room 6 of the bar over it |
chat-room-7 | alt-7 (in chat-room buffers) | In a room: room 7 of the bar over it |
chat-room-8 | alt-8 (in chat-room buffers) | In a room: room 8 of the bar over it |
chat-room-9 | alt-9 (in chat-room buffers) | In a room: room 9 of the bar over it |
chat-room-next | tab (every style’s command mode; in chat-room buffers) | In a room: the next room in the bar over it |
chat-room-previous | shift-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-send | enter (every style’s typing mode; in chat-room buffers) | In a room: send what’s written in its box |
chat-session | Go to the chat session, starting it if it isn’t running | |
chat-sidebar | Your rooms and channels as a sidebar on the left, rooms opening beside it | |
chat-thread | alt-t (in chat-room buffers) | In a room: open the thread of the message under the cursor |
chat-verify | Verify this device against another of yours (a phone, Element) by comparing emoji | |
chat-write | M w (after the leader) | Write to someone: find them by name and open your direct messages, starting them if needed |
| Option | Default | What it does |
|---|---|---|
chat-alerts | "mentions" | Which new messages tell you: mentions and direct messages, all the service notifies of, or none |
chat-alerts-desktop | false | Show 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-previews | true | Show what links in chat messages lead to, under them, where the service can say |
chat-search-days | 90 | How 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.
| Command | Keys | What 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-close | ctrl-c, esc (in cmdline buffers) | Close the command line without running anything |
command-line-newer | ctrl-n, down (in cmdline buffers) | Show the next command line that starts with what’s typed |
command-line-next | tab (in cmdline buffers) | Fill in the next match on the command line |
command-line-older | ctrl-p, up (in cmdline buffers) | Show the previous command line that starts with what’s typed |
command-line-prev | shift-tab (in cmdline buffers) | Fill in the previous match on the command line |
command-line-run | enter (in cmdline buffers) | Run what’s typed on the command line |
copy-lines | Copy the selected lines below a line, 0 for the top (:t) | |
delete-lines | Delete the selected lines, copying them (:d) | |
eval-selection | l e (after the leader) | Run the selected Luau, or the line, and show what it returns at the end of it |
get-option | Show an option’s value | |
move-lines | Move the selected lines below a line, 0 for the top (:m) | |
normal | Type keys in normal mode on each selected line (:norm) | |
set | Set an option: NAME VALUE; for a yes-or-no one, NAME, noNAME or NAME! as in Vim; NAME? shows it | |
sort-lines | Sort the selected lines (:sort): ! reverses, u keeps one of each, i ignores case, n sorts by the first number | |
substitute | Replace a regex with text on the selected lines (:s/regex/text/flags) | |
toggle-option | Turn a yes-or-no option on or off | |
yank-lines | Copy the selected lines (:y) |
| Option | Default | What it does |
|---|---|---|
substitute-preview | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
context | i i (after the leader) | Show what’s pinned for models and agents, with sizes; d drops an item |
context-add | i 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-diff | Pin the changes in progress to the context | |
context-add-problems | Pin this file’s problems to the context | |
context-clear | Drop everything pinned to the context | |
context-close | esc, q (in context buffers) | Close the context list |
context-drop | d (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.
| Command | Keys | What 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-bottom | z b (helix, vim), b (view) | Scroll so the cursor’s line is at the bottom of the screen |
align-view-top | z t (helix, vim), t (view) | Scroll so the cursor’s line is at the top of the screen |
append-line-end | A (helix) | Insert at the end of each line |
append-mode | a (helix) | Insert after each selection |
back | esc, 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-end | E (helix) | Select to the end of the WORD |
buffer | Show an open file by its name or part of it, as Vim’s :b does; # is the one you were in before | |
buffer-close | ctrl-w (vscode) | Close this buffer, showing another file in its place; refuses with unsaved changes (force closes anyway) |
buffer-close-others | Close every file but this one; refuses if one has unsaved changes (force closes anyway) | |
buffer-next | g n (helix) | Show the next open file |
buffer-prev | g p (helix) | Show the previous open file |
camel-case | Change the selected words to camel case, each line on its own | |
center-view | z c (helix), z z (helix, vim), c, z (view) | Scroll so the cursor’s line is in the middle of the screen |
change | c (helix) | Copy each selection, delete it and switch to insert mode |
change-without-copy | alt-c (helix) | Delete each selection and switch to insert mode, leaving the clipboard alone |
client-follow | Have 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-independent | Lay 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-open | Open your config, init.luau, to change it; it runs again when saved | |
config-reload | Run your config again, as saving it does | |
copy | space Y, space y, y (helix) | Copy each selection to the clipboard |
copy-lines-down | alt-shift-down (vscode) | Copy the cursors’ lines below them |
copy-lines-up | alt-shift-up (vscode) | Copy the cursors’ lines above them |
copy-or-line | ctrl-c (vscode) | Copy the selection, or the line when nothing is selected |
copy-selection-down | C (helix), ctrl-alt-down (vscode) | Add a selection on the next line, at the same columns |
copy-selection-up | alt-C (helix), ctrl-alt-up (vscode) | Add a selection on the line above, at the same columns |
cut | Copy each selection to the clipboard and delete it | |
cut-or-line | ctrl-x (vscode) | Cut the selection, or the line when nothing is selected |
debug | Turn debug topics on (:debug keys frames), off (:debug -keys, :debug off), or say which are on | |
debug-log | Show what the debug topics on have said, in a pane below, following new lines | |
decrement | ctrl-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 |
delete | d (helix) | Copy each selection and delete it |
delete-back | backspace (every style’s typing mode) | Delete the character before each cursor, and the closer of an empty pair |
delete-forward | delete (every style’s typing mode) | Delete the character after each cursor |
delete-lines-at-cursor | ctrl-K (vscode) | Delete the lines the cursors are on |
delete-to-line-end | ctrl-k (every style’s typing mode) | Delete to the end of the line from each cursor |
delete-to-line-start | ctrl-u (every style’s typing mode) | Delete back to the start of the line from each cursor |
delete-without-copy | alt-d (helix) | Delete each selection, leaving the clipboard alone |
delete-word-back | alt-backspace, ctrl-w (every style’s typing mode), ctrl-backspace (vscode) | Delete back to the start of the word before each cursor |
delete-word-forward | alt-d (every style’s typing mode), ctrl-delete (vscode) | Delete to the start of the next word after each cursor |
detach | Leave the editor running in the background; greed attach comes back | |
earlier | alt-u (helix), g - (vim) | Go back to the state of the text made before this one, on any undo branch |
erase-back | backspace (vscode) | Delete the selection, or the character before the cursor |
erase-forward | delete (vscode) | Delete the selection, or the character after the cursor |
errors | List errors from plugin code that nothing caught, with the plugin, what it ran and where it failed | |
expand-selection | alt-o (helix) | Grow each selection to the syntax node around it |
extend-big-word-end | E (helix-select) | Extend the selection to the end of the WORD |
extend-big-word-left | B (helix-select) | Extend the selection to the previous WORD |
extend-big-word-right | W (helix-select) | Extend the selection to the next WORD |
extend-down | down, j (helix-select), shift-down (vscode) | Extend the selection one line down |
extend-end | g e (helix-select), ctrl-shift-end (vscode) | Extend the selection to the end of the buffer |
extend-find-next-char | f (helix-select) | Extend to and including the next character typed |
extend-find-prev-char | F (helix-select) | Extend back to the previous character typed |
extend-first-non-blank | g s (helix-select) | Extend the selection to the first character that isn’t a space |
extend-goto-line | G (helix-select) | Extend the selection to the line given as a count, or the last line |
extend-left | h, left (helix-select), shift-left (vscode) | Extend the selection one character left |
extend-line-end | end, g l (helix-select), shift-end (vscode) | Extend the selection to the end of the line |
extend-line-start | g h, home (helix-select) | Extend the selection to the start of the line |
extend-right | l, right (helix-select), shift-right (vscode) | Extend the selection one character right |
extend-smart-home | shift-home (vscode) | Select to the first non-blank of the line, or to its start |
extend-start | g g (helix-select), ctrl-shift-home (vscode) | Extend the selection to the start of the buffer |
extend-till-next-char | t (helix-select) | Extend up to the next character typed |
extend-till-prev-char | T (helix-select) | Extend back to just after the previous character typed |
extend-to-line-bounds | X (helix) | Extend each selection to whole lines |
extend-up | k, up (helix-select), shift-up (vscode) | Extend the selection one line up |
extend-word-end | e (helix-select) | Extend the selection to the end of the word |
extend-word-left | b (helix-select), ctrl-shift-left (vscode) | Extend the selection to the previous word |
extend-word-right | w (helix-select), ctrl-shift-right (vscode) | Extend the selection to the next word |
file-delete | Delete this file from the disk, after you press y, and close it | |
file-rename | Rename or move this file: a name alone keeps it in its folder, a path is from the project | |
find | ctrl-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-next | enter, f3 (in find buffers) | Go to the next match with the find bar open |
find-next-char | f (helix) | Select up to and including the next character typed |
find-prev | shift-enter, shift-f3 (in find buffers) | Go to the previous match with the find bar open |
find-prev-char | F (helix) | Select back to the previous character typed |
first-non-blank | g s (helix) | Move to the first character on the line that isn’t a space |
flip | alt-; (helix) | Swap the anchor and head of each selection |
fold-close | z C (helix), z c (vim) | Fold the block the cursor is in under its first line |
fold-close-all | z M (vim), ctrl-k ctrl-0 (vscode) | Fold every outermost block in the buffer |
fold-next | z j (vim) | Go to the start of the block below the cursor |
fold-open | z o (helix, vim), z d (vim) | Unfold the folds the cursor is in |
fold-open-all | z R (helix, vim), z E (vim), ctrl-k ctrl-j (vscode) | Unfold everything in the buffer |
fold-prev | z k (vim) | Go to the end of the block above the cursor |
fold-selection | Fold the selected lines under the first | |
fold-toggle | tab (blocks, helix, vim), z a (helix, vim), ctrl-k ctrl-l (vscode) | Fold the block the cursor is in, or unfold it |
fold-toggle-all | shift-tab (blocks, helix) | Unfold everything when anything is folded, or else fold every outermost block |
font-bigger | ctrl-+, ctrl-= (global) | Make the window’s text bigger |
font-reset | ctrl-0 (global) | Put the window’s text back to its size before zooming |
font-smaller | ctrl-- (global) | Make the window’s text smaller |
goto-column | g | (helix) | Move to the column given as a count, on each cursor’s line |
goto-definition | g d (every style’s command mode), f12 (vscode) | Go to where the thing under the cursor is defined |
goto-end | ctrl-end (vscode) | Move to the end of the buffer |
goto-file | g f (helix) | Open the file named under the cursor or in the selection |
goto-last-accessed-file | g a (helix), ctrl-6, ctrl-^ (every style’s command mode) | Show the file you were in before this one |
goto-last-line | g e (helix) | Move to the start of the last line |
goto-last-modification | g . (helix), ctrl-k ctrl-q (vscode) | Move to where this file was last changed |
goto-last-modified-file | g m (helix) | Show the file you changed last, other than this one |
goto-line | G (helix) | Move to the line given as a count, or the last line |
goto-parent-end | alt-e (helix) | Move to the end of the syntax node around each selection’s |
goto-parent-start | alt-b (helix) | Move to the start of the syntax node around each selection’s |
goto-start | g g (helix), ctrl-home (vscode) | Move to the start of the buffer, or with a count, to that line |
goto-window-bottom | g b (helix) | Move to the bottom line on the screen |
goto-window-center | g c (helix) | Move to the middle line on the screen |
goto-window-top | g t (helix) | Move to the top line on the screen |
half-page-down | ctrl-d (helix, read, view, vim), z ctrl-d (helix) | Move half a screen down |
half-page-up | ctrl-u (helix, read, view, vim), z ctrl-u (helix) | Move half a screen up |
hover | k (after the leader), K (vim), ctrl-k ctrl-i (vscode) | Show what’s under the cursor, and any problems there |
increment | ctrl-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-char | Insert the typed character at each cursor | |
insert-line-above | ctrl-shift-enter (vscode) | Start a new line above this one |
insert-line-below | ctrl-enter (vscode) | Start a new line below this one |
insert-line-start | I (helix) | Insert at the start of each line, after its indent |
insert-mode | i (helix) | Insert before each selection |
insert-newline | enter (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-register | ctrl-r (every style’s typing mode) | Insert what the register typed next holds at each cursor |
insert-tab | tab (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-lines | J (helix) | Join the next line onto each cursor’s, or the lines of each selection, with one space |
jump-back | ctrl-o (helix, vim), alt-left (vscode) | Go back to where the last jump started, in this view |
jump-forward | ctrl-i (helix, vim), alt-right (vscode) | Go forward again after jumping back, in this view |
jump-to-word | g w (helix) | Label the words on screen and select the one whose label is typed |
kebab-case | Change the selected words to kebab case, each line on its own | |
keep-matching | K (helix) | Keep the selections that match a regex |
keep-primary | , (helix) | Keep only the primary selection |
later | alt-U (helix), g + (vim) | Go on to the state of the text made after this one, on any undo branch |
line-end | end (helix, every style’s typing mode, vscode), g l (helix) | Move to the end of the line |
line-start | g h (helix), home (helix, every style’s typing mode) | Move to the start of the line |
link-copy | y (in link buffers) | Copy the link in this float |
lowercase | ``` (helix) | Make the selections lowercase |
macro-save | Save the last macro (or the one in a register) as a command you can run and edit | |
match-bracket | m m (helix) | Move to the matching bracket, or the closing one of the pair around the cursor |
merge-consecutive-selections | alt-_ (helix) | Merge selections that touch or overlap |
merge-selections | Merge all selections into one, from the first to the last | |
motion-hint-1 | Do the last motion 1 more times | |
motion-hint-2 | Do the last motion 2 more times | |
motion-hint-3 | Do the last motion 3 more times | |
motion-hint-4 | Do the last motion 4 more times | |
motion-hint-5 | Do the last motion 5 more times | |
motion-hint-6 | Do the last motion 6 more times | |
motion-hint-7 | Do the last motion 7 more times | |
motion-hint-8 | Do the last motion 8 more times | |
motion-hint-9 | Do the last motion 9 more times | |
move-down | down (helix, read, every style’s typing mode, vscode), j (helix, read) | Move one line down |
move-left | h (helix, read), left (helix, read, every style’s typing mode, vscode) | Move one character left |
move-lines-down | alt-down (vscode) | Move the cursors’ lines down one, or the list item or section the cursor is in past the next |
move-lines-up | alt-up (vscode) | Move the cursors’ lines up one, or the list item or section the cursor is in past the one before |
move-right | l (helix, read), right (helix, read, every style’s typing mode, vscode) | Move one character right |
move-up | k (helix, read), up (helix, read, every style’s typing mode, vscode) | Move one line up |
move-word-left | ctrl-left (vscode) | Move to the start of the previous word |
move-word-right | ctrl-right (vscode) | Move to the start of the next word |
next-big-word | W (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-word | w (helix) | Select to the start of the next word |
normal-mode | esc (every style’s typing mode) | Back to the editing style’s own mode (normal, in Helix’s) |
open | Open a file in the main view | |
open-above | O (helix) | Open a new line above each cursor and insert there |
open-below | o (helix) | Open a new line below each cursor and insert there |
page-down | ctrl-f (helix, read, view, vim), pagedown (helix, read, every style’s typing mode, vim, vscode), z ctrl-f (helix) | Move a screen down |
page-up | ctrl-b (helix, read, view, vim), pageup (helix, read, every style’s typing mode, vim, vscode), z ctrl-b (helix) | Move a screen up |
pascal-case | Change the selected words to pascal case, each line on its own | |
paste-after | p, space p (helix) | Paste after each selection |
paste-before | P (helix) | Paste before each selection |
paste-image | alt-v (in agent-transcript buffers) | Paste the image on your clipboard into what you’re in, like an agent’s box |
paste-over | ctrl-v (vscode) | Paste, replacing each selection; whole lines go above the cursor’s line |
play-macro | q (helix) | Play the macro in @, or the register picked |
press-button | enter (helix, read, vim) | Run the button under the cursor, as clicking it does |
prev-big-word | B (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-word | b (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 |
profile | Start counting where the editor’s time goes; again, stop and show it, the most time first | |
project | Open a project, or switch to it if it’s open | |
project-close | Close the shown project, unless it has unsaved changes (force closes anyway) | |
project-config | Run the shown project’s own config in .greed/, if you trusted it | |
prompt-cancel | ctrl-c, esc (in find, prompt, search-box buffers) | Close the prompt without accepting |
prompt-submit | enter (in prompt, search-box buffers) | Accept what’s typed in the prompt |
quick-fix | a (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 |
quit | ctrl-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-abort | In 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-all | End the session and every project in it, whatever runs, unless files have unsaved changes (force ends it anyway) | |
quit-ask | ctrl-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-session | End the session, whatever runs in it, unless files have unsaved changes (force ends it anyway); terminals, shells and agents never count as unsaved | |
record-macro | Q (helix) | Start recording keys into a macro (@, or the register picked), or stop |
redo | U (helix), ctrl-Z, ctrl-y (vscode) | Redo the last undone change |
reflow | Rewrap the lines of each selection to the text width, or the width given | |
reindent-lines | Indent each selected line as its language and the lines around it say | |
reload | Load the file again from disk, as an edit undo can take back | |
reload-all | Load every open file again from disk, as edits undo can take back | |
remove-matching | alt-K (helix) | Remove the selections that match a regex |
remove-primary | alt-, (helix) | Remove the primary selection |
repeat-change | . (helix, vim) | Repeat the last change, at the cursors; a count replaces the one it had |
repeat-find | alt-. (helix) | Do the last f, t, F or T again; in select mode, extending |
replace-char | r (helix) | Replace every selected character with the next one typed |
replace-in-file | ctrl-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-copy | R, space R (helix) | Replace each selection with what was copied |
rotate-contents | alt-) (helix) | Move each selection’s text to the selection after it, the last’s to the first |
rotate-contents-back | alt-( (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 |
save | ctrl-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-all | ctrl-k s (vscode) | Write every file with unsaved changes; force makes folders they go in that aren’t there |
save-quit | Z Z (vim) | Write the buffer to its file if it changed, then quit |
save-quit-all | Write every file with unsaved changes, then end the session | |
scroll-down | z down, z j (helix), down, j (view), ctrl-e (vim) | Scroll the view a line down |
scroll-up | z 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-newer | down (in search-box buffers) | Put the query submitted after this one in the search box |
search-box-older | up (in search-box buffers) | Put the query submitted before this one in the search box |
search-clear | Take away the search’s match highlights, as Vim’s :noh does | |
search-next | n (helix, read, vim), f3 (vscode) | Select the next match of the last search |
search-next-add | n (helix-select) | Add the next match of the last search as another selection |
search-prev | N (helix, read, vim), shift-f3 (vscode) | Select the previous match of the last search |
search-prev-add | N (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-anywhere | alt-* (helix) | Search for the selected text, also inside longer words |
secret-set | Keep 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-children | alt-I (helix) | Select every syntax node inside each selection’s |
select-all-matches | ctrl-L (vscode) | Select every match of the selected text (or the word at the cursor) |
select-all-siblings | alt-a (helix) | Select every syntax node beside each selection’s, its own included |
select-around-angles | m a <, m a > (helix) | Select around the angles |
select-around-backticks | `m a `` (helix) | Select around the backticks |
select-around-big-word | m a W (helix) | Select the WORD and the space after it |
select-around-braces | m a {, m a } (helix) | Select around the braces |
select-around-brackets | m a [, m a ] (helix) | Select around the brackets |
select-around-comment | m a c (helix) | Select around the comment at each selection |
select-around-double-quotes | m a " (helix) | Select around the double-quotes |
select-around-entry | m a e (helix) | Select around the entry at each selection |
select-around-function | m a f (helix) | Select around the function at each selection |
select-around-indent | m a i (helix) | Select the lines indented as far as this one, and the one above |
select-around-last | m a l (helix) | Select around the last pair of the bracket or quote typed next |
select-around-next | m a n (helix) | Select around the next pair of the bracket or quote typed next |
select-around-number | m a d (helix) | Select the number at or after the cursor, with its sign |
select-around-pair | m a m (helix) | Select around the nearest brackets or quotes |
select-around-parameter | m a a (helix) | Select around the parameter at each selection |
select-around-parens | m a (, m a ) (helix) | Select around the parens |
select-around-quotes | m a ' (helix) | Select around the quotes |
select-around-tag | m a x (helix) | Select around the XML or HTML element |
select-around-test | m a T (helix) | Select around the test at each selection |
select-around-type | m a t (helix) | Select around the type at each selection |
select-around-word | m a w (helix) | Select the word and the space after it |
select-inside-angles | m i <, m i > (helix) | Select inside the angles |
select-inside-backticks | `m i `` (helix) | Select inside the backticks |
select-inside-big-word | m i W (helix) | Select the WORD |
select-inside-braces | m i {, m i } (helix) | Select inside the braces |
select-inside-brackets | m i [, m i ] (helix) | Select inside the brackets |
select-inside-comment | m i c (helix) | Select inside the comment at each selection |
select-inside-double-quotes | m i " (helix) | Select inside the double-quotes |
select-inside-entry | m i e (helix) | Select inside the entry at each selection |
select-inside-function | m i f (helix) | Select inside the function at each selection |
select-inside-indent | m i i (helix) | Select the lines indented as far as this one |
select-inside-last | m i l (helix) | Select inside the last pair of the bracket or quote typed next |
select-inside-next | m i n (helix) | Select inside the next pair of the bracket or quote typed next |
select-inside-number | m i d (helix) | Select the number at or after the cursor |
select-inside-pair | m i m (helix) | Select inside the nearest brackets or quotes |
select-inside-parameter | m i a (helix) | Select inside the parameter at each selection |
select-inside-parens | m i (, m i ) (helix) | Select inside the parens |
select-inside-quotes | m i ' (helix) | Select inside the quotes |
select-inside-tag | m i x (helix) | Select inside the XML or HTML element |
select-inside-test | m i T (helix) | Select inside the test at each selection |
select-inside-type | m i t (helix) | Select inside the type at each selection |
select-inside-word | m i w (helix) | Select the word |
select-line | x (helix) | Select the whole line, including its line break; again, the next line too |
select-lines | ctrl-l (vscode) | Select the cursor’s line, or the next one too when whole lines are selected |
select-next-match | ctrl-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-regex | s (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-redo | ctrl-k (helix), ctrl-U (vscode) | Go forward to the selection selection-undo went back from |
selection-undo | ctrl-h (helix), ctrl-u (vscode) | Go back to the selection before the last command |
sentence-case | Change the selected words to sentence case, each line on its own | |
session | Go to another session: a running one by name, or a project’s (started if needed) | |
session-back | B (after the leader) | Go back to the session you were in before, on whichever machine (space B) |
session-home | Go back to this machine: the session here you were in last, or this folder’s | |
shrink-selection | alt-i (helix) | Shrink each selection back, or to the first syntax node inside it |
shrink-to-line-bounds | alt-x (helix) | Shrink each selection to the whole lines inside it |
smart-home | home (vscode) | Go to the first non-blank of the line, or to its start |
snake-case | Change the selected words to snake case, each line on its own | |
split-lines | alt-s (helix) | Split the selections into lines |
split-regex | S (helix) | Split the selections at every match of a regex |
stalls | List the times plugin code held the editor up, with the plugin and what it ran | |
style | Switch editing style, or pick one | |
surround-add | m s (helix) | Wrap each selection in the pair of the next character typed |
surround-delete | m d (helix) | Take away the pair of the next character typed from around each selection |
surround-replace | m r (helix) | Swap the pair of the next character typed around each selection for another’s |
swap-node-next | alt-shift-right (helix, vim, vim-visual) | Move the syntax node selected past the one after it |
swap-node-prev | alt-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-close | Close the float showing text | |
till-next-char | t (helix) | Select up to the next character typed |
till-prev-char | T (helix) | Select back to just after the previous character typed |
title-case | Change the selected words to title case, each line on its own | |
toggle-comment | ctrl-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 |
trust | Trust the shown project to run its own code: its config in .greed/, language servers and formatting on save | |
type-char | Type the pressed character, replacing any selection | |
type-newline | enter (vscode) | Type a line break, replacing any selection, and start the new line at its indent |
type-tab | tab (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-next | Go to the next widget of a plugin’s view | |
ui-press | Press the widget at the cursor in a plugin’s view, as clicking it does | |
ui-prev | Go to the widget before in a plugin’s view | |
undo | u (helix), ctrl-z (vscode) | Undo the last change |
uppercase | `alt-`` (helix) | Make the selections uppercase |
view-mode | Z (helix) | Keys for the view until esc: center, top, bottom, scroll |
view-mode-leave | esc (view) | Back from the view mode |
window-new | ctrl-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-end | e (helix) | Select to the end of the word |
zoom-in | z (after the leader) | Show only the list item or section the cursor is in, with what’s under it |
zoom-out | Z (after the leader) | Show what’s around the list item or section zoomed in to, or all of it again |
| Option | Default | What 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-reload | true | Load files changed on disk into their buffers, unless they have unsaved changes |
auto-save | false | Save files on their own a moment after their edits stop |
auto-save-delay | 1000 | How 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) |
effects | false | Small animations, like a wave of light through the status line when you switch files |
effects-changes | true | Light up text someone other than you changed, like an agent or a formatter, fading out |
effects-dim | false | Dim the text of the panes you’re not in |
effects-jumps | true | Light 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-size | 15 | The size of the window’s text in pixels, before the screen’s scale; zooming gives a window a size of its own |
gui-smooth-scroll | true | Whether 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-hints | false | Number 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-margin | 5 | How 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-hours | 24 | A 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-width | 4 | How many columns apart tab stops are, in languages that don’t set their own |
text-width | 80 | How wide :reflow (and Vim’s gq) makes lines |
trash | true | Deleting a file or folder moves it to the trash, where there is one on the same disk |
undo-files | true | Keep each saved file’s undo history, so undo goes on after a restart |
watch-interval | 10 | Seconds 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.
| Command | Keys | What it does |
|---|---|---|
data-close | esc, q (in data-row, data-table buffers) | Close the float showing a data block’s table, or a row of it |
data-open | m o (after the leader) | Open the data block at the cursor’s table in a float, as text to go through |
data-page-next | m n (after the leader) | Show the data block’s next rows |
data-page-prev | m p (after the leader) | Show the data block’s rows before these |
data-refresh | Read the data block at the cursor again | |
data-run | Let the data block at the cursor run its query, as a code block, and read it |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
describe | h h (after the leader) | Describe anything: a command, option, event, API function, plugin or mode |
describe-api | h a (after the leader) | Describe a function or type of the plugin API |
describe-command | h c (after the leader) | Describe a command |
describe-event | h e (after the leader) | Describe an event |
describe-key | h k (after the leader) | Press keys to see what command they run |
describe-mode | h m (after the leader) | Describe a mode |
describe-object | Describe an object | |
describe-option | h o (after the leader) | Describe an option |
describe-plugin | h p (after the leader) | Describe a plugin |
describe-style | h s (after the leader) | Describe a style |
help-again | r (in help buffers) | In the inspector, look at the object again, as it is now |
help-back | alt-left, backspace, ctrl-o (in help buffers) | In the inspector, go back to the object inspected before |
help-close | Close the help window | |
help-forward | alt-right, ctrl-i (in help buffers) | In the inspector, go forward again to the object gone back from |
help-goto | enter (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 |
inspect | h 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.
| Command | Keys | What it does |
|---|---|---|
docs | h d (after the leader) | Read the manual: go to the heading with these words, or pick one of them all |
docs-search | h / (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.
| Option | Default | What it does |
|---|---|---|
flash-duration | 300 | How 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.
| Command | Keys | What 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-open | enter (every style’s command mode; in folder buffers) | Open the file or folder on the cursor’s line of a folder’s buffer |
folder-undo | Take 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 |
| Option | Default | What it does |
|---|---|---|
folder-hidden | false | Show 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.
| Command | Keys | What it does |
|---|---|---|
format | = (helix’s command mode) | Format the buffer with its language’s formatter or language server |
| Option | Default | What it does |
|---|---|---|
format-on-save | true | Format 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.
| Command | Keys | What it does |
|---|---|---|
plugins-sync | Fetch 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-update | Take the plugins from git (or the one named) to the latest of what each follows, and pin that |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
grep | Put the lines matching a regex in a panel, to go to them or edit them | |
grep-close | Close the search results | |
search-buffer | L (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.
| Option | Default | What it does |
|---|---|---|
indent-guides | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
select-mode | v (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.
| Command | Keys | What it does |
|---|---|---|
keys-help | f1 (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.
| Command | Keys | What it does |
|---|---|---|
hoard | n h (after the leader) | Go to Hoard (your notes, todos and today), starting it if needed; in Hoard, its home |
hoard-add | alt-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-agenda | Open the agenda note: what’s due, as queries you can change | |
hoard-box | esc (every style’s typing mode; in hoard buffers) | On the home: back to the end of the box to write in |
hoard-down | down (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-enter | enter (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-escape | esc (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-review | n 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-schedule | alt-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-tab | tab (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-back | shift-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-up | up (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-window | n H (after the leader) | Open Hoard in a window of its own, staying here; in a terminal, go to it |
| Option | Default | What 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-servers | false | Run 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.
| Command | Keys | What it does |
|---|---|---|
connect | C (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.
| Command | Keys | What it does |
|---|---|---|
machine | i 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-forget | Stop following a machine you reached with greed ssh, until you do again |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
image-zoom-actual | 0 (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.
| Command | Keys | What it does |
|---|---|---|
kube-context | o k (after the leader) | Switch kubectl’s context, everywhere or in this shell only; with a name, to that one |
kube-namespace | o 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.
| Command | Keys | What it does |
|---|---|---|
grammar-fetch | Download a grammar Greed knows where to get, ahead of opening a file in it | |
health | Show each language’s highlighting and servers, and which are installed | |
language | Set this buffer’s language, for its highlighting, indent and language server; with none, say which it has |
| Option | Default | What it does |
|---|---|---|
grammar-download | true | Download 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.
| Command | Keys | What it does |
|---|---|---|
code-action | Pick a fix or refactor for the cursor or the selection | |
completion-accept | enter (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-ask | ctrl-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-close | esc (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-down | down (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-next | ctrl-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-prev | ctrl-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-tab | tab (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-up | up (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-words | ctrl-n (vim-insert) | Complete the word being typed from words in open files |
completion-words-back | ctrl-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-declaration | g D (every style’s command mode) | Go to where the thing under the cursor is declared |
goto-implementation | g i (every style’s command mode), g r i (vim) | Go to where the thing under the cursor is implemented |
goto-references | g 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-definition | g 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-restart | Start 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-diagnostic | d (after the leader) | Pick a problem in this file and go to it |
pick-problem | D (after the leader), ctrl-M (vscode) | Pick a problem in any file, open or not, and go to it |
pick-workspace-symbol | S (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 |
rename | r (after the leader), g r n (vim), f2 (vscode) | Rename the thing under the cursor everywhere it’s used |
select-references | H (after the leader) | Select every place in this file where the thing under the cursor is used |
signature-help | While typing, show what the function being called takes |
| Option | Default | What it does |
|---|---|---|
completion-delay | 150 | Milliseconds 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-messages | true | Show each line’s worst problem after the end of the line |
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.
| Command | Keys | What it does |
|---|---|---|
mail | Search and read your mail: on the page in the mail session, a quick look elsewhere | |
mail-archive | e (in mail, mail-thread buffers) | Move the message (or the thread being read) to the archive |
mail-attach | Attach a file to the mail being written | |
mail-browser | b (in mail, mail-thread buffers) | Show the message in a web browser as it was sent, loading nothing from anywhere |
mail-close | Go back from a thread to the list, or close a quick look at mail | |
mail-compose | c (in mail, mail-thread buffers) | Write new mail |
mail-drafts | Pick a draft to go on writing; alt-. on one discards it | |
mail-from | Pick which of your addresses the mail being written is from, with its signature | |
mail-open-all | o (in mail-thread buffers) | Show all of the thread: every message opened and every quote, or folded again |
mail-plain | h (in mail-thread buffers) | Read the thread as its messages’ text, or laid out from their HTML again |
mail-read | enter (in mail buffers) | Read the thread of the message under the cursor |
mail-reply | r (in mail, mail-thread buffers) | Reply to the message (or the thread being read), quoting it |
mail-reply-all | a (in mail, mail-thread buffers) | Reply to everyone the message (or the thread being read) went to |
mail-rule-run | Run a mail rule over all the mail it finds, asking first | |
mail-rule-try | Show what a mail rule finds in the mail you have, changing nothing | |
mail-save-attachment | S (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-1 | alt-1 (in mail buffers) | Show what saved search 1 finds (require(“@mail”).searches) |
mail-search-2 | alt-2 (in mail buffers) | Show what saved search 2 finds (require(“@mail”).searches) |
mail-search-3 | alt-3 (in mail buffers) | Show what saved search 3 finds (require(“@mail”).searches) |
mail-search-4 | alt-4 (in mail buffers) | Show what saved search 4 finds (require(“@mail”).searches) |
mail-search-5 | alt-5 (in mail buffers) | Show what saved search 5 finds (require(“@mail”).searches) |
mail-search-6 | alt-6 (in mail buffers) | Show what saved search 6 finds (require(“@mail”).searches) |
mail-search-7 | alt-7 (in mail buffers) | Show what saved search 7 finds (require(“@mail”).searches) |
mail-search-8 | alt-8 (in mail buffers) | Show what saved search 8 finds (require(“@mail”).searches) |
mail-search-9 | alt-9 (in mail buffers) | Show what saved search 9 finds (require(“@mail”).searches) |
mail-search-next | tab (in mail buffers) | Show what the next saved search finds |
mail-search-previous | shift-tab (in mail buffers) | Show what the saved search before finds |
mail-searches | g s (in mail buffers) | Pick a saved search to show, however many there are, with how many unread each finds |
mail-send | alt-enter, ctrl-enter (in mail-compose buffers) | Send the mail being written |
mail-session | Go to the mail session, starting it if needed: it syncs your mail | |
mail-sync | $ (in mail buffers) | Sync your mail now |
mail-tag | t (in mail, mail-thread buffers) | Tag the message (or the thread being read), or take the tag off if it has it |
mail-todo | T (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-flag | s (in mail, mail-thread buffers) | Flag the message (or the thread being read), or take its flag off |
mail-toggle-read | u (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-undo | z (in mail, mail-thread buffers) | Undo the last change to your mail, or take back the mail just sent while it waits |
| Option | Default | What it does |
|---|---|---|
mail-markdown | true | Whether 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-threads | true | Whether 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.
| Command | Keys | What it does |
|---|---|---|
choice-pick | Pick the choice under the cursor, unpicking the others in its group | |
markdown-cell-edit | m t e (after the leader) | Type the text of the Markdown table cell at the cursor, or the formula filling its column |
markdown-cell-next | alt-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-prev | alt-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-make | m 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-set | Set the value of the field at the cursor, value in Markdown | |
markdown-follow | Follow the Markdown link under the cursor: to a heading, another file or a web page | |
markdown-look-toggle | m 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-read | m 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-align | m t = (after the leader) | Line up a Markdown table’s pipes |
markdown-table-column-add | m t c (after the leader) | Add a column right of the cursor’s, in a Markdown table |
markdown-table-column-add-left | m t C (after the leader) | Add a column left of the cursor’s, in a Markdown table |
markdown-table-column-delete | m t D (after the leader) | Delete the cursor’s column of a Markdown table |
markdown-table-column-left | m t h (after the leader) | Move the cursor’s column of a Markdown table left |
markdown-table-column-right | m t l (after the leader) | Move the cursor’s column of a Markdown table right |
markdown-table-row-add | m t o (after the leader) | Add a row under the cursor’s, in a Markdown table |
markdown-table-row-add-above | m t O (after the leader) | Add a row above the cursor’s, in a Markdown table |
markdown-table-row-delete | m t d (after the leader) | Delete the cursor’s row of a Markdown table |
markdown-table-row-down | m t j (after the leader) | Move the cursor’s row of a Markdown table down |
markdown-table-row-up | m t k (after the leader) | Move the cursor’s row of a Markdown table up |
markdown-table-sort | m t s (after the leader) | Sort a Markdown table’s rows by the cursor’s column |
markdown-table-sort-descending | m t S (after the leader) | Sort a Markdown table’s rows by the cursor’s column, largest first |
| Option | Default | What it does |
|---|---|---|
markdown-look | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
login | Sign 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 | |
logout | Forget the sign-in kept for a provider | |
models | Show and change which model plays each role, set API keys and sign in | |
models-change | On the :models page, pick the provider and model that play the role under the cursor | |
models-close | Close the :models page | |
models-effort | On the :models page, pick how hard the model of the role under the cursor thinks | |
models-key | On the :models page, set the API key of the provider of the role under the cursor | |
models-login | On the :models page, sign in to the provider of the role under the cursor | |
usage | How many tokens the models were sent and wrote today and over the last week |
| Option | Default | What it does |
|---|---|---|
models-idle-timeout | 90 | Seconds 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.
| Command | Keys | What it does |
|---|---|---|
multibuffer-close | q (in why buffers) | Close the view showing the multibuffer |
multibuffer-open | enter (every style’s command mode; in multibuffer buffers) | Go to the line under the cursor in its file |
multibuffer-revert | g 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.
| Command | Keys | What it does |
|---|---|---|
notes-agenda | n a (after the leader) | Pick from the open todos in every note, soonest due first |
notes-agent | n j (after the leader) | Pick a job for Greed’s agent on your notes: connect them, pull out todos, ask them |
notes-ask | Ask your notes a question: Greed’s agent answers from them, linking what it used | |
notes-capture | n c (after the leader) | Add a todo to the inbox note, from wherever you are: the project’s when it keeps notes |
notes-capture-mine | Add a todo to your own inbox note, even in a project that keeps notes | |
notes-connect | n 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-daily | n d (after the leader) | Open today’s note, making it if there isn’t one |
notes-find | n f (after the leader) | Open a note by name, or pick one |
notes-link | n k (after the leader) | Link to a heading, a list item or a block in a note, picked from all of them |
notes-new | n n (after the leader) | Make a note from a template: pick one, then name the note |
notes-reminder-open | Open the first reminder in the notice, and close the notice | |
notes-reminders-dismiss | n r (after the leader) | Close the reminders notice |
notes-search | n / (after the leader) | Search every note as you type |
notes-tag-rename | Rename a tag in every note, with the tags under it | |
notes-thought | n t (after the leader) | Jot a thought or an idea down in the inbox note, with today’s date, from wherever you are |
notes-type | n y (after the leader) | Give this note a template’s fields, those it doesn’t have yet |
todo-toggle | n x (after the leader) | Tick the todo on each selected line, or untick it; a plain line becomes a todo |
| Option | Default | What 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-conceal | true | Show links in notes without their brackets, and markup as symbols |
notes-everywhere | false | Treat 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-desktop | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
operation-undo | u u (after the leader) | Undo the latest operation, or the one being reviewed, in every file at once |
operations | u 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.
| Command | Keys | What it does |
|---|---|---|
float-dock | Show the dock of this tab’s floating views, or hide it | |
float-dock-pick | alt-W (global, terminal) | Pick a floating view from the dock: 1 to 9, or the arrows and enter |
float-file | alt-F (global, terminal), E (pane) | Open a file (this one if none is given) in a new floating view |
float-flip | F, e (pane) | Take this pane out to float over the tab, or put a floating view back in as a pane |
float-go | Bring this tab’s floating view number N to the front, as the dots on its border count | |
float-layout-next | alt-w (global, terminal) | Lay this tab’s floating views out with the next float layout |
float-layout-pick | Y (pane) | Pick how this tab lays out its floating views |
float-move-down | down (resize) | Move the floating view down |
float-move-left | left (resize) | Move the floating view left |
float-move-right | right (resize) | Move the floating view right |
float-move-up | up (resize) | Move the floating view up |
float-next | alt-} (global, terminal), } (pane) | Bring the next floating view in this tab to the front |
float-previous | alt-{ (global, terminal), { (pane) | Bring the floating view before in this tab to the front |
float-terminal-new | W (pane) | Open another floating terminal in this tab |
floats-cascade | C (pane) | Stack this tab’s floating views in a cascade, from now on |
floats-one | O (pane) | Show this tab’s floating views one at a time, like tabs, all in the same place, from now on |
floats-tile | T (pane) | Lay this tab’s floating views out side by side, from now on |
floats-toggle | alt-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-next | alt-space (global, terminal), space (pane) | Arrange this tab with the next layout |
layout-open | Open a saved layout as a new tab | |
layout-pick | y (pane) | Pick how this tab arranges its panes |
layout-rotate | o (pane) | Move every pane one place along |
layout-save | Save this tab’s panes, and what they show, as a layout of the project | |
layout-save-mine | Save this tab’s panes, and what they show, as a layout for any project | |
layout-swap-main | alt-m (global, terminal), m (pane) | Swap this pane with the main one |
pane-close | w c, w q (after the leader), ctrl-w c, ctrl-w q (every style’s command mode) | Close this pane |
pane-close-done | x (pane) | pane-close, then back from the mode |
pane-down | alt-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-down | w 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-right | w 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-grow | alt-+, alt-= (global, terminal), +, = (pane, resize) | Give this pane more room |
pane-left | alt-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-mode | alt-p (global, terminal) | Keys for panes until esc: move, split, resize, close |
pane-mode-leave | alt-p (pane), enter, esc (pane, resize, tab), alt-r (resize), alt-t (tab) | Back from the pane or tab mode |
pane-new-down | w 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-right | w 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-next | w w (after the leader), tab (pane), ctrl-w w (every style’s command mode) | Move to the next pane |
pane-only | w o (after the leader), ctrl-w o (every style’s command mode) | Close every other pane in the tab |
pane-pick | w 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-place | p (pane) | Show where a new pane would go, to move it and open it there |
pane-place-cancel | esc (pane-place) | Put things back without a new pane |
pane-place-down | down, j (pane-place) | Move the new pane’s frame down |
pane-place-here | enter (pane-place) | Open a pane with this file where the frame is |
pane-place-left | h, left (pane-place) | Move the new pane’s frame left |
pane-place-right | l, right (pane-place) | Move the new pane’s frame right |
pane-place-terminal | t (pane-place) | Open a terminal where the frame is |
pane-place-up | k, up (pane-place) | Move the new pane’s frame up |
pane-resize-down | J (pane), j (resize) | Make this pane bigger by moving its bottom edge down, or the other edge at the screen’s edge |
pane-resize-left | H (pane), h (resize) | Make this pane bigger by moving its left edge out, or the other edge at the screen’s edge |
pane-resize-right | L (pane), l (resize) | Make this pane bigger by moving its right edge out, or the other edge at the screen’s edge |
pane-resize-up | K (pane), k (resize) | Make this pane bigger by moving its top edge up, or the other edge at the screen’s edge |
pane-right | alt-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-shrink | alt-- (global, terminal), - (pane, resize) | Give this pane less room |
pane-shrink-down | J (resize) | Make this pane smaller by moving its bottom edge up, or the other edge at the screen’s edge |
pane-shrink-left | H (resize) | Make this pane smaller by moving its left edge in, or the other edge at the screen’s edge |
pane-shrink-right | L (resize) | Make this pane smaller by moving its right edge in, or the other edge at the screen’s edge |
pane-shrink-up | K (resize) | Make this pane smaller by moving its top edge down, or the other edge at the screen’s edge |
pane-split-down | w 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-right | w 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-down | w J (after the leader), ctrl-w J (every style’s command mode) | Swap this pane with the one below |
pane-swap-left | w H (after the leader), ctrl-w H (every style’s command mode) | Swap this pane with the one on its left |
pane-swap-right | w L (after the leader), ctrl-w L (every style’s command mode) | Swap this pane with the one on its right |
pane-swap-up | w K (after the leader), ctrl-w K (every style’s command mode) | Swap this pane with the one above |
pane-terminal | alt-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-done | n (pane) | pane-terminal, then back from the mode |
pane-terminal-down | d (pane) | Open a terminal in a new pane below |
pane-terminal-right | r (pane) | Open a terminal in a new pane on the right |
pane-to-new-tab | Move this pane (or panel, or floating view) to a new tab | |
pane-to-new-tab-done | b (pane) | pane-to-new-tab, then back from the mode |
pane-to-panel | Move this pane (or floating view) into a panel on the right | |
pane-to-panel-done | P (pane) | pane-to-panel, then back from the mode |
pane-to-tab | Move this pane (or panel, or floating view) to a tab you pick, or a new one | |
pane-to-tab-done | t (pane) | pane-to-tab, then back from the mode |
pane-up | alt-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-zoom | w z (after the leader), f (pane), ctrl-w z (every style’s command mode) | Show only this pane, or all of them again |
resize-mode | alt-r (global, terminal), R (pane) | Keys for resizing the pane or floating view until esc, and moving a float |
tab-close | Close this tab and its panes | |
tab-close-done | x (tab) | tab-close, then back from the mode |
tab-go | alt-1, alt-2, alt-3, alt-4, alt-5, alt-6, alt-7, alt-8, alt-9 (global, terminal) | Show tab N |
tab-mode | alt-t (global, terminal) | Keys for tabs until esc: new, close, switch, rename |
tab-new | Open a new tab | |
tab-new-done | n (tab) | tab-new, then back from the mode |
tab-next | alt->, 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-previous | alt-<, alt-[ (global, terminal), [, h, left (tab), g T (vim’s command mode) | Show the tab before; with a count, that many tabs back |
tab-rename | Name this tab | |
tab-rename-done | r (tab) | tab-rename, then back from the mode |
tab-terminal | Open a new tab with a terminal | |
tab-terminal-done | t (tab) | tab-terminal, then back from the mode |
terminal-float | Show the floating terminal, or hide it |
| Option | Default | What 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 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.
| Command | Keys | What 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-text | t (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.
| Command | Keys | What 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-anything | space (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-buffer | b (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-file | f (after the leader), ctrl-p (vscode) | Open a file in the project, skipping ignored files |
pick-file-here | F (after the leader) | Open a file under the folder Greed was started in, skipping ignored files |
pick-jump | j (after the leader) | Pick a place from the jumplist and go there |
pick-outline | s (after the leader), g O (vim), ctrl-O (vscode) | Jump to a function or type in the file, from its syntax tree |
pick-style | Pick an editing style | |
picker-act | alt-. (in picker buffers) | List what you can do with the current item, and do it |
picker-choose | enter (in picker buffers) | Choose the current item and close the picker |
picker-close | esc (in picker buffers) | Close the picker without choosing |
picker-complete | tab (in picker buffers) | Put the current path in the picker’s query, to go on from there |
picker-key | Run what the open picker does for the key pressed | |
picker-next | ctrl-n, down (in picker buffers) | Move to the next item in the picker |
picker-prev | ctrl-p, up (in picker buffers) | Move to the previous item in the picker |
picker-resume | ' (after the leader) | Open the last picker again |
search-everywhere | n s (after the leader) | Search your notes, mail and chat at once, as you type; in:mail, in:chat or in:notes picks some |
watches | List 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.
| Command | Keys | What it does |
|---|---|---|
append-output | alt-! (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-to | alt-| (helix’s command mode) | Give each selection to a shell command as input, leaving the text as it is |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
decision-accept | Accept the proposed decision you’re in, so agents follow it | |
decision-new | Write down a decision for this project, kept for you and agents | |
decisions | Pick a decision kept for this project to open it | |
plan | Open 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.
| Command | Keys | What it does |
|---|---|---|
pick-project | P (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.
| Option | Default | What 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.
| Command | Keys | What 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-paragraph | m i p (helix’s command mode) | Select the paragraph |
select-paragraph-around | m a p (helix’s command mode) | Select the paragraph and the blank lines after it |
select-section | m i h (helix’s command mode) | Select the text under the Markdown heading |
select-section-around | m a h (helix’s command mode) | Select the Markdown section, heading included |
select-sentence | m i s (helix’s command mode) | Select the sentence |
select-sentence-around | m 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.
| Option | Default | What it does |
|---|---|---|
restore-after-quit | false | Restore a session when it starts again after it was quit, too |
restore-session | true | Open 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.
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
service-restart | Quit a service’s session and start it again with this greed, as after an upgrade |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
config-types | Set up type checking for your config: a .luaurc beside it that knows @greed and the plugins | |
setup | Answer a few questions to set Greed up: editing style, theme, icons, agents, a model | |
setup-close | Close the setup page without saving; :setup brings it back | |
setup-next | Go to the next choice or button on the setup page | |
setup-prev | Go to the previous choice or button on the setup page | |
setup-save | Save the setup page’s answers as your config, and open it |
| Option | Default | What it does |
|---|---|---|
setup-first-start | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
pick-running | o 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-shell | o s (after the leader) | Switch to a shell of this project, or open a new one |
shell | Open a new shell: a buffer of commands and what they printed | |
shell-accept-or-end | ctrl-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-right | right (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-before | b (blocks) | Show what the block showed the run before this one |
shell-beside | v (blocks) | Show the block in a pane beside, following it as it prints, with a filter of its own (/) |
shell-blocks | Go to blocks mode, to move between commands and act on them | |
shell-blocks-down | down, j (blocks) | Down a step: the next row, or the next command |
shell-blocks-filter | / (blocks) | Filter the rows the command printed |
shell-blocks-first | g (blocks) | The first command |
shell-blocks-keys | ? (blocks) | List the keys of blocks mode |
shell-blocks-last | G (blocks) | The last command |
shell-blocks-next | J, ctrl-down (blocks) | The next command, past its rows |
shell-blocks-out | h, left (blocks) | Back out of the rows to the command |
shell-blocks-previous | K, ctrl-up (blocks) | The command before |
shell-blocks-prompt | a, esc, i (blocks) | Go back to the prompt |
shell-blocks-rerun | r (blocks) | Run the selected command again in its place, staying on it |
shell-blocks-rows | l, right (blocks) | Into the rows the command printed |
shell-blocks-type | Go back to the prompt and type there what the key types; a key that types nothing does nothing | |
shell-blocks-up | k, up (blocks) | Up a step: the row before, or the command before |
shell-change | C (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-clear | c (after the leader; in shell buffers) | Take the finished blocks out of the shell |
shell-copy-command | Y (blocks, after the leader; in shell buffers) | Copy the block’s command |
shell-copy-or-interrupt | ctrl-c (vscode’s typing mode; in shell buffers) | Copy the selection, or with nothing selected interrupt the running block |
shell-copy-output | y (blocks, after the leader; in shell buffers) | Copy what the block printed |
shell-diff-before | d (blocks) | Show what changed in the block since the run before |
shell-drill-keep | ctrl-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-edit | Put the block’s command at the prompt, to change and run again | |
shell-enter | enter (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-esc | esc (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-handoff | ctrl-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-history | ctrl-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-back | up (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-forward | down (every style’s typing mode; in shell buffers) | Put the command typed after at the prompt, or back to what was typed |
shell-interrupt | ctrl-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-kill | x (after the leader; in shell buffers) | Stop the running block at the cursor, or the latest one, for good |
shell-line | Run 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-notify | Send a notification each time a watch’s rows change, saying how, while Greed isn’t focused; again to stop | |
shell-output-open | o (blocks), v (after the leader; in shell buffers) | Open the block’s whole output in a buffer of its own |
shell-peek | Open the block in a float, to filter it, act on its rows or stop it, and close it again with esc | |
shell-pretty | p (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-rerun | r (after the leader; in shell buffers) | Run the block’s command again, in the folder and with the variables it had |
shell-rerun-here | R (after the leader; in shell buffers) | Run the block’s command again in the shell’s folder now |
shell-rerun-in-place | Run the block’s command again in its place, keeping what it showed before (b in blocks mode shows it) | |
shell-run | Run what’s at the prompt | |
shell-select-output | g o (every style’s command mode; in shell buffers) | Select the block’s output, to copy or search |
shell-show-all | S (after the leader; in shell buffers) | Show the block at the cursor’s output as it came, without a filter or a sort |
shell-sort | s (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-unfilter | esc (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 |
| Option | Default | What it does |
|---|---|---|
shell-agent-max-output | 30000 | How 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-aliases | true | Whether 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-blocks | true | In 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-timeout | 2000 | Milliseconds a program asked for completions (kubectl, fish, carapace, –help) gets to answer |
shell-confirm-lines | 5 | Running a prompt of more lines than this asks first, as after pasting a transcript |
shell-editor | true | Whether 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-rc | false | Whether the shell running those lines reads its startup files (-i), for your aliases and functions |
shell-fold-lines | 0 | A block that printed more lines than this folds as it ends, unless it failed; 0 never |
shell-fold-older | false | Running a command folds the finished blocks above it, except those that failed |
shell-fold-structured | 100 | JSON 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-size | 5000 | How 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-lines | 5000 | How many lines of a block’s output a shell shows: the first half and the latest half |
shell-max-record | 8388608 | How 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-suggestions | true | Whether a shell’s prompt suggests the rest of a command typed before, after the cursor |
shell-watch-minutes | 60 | How 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.
| Command | Keys | What it does |
|---|---|---|
slide-first | Go to the first slide, on every screen showing the slides | |
slide-last | Go to the last slide, on every screen showing the slides | |
slide-next | Go to the next slide, on every screen showing the slides | |
slide-prev | Go to the slide before, on every screen showing the slides | |
slides | m 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-presenter | Show the slides with their notes, the next slide and the time beside them, for whoever presents | |
slides-stop | Stop showing slides here and go back to the file; other screens go on |
| Option | Default | What it does |
|---|---|---|
slides-center | false | Center what’s on a slide, across and down: each heading, and the rest as one block |
slides-margin | 2 | Cells left empty above and left of a slide |
slides-scale | 1 | How 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.
| Command | Keys | What it does |
|---|---|---|
snippet | Pick one of the snippets for this file’s language by name and put it in | |
snippets-edit | Open your snippets for this file’s language, making the file if there’s none |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
messages | Show the last messages in full, newest last |
| Option | Default | What it does |
|---|---|---|
statusline-caps | "round" | The ends of status line pills: “round” (needs a Nerd Font) or “none” |
statusline-pills | false | Show 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.
| Option | Default | What it does |
|---|---|---|
color-swatches | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
open-link | g x (in terminal buffers) | Open the link under the cursor, or the file it names, at the line it says |
pick-terminal | t (after the leader) | Switch to a terminal, or open a new one |
task | o 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 |
terminal | Open a terminal running a command, or your shell | |
terminal-close | End the terminal’s program and close it | |
terminal-esc | esc (terminal) | Send esc to the terminal’s program; a second one quickly after stops typing into it |
terminal-input | a, enter, i (in terminal buffers) | Type into the terminal’s program |
terminal-key | Send the key to the terminal’s program | |
terminal-leader | ctrl-space (terminal) | Stop typing into the terminal and open the leader, for the keys after it |
terminal-leave | ctrl-\ (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-paste | p (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-references | d (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-output | g o (in terminal buffers) | Select the output of the command at the cursor in a terminal, to copy or search |
terminal-send | T (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 |
| Option | Default | What it does |
|---|---|---|
terminal-esc-wait | true | Hold 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-notifications | true | Whether what a program in a terminal notifies (OSC 9, OSC 777) also goes to your desktop, as Greed’s own notifications do |
terminal-scrollback | 10000 | How 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-integration | true | Whether 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.
| Command | Keys | What it does |
|---|---|---|
theme | ctrl-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.
| Command | Keys | What it does |
|---|---|---|
todo-comments | List the TODO, FIXME and like comments in the project’s files |
| Option | Default | What it does |
|---|---|---|
todo-comments | true | Pick 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.
| Command | Keys | What it does |
|---|---|---|
tree | e (after the leader) | Open the file tree, move to it, or close it if you’re in it |
tree-add | a (in tree buffers) | Make a file in the folder on the cursor, or a folder with a / at the end |
tree-close | Close the file tree | |
tree-delete | d (in tree buffers) | Delete the file or folder on the cursor, after you press y |
tree-edit | e (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-fold | h (in tree buffers) | Fold the folder on the cursor, or the one it’s in |
tree-open | enter, l (in tree buffers) | Open the file on the cursor, or fold or unfold the folder |
tree-refresh | r (in tree buffers) | Read the tree from the disk again |
tree-rename | R (in tree buffers) | Rename or move the file or folder on the cursor; open files go along |
| Option | Default | What 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.
| Command | Keys | What it does |
|---|---|---|
tutor | Learn 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.
| Command | Keys | What it does |
|---|---|---|
undo-tree | u t (after the leader) | Show every state the file has been in, branches included, and go to one |
undo-tree-cancel | esc (in undo-tree buffers) | Close the undo tree and put the text back as it was |
undo-tree-down | down, j (in undo-tree buffers) | Go to the next state down the undo tree |
undo-tree-keep | enter, q (in undo-tree buffers) | Close the undo tree, keeping the text as it is |
undo-tree-up | k, 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.
| Command | Keys | What it does |
|---|---|---|
blame-line | g b (after the leader) | Show who last changed the line under the cursor, and when |
change-diff-close | q (in change-diff buffers) | Go back to the change stack |
change-stack | g l (after the leader) | Show the changes from the last pushed one to the working copy, to describe, squash, move or abandon |
change-stack-abandon | a (in change-stack buffers) | Abandon it, after asking |
change-stack-close | q (in change-stack buffers) | Close the stack and go back to what was shown before |
change-stack-describe | d (in change-stack buffers) | Describe the change |
change-stack-down | alt-j (in change-stack buffers) | Move it below the change below it |
change-stack-edit | e (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-new | n (in change-stack buffers) | Start a new change on top of it |
change-stack-refresh | r (in change-stack buffers) | Read the stack again |
change-stack-show | enter (in change-stack buffers) | Show the change’s diff |
change-stack-split | S (in change-stack buffers) | Split it: pick the hunks that go in a change of their own before it |
change-stack-squash | s (in change-stack buffers) | Squash it into its parent, keeping the parent’s description |
change-stack-undo | u (in change-stack buffers) | Undo the last jj operation |
change-stack-up | alt-k (in change-stack buffers) | Move it above the change above it |
changes | g 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-all | a (in hunk-picker buffers) | Pick every hunk, or none if all are picked |
hunk-picker-cancel | esc, q (in hunk-picker buffers) | Put back what was shown, picking nothing |
hunk-picker-done | enter (in hunk-picker buffers) | Go on with the hunks picked |
hunk-picker-toggle | space (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-commit | u 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-file | g 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-change | g r (after the leader) | Put the change under the cursor back the way it was at the last commit |
select-around-change | m a g (helix’s command mode) | Select the lines of the change since the last commit under the cursor |
select-inside-change | m i g (helix’s command mode) | Select the text of the change since the last commit under the cursor |
stage-change | g a (after the leader) | Stage the change under the cursor for the next git commit, leaving the rest |
staged | g S (after the leader) | Show what’s staged for the next git commit, to unstage hunks or commit |
staged-commit | c (in staged-diff buffers) | Commit what’s staged |
staged-refresh | r (in staged-diff buffers) | Read what’s staged again |
staged-unstage | u (in staged-diff buffers) | Unstage the hunk under the cursor |
why-lines | g w (after the leader) | Show how the selected lines came to be: each change that made them, with its description and diff |
| Option | Default | What it does |
|---|---|---|
vcs-signs | true | Show 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.
| Command | Keys | What it does |
|---|---|---|
versions-1 | Pick choice 1 on the page about another version of Greed | |
versions-2 | Pick choice 2 on the page about another version of Greed | |
versions-3 | Pick choice 3 on the page about another version of Greed | |
versions-cancel | Leave the session another version of Greed runs as it is, and stop | |
versions-next | Go 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.
| Command | Keys | What it does |
|---|---|---|
vim-append | a (vim) | Insert after the cursor |
vim-append-line-end | A (vim) | Insert at the end of the line |
vim-block-append | A (vim-visual-block) | Type after the block on each of its lines |
vim-block-insert | I (vim-visual-block) | Type before the block on each of its lines |
vim-change-line | S (vim) | Change the whole line |
vim-change-newer | g , (vim) | Go to a newer place in the change list |
vim-change-older | g ; (vim) | Go to an older place in the change list |
vim-change-to-end | C (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-decrement | ctrl-x (vim) | Subtract the count (or 1) from the number at or after the cursor |
vim-delete-char | x (vim) | Delete the character under the cursor |
vim-delete-char-before | X (vim) | Delete the character before the cursor |
vim-delete-to-end | D (vim) | Delete to the end of the line |
vim-expand-selection | alt-o (vim, vim-visual) | Select the syntax node around the cursor or selection, in visual mode |
vim-increment | ctrl-a (vim) | Add the count (or 1) to the number at or after the cursor |
vim-insert | i (vim) | Insert before the cursor |
vim-insert-last | g i (vim) | Insert where insert mode was last left |
vim-insert-line-start | I (vim) | Insert at the first non-blank of the line |
vim-insert-one | ctrl-o (vim-insert) | Run one normal mode command, then go on typing |
vim-join | J (vim) | Join the next line onto this one, with one space |
vim-join-raw | g J (vim) | Join the next line onto this one as it is |
vim-jump-to-word | g s (vim) | Label every word on screen and jump to the one typed |
vim-macro | q (vim) | Record a macro into the register typed next, or stop recording |
vim-mark | m (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-0 | 0 (vim, vim-visual) | Vim motion 0 |
vim-motion-; | ; (vim, vim-visual) | Vim motion ; |
vim-motion-B | B (vim, vim-visual) | Vim motion B |
vim-motion-E | E (vim, vim-visual) | Vim motion E |
vim-motion-F | F (vim, vim-visual) | Vim motion F |
vim-motion-G | G (vim, vim-visual) | Vim motion G |
vim-motion-H | H (vim, vim-visual) | Vim motion H |
vim-motion-L | L (vim, vim-visual) | Vim motion L |
vim-motion-M | M (vim, vim-visual) | Vim motion M |
vim-motion-T | T (vim, vim-visual) | Vim motion T |
vim-motion-W | W (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-b | b (vim, vim-visual) | Vim motion b |
vim-motion-e | e (vim, vim-visual) | Vim motion e |
vim-motion-f | f (vim, vim-visual) | Vim motion f |
vim-motion-gE | g E (vim, vim-visual) | Vim motion g E |
vim-motion-g_ | g _ (vim, vim-visual) | Vim motion g _ |
vim-motion-ge | g e (vim, vim-visual) | Vim motion g e |
vim-motion-gg | g g (vim, vim-visual) | Vim motion g g |
vim-motion-h | h (vim, vim-visual) | Vim motion h |
vim-motion-j | j (vim, vim-visual) | Vim motion j |
vim-motion-k | k (vim, vim-visual) | Vim motion k |
vim-motion-l | l (vim, vim-visual) | Vim motion l |
vim-motion-t | t (vim, vim-visual) | Vim motion t |
vim-motion-w | w (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-append | A, a (vim-multi) | Type after every selection |
vim-multi-back | ctrl-p (vim-multi) | Drop the match added last |
vim-multi-change | c, s (vim-multi) | Delete every selection and type in each place |
vim-multi-copy | y (vim-multi) | Copy every selection |
vim-multi-delete | d, x (vim-multi) | Delete every selection |
vim-multi-insert | I, i (vim-multi) | Type before every selection |
vim-multi-next | ctrl-n (vim, vim-multi) | Select the word under the cursor, or add its next match |
vim-multi-skip | ctrl-x (vim-multi) | Drop this match and add the next one instead |
vim-normal | esc (vim-insert, vim-multi, vim-visual), V, v (vim-visual), ctrl-v (vim-visual-block) | Back to normal mode |
vim-open-above | O (vim) | Open a line above and insert |
vim-open-below | o (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-c | c (vim, vim-visual) | Vim operator c, followed by a motion |
vim-operator-d | d (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-gU | g U (vim), U (vim-visual) | Vim operator gU, followed by a motion |
vim-operator-gc | g c (vim, vim-visual) | Vim operator gc, followed by a motion |
vim-operator-gq | g q (vim, vim-visual) | Vim operator gq, followed by a motion |
vim-operator-gu | g u (vim), u (vim-visual) | Vim operator gu, followed by a motion |
vim-operator-gw | g 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-y | y (vim, vim-visual) | Vim operator y, followed by a motion |
vim-operator-zf | z f (vim, vim-visual) | Vim operator zf, followed by a motion |
vim-paste-after | p (vim) | Paste after the cursor, or below the line |
vim-paste-before | P (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-unsaved | Z Q (vim) | Close without saving (ZQ) |
vim-redo | ctrl-r (vim) | Redo |
vim-replace-back | backspace (vim-replace) | Put back the character typed over last, or move left |
vim-replace-char | r (vim) | Replace the character under the cursor with the next one typed |
vim-replace-mode | R (vim) | Type over the text |
vim-replace-typed | Type over the character under the cursor | |
vim-reselect | g 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-match | g n (vim) | Select the search match under the cursor, or the next one |
vim-shrink-selection | alt-i (vim, vim-visual) | Shrink the selection back, or to the first syntax node inside it |
vim-substitute | s (vim) | Change the character under the cursor |
vim-switch-case | ~ (vim) | Switch the case of the character under the cursor and move on |
vim-undo | u (vim) | Undo |
vim-undo-line | U (vim) | Put back the line last changed as it was before (U) |
vim-visual | v (vim) | Select characters, starting here |
vim-visual-around | a (vim-visual) | Select around the text object typed next |
vim-visual-block | ctrl-v (vim, vim-visual) | Select a block of columns across lines |
vim-visual-inside | i (vim-visual) | Select inside the text object typed next |
vim-visual-join | J (vim-visual) | Join the selected lines, with one space |
vim-visual-line | V (vim) | Select whole lines, starting with this one |
vim-visual-paste | P, p (vim-visual) | Replace the selection with what’s in the register |
vim-visual-replace | r (vim-visual) | Replace every selected character with the next one typed |
vim-visual-surround | S (vim-visual) | Wrap the selection in the pair typed next |
vim-visual-swap | o (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.
| Command | Keys | What it does |
|---|---|---|
watcher-drafts | The replies watchers drafted: pick one to send, change or drop | |
watcher-log | Show a watcher’s log | |
watcher-off | Turn a watcher off, across restarts | |
watcher-on | Turn a watcher on, out of quarantine | |
watcher-pause | Pause a watcher, for an hour or as long as you say (30m, 2h) | |
watcher-quarantine | Put a watcher back in quarantine: it reads and logs only | |
watcher-release | Let a watcher out of quarantine (turn it on) | |
watcher-resume | Resume a paused or stopped watcher | |
watcher-run | Wake a watcher now on what’s waiting | |
watcher-sign | Sign what a watcher sends on its own with a text, or off | |
watchers | Your watchers: their state; pick one to pause, turn off, run now or read its log | |
watchers-pause | Pause every watcher for an hour, or as long as you say (30m, 2h) |