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); + } } ];