Steps to reproduce
Have at least two paragraphs in a note.
Put the cursor in one of them
I expect that nothing will happen, because this keyboard shortcut is not listed in the list of re-mappable hotkeys under settings.
The paragraph the cursor is in is deleted.
- Operating system: Windows 10 Pro, Version 1909, OS Build 18363.836
- Obsidian version: 0.6.7
- Using custom CSS: No
This is especially annoying if you remap a different shortcut to Ctrl+D. You don’t get a warning when you do the remapping, but then every time you press Ctrl+D, Obsidian executes the remapped functionality and deletes a paragraph. I mapped ‘switch edit/preview mode’ to Ctrl+D before I realized what was happening, and for a while I thought things were being deleted when I switched to preview mode because I hadn’t properly saved the file, or something. It was jarring behavior.
P.S. I’m really liking Obsidian! Thank you for your work
Now that’s a neat little trick
On macOS, Ctrl+D deletes the letter to the right of the cursor and Cmd+D deletes the whole paragraph.
This is a cool hotkey that I didn’t know about!
It would be better if it select the paragraph instead of just deleting it, but it will be useful for me anyway.
I also had no idea this hotkey existed. I would call this command/action by the name “yank” as that is what I believe it is called in the Vim world…
Must be added to the settings pane and the command palette (Control+P).
This behaviour really needs to be documented and we need to be warned if CTRL-D is being assigned to something else. I mapped CTRL-D to open my Daily Note and it ends up deleting a bunch of stuff from my current note.
Fixed and will be released in 0.7.5.
Steps to reproduce
press command + D
because no action is assigned to the keyboard shortcut
one line is deleted
And even when I assigned other action to cmd + d, it still delete a line.
- Operating system: MacOS Mojave 14.6
- Obsidian version: 0.7.3