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

Improved context menu #2425

merged 3 commits into from
Nov 6, 2017

Conversation

leo
Copy link
Contributor

@leo leo commented Nov 4, 2017

I changed the order of a few context menu entries to make more sense.

As an example, "horizontal splitting" has to come before "vertical splitting" because "x" always comes before the "y" axis. In addition, I replaced "Close Session" with "Close Tab" since we're saying "New Tab" and not "New Session" above.

@leo leo added the 🎨 Type: Enhancement Issue or PR is an enhancement request/proposal for Hyper label Nov 4, 2017
@leo leo requested a review from chabou November 4, 2017 09:45
chabou
chabou previously requested changes Nov 4, 2017
}
},
{
type: 'separator'
},
{
label: 'Close Session',
label: 'Close Tab',
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

@chabou
Copy link
Collaborator

chabou commented Nov 6, 2017

What do you think to call this item Close like iTerm2

image

Its suit well if there is only one session and it closes app directly (on Windows/Linux) and if there is multiple panes in tab and it closes only one pane.

Copy link
Contributor

@albinekb albinekb left a comment

Choose a reason for hiding this comment

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

Nice!

@leo
Copy link
Contributor Author

leo commented Nov 6, 2017

@chabou You're right. Done!

@timothyis timothyis merged commit dcccd11 into canary Nov 6, 2017
@timothyis timothyis deleted the fix-context-menu branch November 6, 2017 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 Type: Enhancement Issue or PR is an enhancement request/proposal for Hyper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants