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

Add some notebook commands #92404

Merged
merged 3 commits into from
Mar 12, 2020

Conversation

roblourens
Copy link
Member

There sure are a lot of null checks here.

@rebornix rebornix self-assigned this Mar 11, 2020
@roblourens roblourens changed the title Add ctrl+enter to execute cell and go to next Add some notebook commands Mar 11, 2020
Copy link
Member

@rebornix rebornix left a comment

Choose a reason for hiding this comment

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

Looks good to me. My only comment is the conflict of keybindings on windows.

title: 'Execute Notebook Cell',
keybinding: {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, InputFocusedContext),
primary: KeyMod.WinCtrl | KeyCode.Enter,
Copy link
Member

Choose a reason for hiding this comment

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

My only concern with this keybinding is it conflicts with "add line below" on Windows.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, right. Any other idea? We might have to use something besides 'enter', I feel like alt+enter might do something on windows?

@roblourens roblourens force-pushed the roblou/focusNextCellAfterExecute branch from ca8adeb to 3f3dcf1 Compare March 12, 2020 17:31
@roblourens roblourens merged commit a9b5966 into rebornix/notebook Mar 12, 2020
@roblourens roblourens deleted the roblou/focusNextCellAfterExecute branch March 12, 2020 17:31
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants