Skip to content

Commit

Permalink
feat: add context-menu items to tree view and tabs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: change the way cwd is calculated
  • Loading branch information
UziTech committed Dec 2, 2020
1 parent 444d38f commit 31be163
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 276 deletions.
18 changes: 9 additions & 9 deletions menus/x-terminal.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,44 +76,44 @@
"command": "x-terminal:close-all"
}
],
"atom-text-editor": [{
"atom-text-editor, .tree-view, .tab-bar": [{
"label": "X Terminal",
"submenu": [
{
"label": "Open New Terminal",
"command": "x-terminal:open"
"command": "x-terminal:open-context-menu"
},
{
"label": "Focus On Terminal",
"command": "x-terminal:focus"
},
{
"label": "Open New Terminal (Split Up)",
"command": "x-terminal:open-split-up"
"command": "x-terminal:open-split-up-context-menu"
},
{
"label": "Open New Terminal (Split Down)",
"command": "x-terminal:open-split-down"
"command": "x-terminal:open-split-down-context-menu"
},
{
"label": "Open New Terminal (Split Left)",
"command": "x-terminal:open-split-left"
"command": "x-terminal:open-split-left-context-menu"
},
{
"label": "Open New Terminal (Split Right)",
"command": "x-terminal:open-split-right"
"command": "x-terminal:open-split-right-context-menu"
},
{
"label": "Open New Terminal (Bottom Dock)",
"command": "x-terminal:open-split-bottom-dock"
"command": "x-terminal:open-split-bottom-dock-context-menu"
},
{
"label": "Open New Terminal (Left Dock)",
"command": "x-terminal:open-split-left-dock"
"command": "x-terminal:open-split-left-dock-context-menu"
},
{
"label": "Open New Terminal (Right Dock)",
"command": "x-terminal:open-split-right-dock"
"command": "x-terminal:open-split-right-dock-context-menu"
},
{
"label": "Reorganize Terminal Tabs (Current Pane)",
Expand Down
Loading

0 comments on commit 31be163

Please sign in to comment.