Skip to content

0.2.0 - native source menu

Choose a tag to compare

@ko-Ani ko-Ani released this 11 Nov 11:58
· 6 commits to main since this release

0.2.0 — native source menu

Right-clicking (or long-pressing) a virtual entry now behaves like right-clicking the real folder or note, instead of a tiny plugin-only menu.

Added

  • Native source context menu — a virtual row hands its real TAbstractFile back to the file explorer's onFileContextMenu(), so core builds the menu it always builds: New note, New folder, Rename, Move, Make a copy, Delete all operate on the source, not on the virtual row.
  • Plugin items Reveal real location, Copy real path and (on a mount root) Remove this mount are appended to that native menu. If the internal view method is unavailable, a built-in fallback menu is used.

Fixed

  • On Obsidian 1.14+ the context menu could close itself after ~500 ms: core anchors the menu to the real (often off-screen) tree row and auto-dismisses it when that row is not visible. The row association is now hidden while the menu is built and restored immediately afterwards.

Compatibility

  • Obsidian 1.6.0+, desktop and mobile. Verified against 1.14.5 and earlier 1.8.x.

Install

Download main.js, manifest.json and styles.css below into <vault>/.obsidian/plugins/virtual-mount/, then reload Obsidian.