Local Referer
pendingby KunihiroS
Insert local files into the vault via context menu.
Local Referer
This plugin enhances the editing experience in Obsidian by allowing users to easily insert local files into their notes via the context menu.
Features & Specification
-
Context Menu Integration:
- Adds a "From Local" option to the editor context menu (right-click in Editor mode).
-
File Selection:
- Clicking "From Local" opens the OS file explorer/dialog.
- The dialog opens at a user-configured directory (defaults to User's Home directory if not set).
- Desktop Only: This feature utilizes system dialogs and is available on Desktop versions only.
-
File Insertion:
- The selected file is copied into the Obsidian Vault.
- Destination Folder: Respects the user's Obsidian setting for "Default location for new attachments".
- Name Collision: Handles duplicate filenames by auto-renaming (e.g.
image.png->image 1.png). - Inserts an internal link at the cursor position (respects Obsidian's "Use Wikilinks" setting).
Development Setup
This project uses pnpm as the package manager.
# Install dependencies
pnpm install
# Build in development mode
pnpm run dev
# Build for production
pnpm run build
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.