Skip to content

Conversation

@minsun-ss
Copy link
Contributor

📝 Summary

Fixes #6338

🔍 Description of Changes

Adds an additional keyboard hotkey (that can be modified) for the duplicate selection shortcut and is visible from user settings under Editing (see below for screenshot of the change). The name is modified from copy line down since it technically copies the entire selection and not just a specific line on execution.

Screenshot_20251020_121742

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@vercel
Copy link

vercel bot commented Oct 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Oct 23, 2025 1:50pm

@minsun-ss
Copy link
Contributor Author

minsun-ss commented Oct 20, 2025

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@minsun-ss
Copy link
Contributor Author

recheck

"cell.duplicateSelection": {
name: "Duplicate selection",
group: "Editing",
key: "Ctrl-Shift-ArrowDown",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
key: "Ctrl-Shift-ArrowDown",
key: "Ctrl-Shift-ArrowDown",
editable: false,

since right now we don't override it in the codemirror settings, this needs to be set to not editable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies about this - missed the codemirror related items. I do see that you use the up/down shortcuts as copy line up/down, I can convert mine to reflect that nomenclature for consistency, if that's desired?

Copy link
Contributor

Choose a reason for hiding this comment

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

For me, it copies full lines. so i think Copy line(s) down would be fine text.
I would also maybe add Copy line(s) up as well

Copy link
Contributor Author

@minsun-ss minsun-ss Oct 23, 2025

Choose a reason for hiding this comment

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

That makes sense - added the two lines and set them both to noneditable.

image

adjust to non-editable

Co-authored-by: Myles Scolnick <[email protected]>
@mscolnick
Copy link
Contributor

thank you for the contribution!

Light2Dark
Light2Dark previously approved these changes Oct 23, 2025
Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

Could we change the text to "Copy line(s) down" and add "Copy line(s) up" as well

@minsun-ss
Copy link
Contributor Author

thank you for the contribution!

sorry for overcomplicating a small pr, this is my first ever oss contribution - much thanks to all those working on marimo for such an awesome project! hope to be able to contribute more meaningfully after this

Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

amazing, thank you!

@mscolnick mscolnick merged commit f56cd71 into marimo-team:main Oct 23, 2025
22 checks passed
@dmadisetti dmadisetti added the enhancement New feature or request label Oct 24, 2025
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 this pull request may close these issues.

document shortcut to "copy line down" in the shortcuts page in the marimo editor

4 participants