help

package
v0.3.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package help holds the application's help pages. They are written as Markdown, compiled into the binary alongside the front end, and rendered once on first use; the interface fetches the result and shows it.

Shortcuts are not written into the prose by hand. Pages refer to actions by id — `[[key:splitRight]]` inline, `{{keys:Panes}}` for a table — and those are expanded from the one table in keys.go, which the command palette reads as well. A binding therefore cannot be changed in one place and left stale in another.

Index

Constants

This section is empty.

Variables

View Source
var Keys = []Key{

	{ID: "splitRight", Keys: "Ctrl+Shift+D", Label: "Split right (agent)", Section: "Panes", Page: "panes"},
	{ID: "splitDown", Keys: "Ctrl+Shift+E", Label: "Split down (agent)", Section: "Panes", Page: "panes"},

	{ID: "splitRightChoose", Label: "Split right (choose agent)…", Section: "Panes", Page: "agents"},
	{ID: "splitRightShell", Label: "Split right (shell)", Section: "Panes", Page: "panes"},
	{ID: "movePaneLeft", Keys: "Ctrl+Shift+←", Label: "Move pane left", Section: "Panes", Page: "rearranging"},
	{ID: "movePaneRight", Keys: "Ctrl+Shift+→", Label: "Move pane right", Section: "Panes", Page: "rearranging"},
	{ID: "movePaneUp", Keys: "Ctrl+Shift+↑", Label: "Move pane up", Section: "Panes", Page: "rearranging"},
	{ID: "movePaneDown", Keys: "Ctrl+Shift+↓", Label: "Move pane down", Section: "Panes", Page: "rearranging"},
	{ID: "movePaneToNewTab", Label: "Move pane to a tab of its own", Section: "Panes", Page: "rearranging"},
	{ID: "tilePanes", Label: "Tile these panes evenly", Section: "Panes", Page: "rearranging"},
	{ID: "zoomPane", Keys: "Ctrl+Shift+Z", Label: "Zoom pane", Section: "Panes", Page: "panes"},
	{ID: "restartPane", Label: "Restart pane", Section: "Panes", Page: "panes"},
	{ID: "closePane", Keys: "Ctrl+Shift+W", Label: "Close pane", Section: "Panes", Page: "panes"},

	{ID: "newAgentTab", Keys: "Ctrl+Shift+T", Label: "New agent tab", Section: "Tabs", Page: "panes"},
	{ID: "newAgentTabChoose", Label: "New agent tab (choose agent)…", Section: "Tabs", Page: "agents"},
	{ID: "newShellTab", Keys: "Ctrl+Shift+N", Label: "New shell tab", Section: "Tabs", Page: "panes"},
	{ID: "nextTab", Keys: "Ctrl+Tab", Label: "Next tab", Section: "Tabs", NoPalette: true},
	{ID: "prevTab", Keys: "Ctrl+Shift+Tab", Label: "Previous tab", Section: "Tabs", NoPalette: true},
	{ID: "selectTab", Keys: "Alt+1 … Alt+9", Label: "Select tab by number", Section: "Tabs", NoPalette: true},
	{ID: "mergeAllTabs", Label: "Merge every tab into this one", Section: "Tabs", Page: "rearranging"},

	{ID: "moveTabLeft", Label: "Move tab left", Section: "Tabs", Page: "rearranging"},
	{ID: "moveTabRight", Label: "Move tab right", Section: "Tabs", Page: "rearranging"},

	{ID: "toggleBroadcast", Keys: "Ctrl+Shift+B", Label: "Toggle broadcast", Section: "Agents", Page: "broadcast"},

	{ID: "toggleBroadcastMember", Label: "Add this pane to broadcast, or take it out", Section: "Agents", Page: "broadcast"},
	{ID: "promptAll", Keys: "Ctrl+Shift+P", Label: "Prompt all panes", Section: "Agents", Page: "broadcast"},
	{ID: "fanout", Keys: "Ctrl+Shift+X", Label: "Fan out — turn this pane's plan into agents", Section: "Agents", Page: "fanout"},
	{ID: "agents", Keys: "Ctrl+Shift+A", Label: "All agents across projects", Section: "Agents", Page: "status"},
	{ID: "apiKeys", Label: "API keys…", Section: "Agents", Page: "agents"},

	{ID: "worktrees", Keys: "Ctrl+Shift+G", Label: "Worktrees", Section: "Git", Page: "worktrees"},
	{ID: "changes", Keys: "Ctrl+Shift+S", Label: "Review changes, commit and push", Section: "Git", Page: "changes"},

	{ID: "palette", Keys: "Ctrl+Shift+K", Label: "Command palette", Section: "Finding your way", NoPalette: true},

	{ID: "nextRegion", Keys: "F6", Label: "Move to the next part of the window", Section: "Finding your way", NoPalette: true},
	{ID: "prevRegion", Keys: "Shift+F6", Label: "Move to the previous part of the window", Section: "Finding your way", NoPalette: true},
	{ID: "findInTerminal", Keys: "Ctrl+Shift+F", Label: "Find in terminal", Section: "Finding your way"},
	{ID: "history", Keys: "Ctrl+Shift+R", Label: "Resume a past conversation", Section: "Finding your way", Page: "history"},
	{ID: "projects", Keys: "Ctrl+Shift+O", Label: "Projects", Section: "Finding your way", Page: "projects"},
	{ID: "help", Keys: "F1", Label: "Help", Section: "Finding your way", Page: "getting-started"},

	{ID: "settings", Keys: "Ctrl+,", Label: "Settings", Section: "The window", Page: "settings"},
	{ID: "fontUp", Keys: "Ctrl+=", Label: "Increase font size", Section: "The window"},
	{ID: "fontDown", Keys: "Ctrl+-", Label: "Decrease font size", Section: "The window"},
	{ID: "fontReset", Keys: "Ctrl+0", Label: "Reset font size", Section: "The window"},
	{ID: "remote", Label: "Remote access…", Section: "The window", Page: "remote"},
	{ID: "detach", Label: "Detach — close the window, leave agents running", Section: "The window", Page: "persistence"},
	{ID: "quit", Label: "Quit — stop every agent in every project", Section: "The window",
		Confirm: "Stop every agent in every open project?"},
}

Keys is every action, in the order the palette and the tables show them.

View Source
var Sections = []string{
	"Panes",
	"Tabs",
	"Agents",
	"Git",
	"Finding your way",
	"The window",
}

Sections are the groups the shortcut tables are drawn in, in order.

Functions

func ShortcutsMarkdown

func ShortcutsMarkdown() string

ShortcutsMarkdown renders the whole key table as the README carries it. The README is the one copy of this that is not rendered at run time, so a test compares the two and can rewrite it.

func Slugs

func Slugs() []string

Slugs returns the page identifiers, in reading order.

Types

type Key

type Key struct {
	// ID is stable and is what the front end hangs its implementation off;
	// it is also what `[[key:id]]` in a help page refers to.
	ID string `json:"id"`
	// Keys is the binding as it is written for a reader, or "" for actions
	// that are only reachable from the command palette.
	Keys string `json:"keys"`
	// Label is the one line shown in the palette and in the shortcut tables.
	Label string `json:"label"`
	// Section groups the action in the shortcut tables.
	Section string `json:"section"`
	// Page is the help page that explains the action, if one does.
	Page string `json:"page,omitempty"`
	// NoPalette keeps navigation that only makes sense from the keyboard out
	// of the palette — opening the palette from the palette, most of all.
	NoPalette bool `json:"noPalette,omitempty"`
	// Confirm is the question to ask before running, for the actions that
	// stop other people's work.
	Confirm string `json:"confirm,omitempty"`
}

Key is one action, its binding if it has one, and where it belongs in the shortcut tables.

func InSection

func InSection(section string) []Key

InSection returns the actions of one section, in table order.

func Lookup

func Lookup(id string) (Key, bool)

Lookup returns the action with the given id.

func (Key) Name

func (k Key) Name() string

Name is the action as prose calls it: the label up to the dash that introduces the gloss the palette needs and a sentence does not. "Detach — close the window, leave agents running" is the palette entry; "Detach" is what a page says.

type Page

type Page struct {
	Slug string `json:"slug"`
	// Title is the page's first heading.
	Title string `json:"title"`
	// Summary is its first paragraph, shown under the title in the contents.
	Summary string `json:"summary"`
	// HTML is the rendered page.
	HTML string `json:"html"`
	// Text is the same content as words only, which is what search matches.
	Text string `json:"text"`
}

Page is one help page, rendered.

func Pages

func Pages() ([]Page, error)

Pages returns every help page, in reading order. The result is rendered on the first call and reused; the content is compiled in, so it cannot change underneath us.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL