(The title may be quite confusing, so please feel free to edit it if you have ideas on how to make it clearer.)
When I double click a word in order to select it and then replace it with something by typing, sometimes Obsidian will remove more text than just the highlighted word. Circumstances:
- The text must be in a list item.
- You need to first click some italized text before double clicking a word. Then double click some text after the italic text.
- After double clicking, type some text.
I haven’t tested these:
- Numeric list items
- Bold text
- The legacy text editor
Steps to reproduce
See this video I recorded: Obsidian double click bug - YouTube
(The video is unlisted on YouTube, so it’s only visible for people who know the link.)
Only the selected/higlighted word should be removed and replaced with the typed text.
All italic text is removed.
- Operating system: Windows 10
- Debug info:
Obsidian version: v0.13.23
Installer version: v0.12.15
Operating system: Windows 10 Home 10.0.19042
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: Red Graphite
Snippets enabled: 0
Safe mode: off
Plugins installed: 2
Plugins enabled: 0
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
hi, does it happen with the default theme? does it happen in the help vault?
I tested now, yes, it happens in the help vault too, with the default dark theme enabled.
Thanks for the tip about testing in the help vault, I’ll try to remember it next time I report some bug.
I don’t know why but I can’t reproduce your problem. Does downloading and reinstalling obsidian help?
Why is the bullet point red in you first video recording?
Strange. I tested more:
I guess it’s due to the Red graphite theme I’m using, it has some red accents. (I’m probably using some old version of it, I think I haven’t upgraded in a year maybe?)
@WhiteNoise may I ask on what operating system did you try this?
Can someone else test this, too? Just asking 'cause I’m hitting this issue quite often.
Tried it on macOS and the latest Obsidian / installer. Can’t repeat the issue in my vault or the help vault.
Thank you for trying!
Maybe it somehow only occurs on Windows and Linux?
I am on windows. I don’t think it’s linux problem either. I think it something specific to your input methods.
I tested this more. This is a bit simpler way to test it:
- First the caret needs to be located outside of italic text.
- Double click a word in the middle of an italic text (so that the word does not beging or end with a star
*, i.e. italic2 in the example).
- Type something.
This does not occur every time, might need multiple retries. Also it most likely happens on bullet list lines and task lines, but this time I was also able to reproduce it on the non-list line, but just a couple of times (unfortunately it did not happen when recording the below gif).
This is in help vault, on Windows 10. I tested on Linux too (again), and the same happened on there too. The machines are different and use different keyboards and mice. So it should not be anything input hardware specific.
Thank you for your patience with this!
Hi @WhiteNoise !
I noticed this thread was moved to Bug graveyard. Were you able to reproduce and fix it?
At least for me it still occurs in the Sandbox vault of Obsidian