Steps to reproduce
- Update to latest macOS (15.0 (24A335))
- Install obsidian
- Open sandbox vault
- Try to cut a line without having selected any text (cmd + x)
- The text at cursor will all be removed - the cut command should require text to be selected
- This is a problem if working on a vault and the user accidentally bumps cmd + x. This is more common than one might expect. I have lost bits of my vault and had to go back through version history (which I luckily have).
Did you follow the troubleshooting guide? [Y/N]
Yes, and reproduced in the sandbox vault.
Expected result
If a user accidentally presses cmd + x nothing should happen. This can be achieved by the user having to select text. The selected text should be cut but if the user has no text selected nothing should happen. This current bug is making the hotkey cmd + d redundant and does not seem to be a feature.
Actual result
If the user has no text selected the entire line is cut.
Environment
[EDITED: originally pasted wrong debug information before I tried to reproduce the error in the sandbox vault on newest release directly from obsidian.md]
SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.0.0: Mon Aug 12 20:51:54 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6000 24.0.0
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
Can send video if this does not make sense. Please advise if more information is requested.