-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Added keyboard shortcut display in tooltips #2638
Conversation
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/JuliaLoetfering/Pluto.jl", rev="Add-Cell-shortcut")
julia> using Pluto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @JuliaLoetfering!
frontend/components/RunArea.js
Outdated
@@ -36,7 +36,7 @@ export const RunArea = ({ | |||
interrupt: "Interrupt", | |||
save: "Save code without running", | |||
jump: "This cell depends on a disabled cell", | |||
run: "Run cell", | |||
run: "Run cell (Shift + Enter) <3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it an oversight?
run: "Run cell (Shift + Enter) <3", | |
run: "Run cell (Shift + Enter)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, I'm sorry ^^ I was testing something out and forgot to remove it.
frontend/components/CellInput.js
Outdated
@@ -909,7 +909,7 @@ const InputContextMenu = ({ on_delete, cell_id, run_cell, skip_as_script, runnin | |||
<span class="icon"></span> | |||
${open | |||
? html`<ul onMouseenter=${mouseenter}> | |||
<li onClick=${on_delete} title="Delete"><span class="delete ctx_icon" />Delete cell</li> | |||
<li onClick=${on_delete} title="Delete (Ctrl + Backspace)"><span class="delete ctx_icon" />Delete cell</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backspace actually deletes only when the code is empty so we can remove this one (https://github.com/fonsp/Pluto.jl/wiki/%F0%9F%94%8E-Basic-Commands-in-Pluto#5-delete-a-cell).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, that totally makes scence. Thank you!
Thank you @JuliaLoetfering !! |
At least for "run cell, add cell, interrupt and delete currant cell" I added the keyboard shortcut display as adressed in #1065