Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved context menu #2425

Merged
merged 3 commits into from
Nov 6, 2017
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions app/menus/menus/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,41 @@ module.exports = (commandKeys, execCommand) => {
label: isMac ? 'Shell' : 'File',
submenu: [
{
label: 'New Window',
accelerator: commandKeys['window:new'],
label: 'New Tab',
accelerator: commandKeys['tab:new'],
click(item, focusedWindow) {
execCommand('window:new', focusedWindow);
execCommand('tab:new', focusedWindow);
}
},
{
label: 'New Tab',
accelerator: commandKeys['tab:new'],
label: 'New Window',
accelerator: commandKeys['window:new'],
click(item, focusedWindow) {
execCommand('tab:new', focusedWindow);
execCommand('window:new', focusedWindow);
}
},
{
type: 'separator'
},
{
label: 'Split Vertically',
accelerator: commandKeys['pane:splitVertical'],
label: 'Split Horizontally',
accelerator: commandKeys['pane:splitHorizontal'],
click(item, focusedWindow) {
execCommand('pane:splitVertical', focusedWindow);
execCommand('pane:splitHorizontal', focusedWindow);
}
},
{
label: 'Split Horizontally',
accelerator: commandKeys['pane:splitHorizontal'],
label: 'Split Vertically',
accelerator: commandKeys['pane:splitVertical'],
click(item, focusedWindow) {
execCommand('pane:splitHorizontal', focusedWindow);
execCommand('pane:splitVertical', focusedWindow);
}
},
{
type: 'separator'
},
{
label: 'Close Session',
label: 'Close Pane',
accelerator: commandKeys['pane:close'],
click(item, focusedWindow) {
execCommand('pane:close', focusedWindow);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should modify this command if you change its name

Expand Down