Make Copy (and Cut) context menu items / mobile toolbar commands Copy (or Cut) the whole line if nothing is selected (act like keyboard hokeys)

Right now, when a keyboard is available and nothing is selected Ctrl/Cmd-C and Ctrl/Cmd-X operate on the whole line where the cursor is located.

This does not happen for the context menu items (Copy, Cut) on desktop and the respective items in the mobile editor toolbar.

It would be nice if the behavior of the hotkeys was consistent with context menu items/toolbar buttons.

Related FR

1 Like

It would be better if the function of deleting a line in the mobile app could be replaced by cutting a line.

Platform

iOS
Android

Obsidian Mobile version: v1.0.5

On Mac, invoking ⌘C in Obsidian copies the whole line to the clipboard if no text is selected. By contrast, pressing the Copy Quick Action button in Obsidian on iOS just deletes the current clipboard content.

It would be really convenient if Obsidian on iOS could adopt the behavior of the Mac version and copy the whole line of text in that situation. Currently, it’s a bit tedious to copy a line of text on iOS, because you first need to manually select the whole line, which always feels a bit clumsy.

This change should, of course, also be made to the Show context menu under cursor -> Copy Quick Action and to the behavior of ⌘C (if an external keyboard is connected), but it would be most important for the Copy Quick Action button.

4 Likes

I would love this feature for Android, too. Selecting the text of a whole line is not only clumsy, sometimes it’s impossible, especially if the line contains a link. Sometimes I have to select text before and after the line and delete it after pasting.

I’m aware of the “duplicate line” command and use it often but I need this (and / or a “cut line” command) to copy from one file into another or from Obsidian to another app.

There’s a workaround using “Select line” from the Code Eitor Shortcuts plugin and then long press and “copy”. But it’s not as nice as copying directly.