Mark e Link

by Giovanni Cinque
5
4
3
2
1
Score: 50/100

Description

A simple Obsidian plugin to quickly convert selected text or words into internal links.

Reviews

No reviews yet.

Stats

1
stars
101
downloads
0
forks
87
days
70
days
81
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
24
commits

Latest Version

3 months ago

Changelog

🚀 What's New in v1.1.0

  • Backward Selection: Added Cmd + Alt + 1..9 (or Ctrl + Alt + 1..9) hotkeys to quickly create links including preceding words.
  • Smart Punctuation: Periods and commas at the end of sentences are now kept outside the double brackets ([[note]].).
  • Visual Notices: Re-enabled notice notifications to confirm when a new note is successfully created.

README file from

Github

A lightweight Obsidian plugin designed to speed up your note-linking workflow. With a single keyboard shortcut, it converts selected text (or the word under the cursor) into an internal link and physically creates the new .md file in the background without interrupting your writing flow.


🌟 Key Features

  • Instant Linking: Converts the current selection or the word under your cursor into a [[note]] link.
  • Background Note Creation: Automatically generates the empty .md file in your vault (app.vault.create) without requiring you to click the link or open a new tab.
  • Smart Alias Handling: If the highlighted text contains special characters, Markdown formatting, or line breaks, the plugin cleans up the string for the OS file system and generates an alias link: [[CleanedName|Original Text]].
  • File Name Sanitization: Automatically removes illegal operating system characters (/ \ ? % * : | " < >) to ensure valid file names across Windows, macOS, and Linux.
  • Zero Distractions: Automatically repositions your cursor immediately after the newly created link so you can keep typing without breaking focus.
  • Visual Confirmation: Displays a subtle notification (Notice) confirming when the note has been successfully created.

🚀 How It Works

  1. Place your cursor on a word or highlight a phrase in the editor.
  2. Press the keyboard shortcut (Cmd + Shift + E / Ctrl + Shift + E).
  3. The plugin will:
    • Replace the text with [[NoteName]] (or [[CleanName|Original Text]]).
    • Check if the file already exists in your Vault.
    • If it does not exist, create the physical .md file in your default new note location.
    • Move the cursor directly after the trailing ]] brackets.

⌨️ Default Keyboard Shortcuts

Operating System Hotkey
macOS Cmd + Shift + E
Windows / Linux Ctrl + Shift + E

(You can customize this keybinding anytime under Settings > Hotkeys by searching for "Mark and Link").


🛠️ Manual Installation

  1. Download the release files (main.js, manifest.json).
  2. Create a folder named mark-and-link inside your Vault directory at: .obsidian/plugins/mark-and-link/
  3. Copy the downloaded files into that folder.
  4. Reload Obsidian or restart the app.
  5. Navigate to Settings > Community plugins and toggle on Mark & Link.

📄 License

Distributed under the MIT License.