- Select some text somewhere to fill the so-called “primary selection” in X11 (I haven’t tested with Wayland)
- Make sure it actually works when you intentionally middle-click somewhere in a plain text part of an Obisidian buffer
- Now place the text cursor somewhere to refer to after the following steps
Problem A (middle-clicking a link):
- Perform the above setup
- Middle click a link in a Live Preview mode
- Observe that it opens the link in a new tab
- Switch back to the original tab and observe that it also inserted the text from Setup step 1 at the editor position from Setup step 3
Problem B (middle-clicking a tab):
- Perform the above setup
- Open a second tab from the current tab while in Live Preview mode, such as by ctrl-clicking a link (to avoid the middle-click problem)
- Middle click the new tab in the tab bar to close it and return to the original tab
- Observe that it also inserted the text from Setup step 1 at the editor position from Setup step 3
It should never insert text when middle-clicking on an interactive element like a link in Live Preview mode, or on the tab bar. Quoting myself from a previous incarnation of this bug report:
As described in the reproduction steps: middle-click paste triggers when it shouldn’t.
- Operating system: Linux (NixOS — with X11 windowing, as opposed to Wayland)
- Debug info:
SYSTEM INFO: Obsidian version: v1.1.16 Installer version: v1.1.16 Operating system: #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 3 10:56:18 UTC 2023 6.2.2 Login status: not logged in Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 14 Restricted mode: off Plugins installed: 19 Plugins enabled: 17 1: Recent Files v1.3.5 2: File Explorer Note Count v1.2.0 3: Icon Folder v1.7.0 4: Style Settings v1.0.3 5: Supercharged Links v0.9.3 6: Hider v1.2.4 7: Quick Explorer v0.2.8 8: Contextual Typography v2.2.4 9: Emoji Shortcodes v2.2.0 10: Dataview v0.5.55 11: Obsidian Git v2.17.4 12: Auto Link Title v1.4.1 13: Omnisearch v1.12.3 14: HTML Reader v1.0.7 15: Force note view mode v1.1.1 16: Sync Graph Settings v1.0.1 17: Image Toolkit v1.3.1 RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
This is re-post of [1.1.9] [linux] [appImage] mouse middle-click seems still got accident paste which was reported fixed in 1.1.13. The symptoms are identical between 1.1.9 and 1.1.16 — there has been no observable change. The reproductions from that bug are still reproducible for me in 1.1.16, but I’ve reworded them above to hopefully make them clearer.
I will say, just now I tried to reproduce this in a sandbox vault, and unlike my main vault it doesn’t happen every time, but instead somewhat randomly. But it’s still reproducible with repetition. I wonder if this suggests some kind of race condition.