Microsoft OneNote has a handy shortcut “cmd + A” that I use all the time to select an entire line. And if you click it a second time it selects the entire document.
I really would like to use this as a shortcut in Obsidian to select the current line, but its default is to select the entire document. Is there a way to make it select only the entire current line?
Since you’re mentioning cmd I’m assuming you’re on Mac, and then you could try this combination: Cmd ← , Cmd shift → . That is cmd + left arrow to go to start of line, and then cmd + shift + right arrow to select to end of line.
I wonder if anyone has come across a plug-in or a setting that can do this in one step.
A behaviour I like of onenote and various other note taking apps is the flexibility of cmd + a serving different functions depending on how many times it’s pressed
Just to be painfully explicit, press the following keys (and don’t release until all has been pressed): cmd, ← , shift, → (and release all). This is rather easily done if you hit the cmd with your thumb, and the shift with your pinky (on the left hand), and the arrows with the right hand.
And another tip, whilst using the keyboard, if one keeps holding the modifiers, one can use up- and/or down arrow to select everything above or below current line. Or if releasing the cmd, one can up and down line by line…
Up to you. If you’re hoping for something more, leave it open. If you’re content, mark a solution (the thread will stay open for a week after that before closing).