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
Projects

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.

@MathisFederico MathisFederico added this to To do in v1.0.0 Jan 14, 2022
@AlexandreSajus
Copy link
Contributor

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

@MathisFederico MathisFederico moved this from To do to In progress in v1.0.0 Feb 16, 2022
@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 moved this from In progress to To do in v1.0.0 Feb 22, 2022
@MathisFederico MathisFederico removed their assignment Feb 22, 2022
@FabienRoger
Copy link
Contributor Author

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

@MathisFederico MathisFederico linked a pull request Feb 23, 2022 that will close this issue
@MathisFederico MathisFederico moved this from To do to In progress in v1.0.0 Feb 23, 2022
v1.0.0 automation moved this from In progress to Done Feb 23, 2022
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
No open projects
v1.0.0
  
Done
Development

Successfully merging a pull request may close this issue.

4 participants