No description
Find a file
Kodai Nakamura e27dda146c 0.0.7
2025-02-03 03:08:23 +09:00
.github/workflows chore: permissions: write-all 2025-02-02 14:01:48 +09:00
src feat: ignore markdown url 2025-02-03 03:08:04 +09:00
.editorconfig Initial commit 2025-02-01 23:20:04 +09:00
.eslintignore Initial commit 2025-02-01 23:20:04 +09:00
.eslintrc Initial commit 2025-02-01 23:20:04 +09:00
.gitignore Initial commit 2025-02-01 23:20:04 +09:00
.npmrc Initial commit 2025-02-01 23:20:04 +09:00
esbuild.config.mjs chore: esbuild target es2018 -> esnext 2025-02-02 13:55:41 +09:00
LICENSE Initial commit 2025-02-01 23:20:04 +09:00
manifest.json 0.0.7 2025-02-03 03:08:23 +09:00
package-lock.json 0.0.7 2025-02-03 03:08:23 +09:00
package.json 0.0.7 2025-02-03 03:08:23 +09:00
README.md docs: update README.md 2025-02-02 13:31:21 +09:00
styles.css Initial commit 2025-02-01 23:20:04 +09:00
tsconfig.json chore: setup vitest 2025-02-02 11:23:53 +09:00
version-bump.mjs Initial commit 2025-02-01 23:20:04 +09:00
versions.json 0.0.7 2025-02-03 03:08:23 +09:00
vitest.config.ts chore: setup vitest 2025-02-02 11:23:53 +09:00

🤖 Automatic Linker 🔗

Automatic Linker Plugin automatically converts plain text file references into Obsidian wiki links (i.e. [[...]]) based on the file names in your vault. It can also automatically format links when saving a file and allows you to configure special directories that are treated differently.

Features

  • Automatic Link Conversion:
    The plugin scans your file for text that matches file names in your vault and converts them into wiki links by wrapping them in [[ ]].

  • Format on Save:
    Optionally, the plugin can automatically format (i.e. convert links) when you save your file.

  • Configurable Special Directories:
    Specify directories (e.g. pages) that are treated specially. For files in these directories, the directory prefix can be omitted when linking.

  • Respects Existing Links:
    Already formatted links (i.e. those wrapped in [[ ]]) are preserved and not reformatted.

  • CJK Support:
    Handles Japanese, Chinese, and other CJK text correctly.

Usage

  • Automatic Conversion:
    When the Format on Save setting is enabled, the plugin automatically converts matching text into wiki links each time you save a file.

  • Manual Trigger:
    You can also manually run the link conversion command via the Command Palette with the command Link current file.

Configuration

The plugin settings are available under the Automatic Linker Plugin settings tab. The available options include:

  • Format on Save:
    When enabled, the plugin will automatically convert links when you save a file.

  • Special Directories:
    Enter one or more directory names (one per line) that should be treated as special. For example, if you enter pages, then file links like pages/tags can be referenced simply as tags.