From 7d783d473fa8d20138bc08d18626645f3dc62d21 Mon Sep 17 00:00:00 2001 From: Chirag Chandrashekhar Date: Fri, 19 Dec 2025 15:21:28 +0530 Subject: [PATCH] feat: ability to open terminal at the root of a workspace (#6467) * enhancement: ability to open terminal at the root of a workspace * fix: imports --------- Co-authored-by: Sid --- .../Sidebar/Sections/CollectionsSection/index.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js b/packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js index 029afe83b..120b02cd9 100644 --- a/packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js @@ -10,7 +10,9 @@ import { IconSearch, IconSortAscendingLetters, IconSortDescendingLetters, - IconSquareX + IconSquareX, + IconBox, + IconTerminal2 } from '@tabler/icons'; import { importCollection, openCollection } from 'providers/ReduxStore/slices/collections/actions'; @@ -25,7 +27,7 @@ import RemoveCollectionsModal from 'components/Sidebar/Collections/RemoveCollect import CreateCollection from 'components/Sidebar/CreateCollection'; import Collections from 'components/Sidebar/Collections'; import SidebarSection from 'components/Sidebar/SidebarSection'; -import { IconBox } from '@tabler/icons'; +import { openDevtoolsAndSwitchToTerminal } from 'utils/terminal'; const CollectionsSection = () => { const [showSearch, setShowSearch] = useState(false); @@ -176,6 +178,14 @@ const CollectionsSection = () => { onClick: () => { selectAllCollectionsToClose(); } + }, + { + id: 'open-in-terminal', + leftSection: IconTerminal2, + label: 'Open in Terminal', + onClick: () => { + openDevtoolsAndSwitchToTerminal(dispatch, activeWorkspace?.pathname); + } } ];