timhor / obsidian-editor-shortcuts

Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code (vscode) or Sublime Text
MIT License
356 stars 25 forks source link

FR: "Duplicate Line" shortcut should call Obsidian's "Table: Duplicate row" command when inside a table #82

Open Toxe opened 1 month ago

Toxe commented 1 month ago

The "Duplicate Line" shortcut doesn't work well with tables (it duplicates the line but hides the cursor) so it would be neat if the shortcut could instead call the build-in "Table: Duplicate row" Obsidian command instead when the cursor is inside a table.

For the moment I need two shortcuts: "Duplicate Line", which is Ctrl+D for me and Obsidian's "Table: Duplicate row", which would be Shift+Ctrl+D for me. But I would prefer to only have one shortcut (Ctrl+D) for duplicating lines, no matter if it's normal text or inside a table.