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

Added keyboard shortcut display in tooltips #2638

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

JuliaLoetfering
Copy link
Contributor

At least for "run cell, add cell, interrupt and delete currant cell" I added the keyboard shortcut display as adressed in #1065

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

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

Copy link
Collaborator

@Pangoraw Pangoraw left a 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!

@@ -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",
Copy link
Collaborator

@Pangoraw Pangoraw Sep 5, 2023

Choose a reason for hiding this comment

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

Is it an oversight?

Suggested change
run: "Run cell (Shift + Enter) <3",
run: "Run cell (Shift + Enter)",

Copy link
Contributor Author

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.

@@ -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>
Copy link
Collaborator

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).

Copy link
Contributor Author

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!

@fonsp fonsp merged commit cc706f5 into fonsp:main Sep 18, 2023
3 checks passed
@fonsp
Copy link
Owner

fonsp commented Sep 18, 2023

Thank you @JuliaLoetfering !!

@fonsp fonsp added documentation frontend Concerning the HTML editor labels Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants