fix(tui): call work panel activity
This commit is contained in:
parent
56c0658e6f
commit
43a0166303
6 changed files with 15 additions and 15 deletions
|
|
@ -97,7 +97,7 @@ export const Definitions = {
|
|||
session_background: keybind("ctrl+b", "Background blocking session tools"),
|
||||
session_compact: keybind("<leader>c", "Compact the session"),
|
||||
session_queued_prompts: keybind("<leader>q", "Manage queued prompts"),
|
||||
session_child_first: keybind("down,<leader>down", "Toggle subagent picker"),
|
||||
session_child_first: keybind("down,<leader>down", "Show or hide activity"),
|
||||
session_child_cycle: keybind("right", "Go to next child session"),
|
||||
session_child_cycle_reverse: keybind("left", "Go to previous child session"),
|
||||
session_parent: keybind("up", "Go to parent session"),
|
||||
|
|
|
|||
|
|
@ -93,13 +93,13 @@ export function Composer(props: ComposerProps) {
|
|||
mode: "composer",
|
||||
enabled: () => props.open,
|
||||
commands: [
|
||||
{ bind: "left", title: "Previous tab", group: "Composer", run: () => switchTab(-1) },
|
||||
{ bind: "right", title: "Next tab", group: "Composer", run: () => switchTab(1) },
|
||||
{ bind: "escape", title: "Close composer", group: "Composer", run: close },
|
||||
{ bind: "left", title: "Previous tab", group: "Activity", run: () => switchTab(-1) },
|
||||
{ bind: "right", title: "Next tab", group: "Activity", run: () => switchTab(1) },
|
||||
{ bind: "escape", title: "Close activity", group: "Activity", run: close },
|
||||
{
|
||||
bind: "<leader>down",
|
||||
title: "Toggle composer",
|
||||
group: "Composer",
|
||||
title: "Hide activity",
|
||||
group: "Activity",
|
||||
run: close,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export function ShellTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.shell.up",
|
||||
title: "Previous shell",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "up",
|
||||
run() {
|
||||
const list = entries()
|
||||
|
|
@ -68,7 +68,7 @@ export function ShellTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.shell.down",
|
||||
title: "Next shell",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "down",
|
||||
run() {
|
||||
const list = entries()
|
||||
|
|
@ -79,7 +79,7 @@ export function ShellTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.shell.kill",
|
||||
title: "Kill shell command",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "ctrl+d",
|
||||
run() {
|
||||
const entry = selectedEntry()
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.subagent.up",
|
||||
title: "Previous subagent",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "up",
|
||||
run() {
|
||||
const list = entries()
|
||||
|
|
@ -161,7 +161,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.subagent.down",
|
||||
title: "Next subagent",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "down",
|
||||
run() {
|
||||
const list = entries()
|
||||
|
|
@ -172,7 +172,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.subagent.select",
|
||||
title: "Navigate to subagent",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "return",
|
||||
run() {
|
||||
const entry = entries()[store.selected]
|
||||
|
|
@ -182,7 +182,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
|||
{
|
||||
id: "composer.subagent.interrupt",
|
||||
title: "Interrupt subagent",
|
||||
group: "Composer",
|
||||
group: "Activity",
|
||||
bind: "ctrl+d",
|
||||
run() {
|
||||
const entry = selectedEntry()
|
||||
|
|
|
|||
|
|
@ -740,7 +740,7 @@ export function Session() {
|
|||
},
|
||||
},
|
||||
{
|
||||
title: "Toggle subagent picker",
|
||||
title: composer.open || !!session()?.parentID ? "Hide activity" : "Show activity",
|
||||
name: "session.child.first",
|
||||
category: "Session",
|
||||
run: () => {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ test("resolves a session move keybind", () => {
|
|||
expect(config.keybinds.get("session.move")).toMatchObject([{ key: "ctrl+o" }])
|
||||
})
|
||||
|
||||
test("opens the subagent picker with down", () => {
|
||||
test("opens activity with down", () => {
|
||||
const config = resolve({}, { terminalSuspend: true })
|
||||
|
||||
expect(config.keybinds.get("session.child.first")).toMatchObject([{ key: "down,<leader>down" }])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue