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 new shortcuts for block creations #109

Closed
FabienRoger opened this issue Dec 9, 2021 · 4 comments · Fixed by #287
Closed

Add new shortcuts for block creations #109

FabienRoger opened this issue Dec 9, 2021 · 4 comments · Fixed by #287
Labels
enhancement New feature or request

Comments

@FabienRoger
Copy link
Contributor

In a Jupyter notebook, adding new blocks is easy. Just press "Shift+Enter" and it adds a new block after executing the current one.
In OCB, for now, you have to right-click, new block, and link it with the previous one, which is cumbersome.

The new shortcuts which could be added:

  • Shift+ Arrow to add a new block linked to the current one in the direction of the arrow and launch the execution of the current cell
  • Shift+ Enter to add a new block linked to the current one to the right and launch the execution of the current cell
  • Control + Enter to execute the current cell
  • Something to insert a cell between two others (this is really slow with the current system)
@FabienRoger FabienRoger added the enhancement New feature or request label Dec 9, 2021
@vanyle
Copy link
Contributor

vanyle commented Dec 9, 2021

This is related to #108
The will probably be fixed in the same pull request.

@AlexandreSajus
Copy link
Contributor

A button to add a linked code block under another one has been added in #266

@MathisFederico MathisFederico self-assigned this Feb 16, 2022
@MathisFederico
Copy link
Member

MathisFederico commented Feb 20, 2022

Alt + Shift + Down should trigger the AddBlockButton

I think we could close this issue once this is done as block insertion is already mentioned in #228 and #230

In fact, Alt + Shift + Down could also trigger insertion if there is an existing linked block once it is implemented.

@MathisFederico MathisFederico removed their assignment Feb 22, 2022
@FabienRoger
Copy link
Contributor Author

Here is the new behavior with (Alt+)Shift + Arrow:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants