Documentation
¶
Overview ¶
Package cli implements agentbar's subcommands.
Index ¶
- func Close()
- func Daemon()
- func Doctor()
- func Ensure(args []string)
- func Event(args []string)
- func Focus(args []string)
- func Install(args []string)
- func Jump(args []string)
- func Nudge()
- func Popup(args []string)
- func Reflow()
- func Sweep()
- func TmuxInit()
- func TmuxVersionOK(v string) bool
- func Toggle(args []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Daemon ¶
func Daemon()
Daemon runs the snapshot daemon in the foreground (normally started detached by openAll or by a viewer that finds no daemon).
func Ensure ¶
func Ensure(args []string)
Ensure is the after-new-window / after-new-session hook target.
func Event ¶
func Event(args []string)
Event is the hook receiver. It must never fail loudly: any problem is logged and the process exits 0 so Claude Code is never blocked and never shows an error for a sidebar hiccup.
func Focus ¶
func Focus(args []string)
Focus (prefix A): into the sidebar, or back to where you were. With no sidebar in this window it opens them everywhere and focuses this one.
func Install ¶
func Install(args []string)
Install merges agentbar's hooks into ~/.claude/settings.json (or removes them with --uninstall). The file is backed up first. Hooks pointing at an older binary location are migrated to this one.
func Jump ¶
func Jump(args []string)
Jump moves focus to a pane (used by the sidebar; also handy from scripts).
func Popup ¶
func Popup(args []string)
Popup (prefix a, or a click on the indicator) floats the session list in the centre of the client, as a picker sized to its content. args: the client to show it on and the pane the user is in, both expanded by tmux in the binding.
func Sweep ¶
func Sweep()
Sweep is the pane-exited / after-kill-pane hook target: close sidebars left alone in a window.
func TmuxInit ¶
func TmuxInit()
TmuxInit installs key bindings and hooks into the running tmux server. tmux.conf runs it once via `run-shell "<exe> tmux-init"`.
@agentbar-key popup key after prefix (default a) @agentbar-focus-key sidebar focus key after prefix (default A) @agentbar-sidebar-key sidebar toggle key after prefix (default none)
func TmuxVersionOK ¶
TmuxVersionOK reports whether a `tmux -V` string is 3.2 or newer.
Types ¶
This section is empty.