mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
fix(app): toggle file tree and review panel better ux (#12481)
This commit is contained in:
parent
4abf8049c9
commit
b5b93aea42
5 changed files with 180 additions and 161 deletions
|
|
@ -139,11 +139,8 @@ export const useSessionCommands = (input: {
|
|||
title: input.language.t("command.fileTree.toggle"),
|
||||
description: "",
|
||||
category: input.language.t("command.category.view"),
|
||||
onSelect: () => {
|
||||
const opening = !input.layout.fileTree.opened()
|
||||
if (opening && !input.view().reviewPanel.opened()) input.view().reviewPanel.open()
|
||||
input.layout.fileTree.toggle()
|
||||
},
|
||||
keybind: "mod+\\",
|
||||
onSelect: () => input.layout.fileTree.toggle(),
|
||||
},
|
||||
{
|
||||
id: "terminal.new",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue