Skip to content

Commit f56cd71

Browse files
minsun-ssmscolnick
andauthored
add duplicate selection shortcut to hotkeys as part of editing command (#6843)
## 📝 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. <img width="942" height="125" alt="Screenshot_20251020_121742" src="https://github.com/user-attachments/assets/668687a1-7109-454a-855f-437ebc6c599b" /> ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [ ] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. --------- Co-authored-by: Myles Scolnick <[email protected]>
1 parent ac48cf0 commit f56cd71

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

frontend/src/core/hotkeys/hotkeys.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,18 @@ const DEFAULT_HOT_KEY = {
239239
group: "Editing",
240240
key: "F2",
241241
},
242+
"cell.copyLineUp": {
243+
name: "Copy line(s) up",
244+
group: "Editing",
245+
key: "Alt-Shift-ArrowUp",
246+
editable: false,
247+
},
248+
"cell.copyLineDown": {
249+
name: "Copy line(s) down",
250+
group: "Editing",
251+
key: "Alt-Shift-ArrowDown",
252+
editable: false,
253+
},
242254

243255
// Markdown
244256
"markdown.bold": {

0 commit comments

Comments
 (0)