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_background: keybind("ctrl+b", "Background blocking session tools"),
|
||||||
session_compact: keybind("<leader>c", "Compact the session"),
|
session_compact: keybind("<leader>c", "Compact the session"),
|
||||||
session_queued_prompts: keybind("<leader>q", "Manage queued prompts"),
|
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: keybind("right", "Go to next child session"),
|
||||||
session_child_cycle_reverse: keybind("left", "Go to previous child session"),
|
session_child_cycle_reverse: keybind("left", "Go to previous child session"),
|
||||||
session_parent: keybind("up", "Go to parent session"),
|
session_parent: keybind("up", "Go to parent session"),
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,13 @@ export function Composer(props: ComposerProps) {
|
||||||
mode: "composer",
|
mode: "composer",
|
||||||
enabled: () => props.open,
|
enabled: () => props.open,
|
||||||
commands: [
|
commands: [
|
||||||
{ bind: "left", title: "Previous tab", group: "Composer", run: () => switchTab(-1) },
|
{ bind: "left", title: "Previous tab", group: "Activity", run: () => switchTab(-1) },
|
||||||
{ bind: "right", title: "Next tab", group: "Composer", run: () => switchTab(1) },
|
{ bind: "right", title: "Next tab", group: "Activity", run: () => switchTab(1) },
|
||||||
{ bind: "escape", title: "Close composer", group: "Composer", run: close },
|
{ bind: "escape", title: "Close activity", group: "Activity", run: close },
|
||||||
{
|
{
|
||||||
bind: "<leader>down",
|
bind: "<leader>down",
|
||||||
title: "Toggle composer",
|
title: "Hide activity",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
run: close,
|
run: close,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ export function ShellTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.shell.up",
|
id: "composer.shell.up",
|
||||||
title: "Previous shell",
|
title: "Previous shell",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "up",
|
bind: "up",
|
||||||
run() {
|
run() {
|
||||||
const list = entries()
|
const list = entries()
|
||||||
|
|
@ -68,7 +68,7 @@ export function ShellTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.shell.down",
|
id: "composer.shell.down",
|
||||||
title: "Next shell",
|
title: "Next shell",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "down",
|
bind: "down",
|
||||||
run() {
|
run() {
|
||||||
const list = entries()
|
const list = entries()
|
||||||
|
|
@ -79,7 +79,7 @@ export function ShellTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.shell.kill",
|
id: "composer.shell.kill",
|
||||||
title: "Kill shell command",
|
title: "Kill shell command",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "ctrl+d",
|
bind: "ctrl+d",
|
||||||
run() {
|
run() {
|
||||||
const entry = selectedEntry()
|
const entry = selectedEntry()
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.subagent.up",
|
id: "composer.subagent.up",
|
||||||
title: "Previous subagent",
|
title: "Previous subagent",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "up",
|
bind: "up",
|
||||||
run() {
|
run() {
|
||||||
const list = entries()
|
const list = entries()
|
||||||
|
|
@ -161,7 +161,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.subagent.down",
|
id: "composer.subagent.down",
|
||||||
title: "Next subagent",
|
title: "Next subagent",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "down",
|
bind: "down",
|
||||||
run() {
|
run() {
|
||||||
const list = entries()
|
const list = entries()
|
||||||
|
|
@ -172,7 +172,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.subagent.select",
|
id: "composer.subagent.select",
|
||||||
title: "Navigate to subagent",
|
title: "Navigate to subagent",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "return",
|
bind: "return",
|
||||||
run() {
|
run() {
|
||||||
const entry = entries()[store.selected]
|
const entry = entries()[store.selected]
|
||||||
|
|
@ -182,7 +182,7 @@ export function SubagentsTab(props: { sessionID: string }) {
|
||||||
{
|
{
|
||||||
id: "composer.subagent.interrupt",
|
id: "composer.subagent.interrupt",
|
||||||
title: "Interrupt subagent",
|
title: "Interrupt subagent",
|
||||||
group: "Composer",
|
group: "Activity",
|
||||||
bind: "ctrl+d",
|
bind: "ctrl+d",
|
||||||
run() {
|
run() {
|
||||||
const entry = selectedEntry()
|
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",
|
name: "session.child.first",
|
||||||
category: "Session",
|
category: "Session",
|
||||||
run: () => {
|
run: () => {
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ test("resolves a session move keybind", () => {
|
||||||
expect(config.keybinds.get("session.move")).toMatchObject([{ key: "ctrl+o" }])
|
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 })
|
const config = resolve({}, { terminalSuspend: true })
|
||||||
|
|
||||||
expect(config.keybinds.get("session.child.first")).toMatchObject([{ key: "down,<leader>down" }])
|
expect(config.keybinds.get("session.child.first")).toMatchObject([{ key: "down,<leader>down" }])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue