Paste as file link

by Matthias Büge
5
4
3
2
1
Score: 53/100

Description

Category: Note Enhancements

The Paste as File Link plugin simplifies the process of turning selected text into a link to another file within your vault. Instead of manually creating links with aliases, you can copy the name of a note, select any text, and paste. The plugin automatically converts the selection into either a wiki link or a markdown link, depending on your vault's link settings. If there are multiple files with the same name, it prompts you to choose the correct one, and if the clipboard has no valid match, it simply falls back to the normal paste action.

Reviews

No reviews yet.

Stats

1
stars
325
downloads
0
forks
243
days
79
days
79
days
4
total PRs
0
open PRs
0
closed PRs
4
merged PRs
1
total issues
0
open issues
1
closed issues
0
commits

Latest Version

3 months ago

Changelog

What's Changed

Full Changelog: https://github.com/mbedded/obsidian-paste-file-link/compare/1.2.0...1.3.0

README file from

Github

This plugin is used to paste the content of the clipboard as a link to another file in the current vault. The selected text will be used as an alias while a file link is created.
As an example, assume this is the text in your file:

Lorem ipsum dolor sit amet.

After pasting my note to a selection, this will be updated to:

Lorem ipsum [[my note|dolor sit amet]].     // Wiki link
Lorem ipsum [dolor sit amet](my note.md).   // Markdown link

The type of link is depending on your vault settings (Settings > Files and links).

If the clipboard contains no string (text) or no file could be found, this plugin will do nothing and the usual paste will take place. If you have multiple files with the same name in your vault, a dialog will open so you can select the correct file.

Usage

  • Copy the name of a note from your vault.
  • Select text in any document of your vault.
  • Paste the value from your clipboard (or use the command).
  • Be happy that your selection became a link to your file with an alias :)

Installation

The plugin can be installed in Obsidian itself via Settings > Community plugins > Browse.

For manual installation, go to the latest release. Download the files main.js and manifest.json. Move these files to your vault: YourVault/.obsidian/plugins/paste-as-file-link/.

Settings / Usage

The default setting of this plugin is the usage of CTRL + V (paste). This setting can be turned on and off. If you turn this off, you have to use the command palette.

Contribution

If you face any issues, feel free to create an issue or a pull-request in this repository.

Reason for this plugin

This plugin was created because I often write text and add links to my notes afterward. But every time I paste the name of the note, the text gets replaced and I have to create links with an alias by myself.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Paste URL into selection
6 years ago by Denis Olehov
Paste URLs into selected text "notion style"
Image auto upload
5 years ago by renmu123
auto upload image with picgo
Copy document as HTML
3 years ago by mvdkwast
Obsidian plugin: copy document as HTML, including images
Text expand
6 years ago by MrJackphil
A simple text expand plugin for Obsidian.md
Show Current File Path
5 years ago by Ravi Mashru
Obsidian plugin to show the file path of the current file in the status bar
Extract Highlights
5 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
Smart Context
a year ago by 🌴 Brian
Paste Mode
5 years ago by Jacob Levernier
Obsidian Notes plugin for pasting text and blockquotes to the cursor's current level of indentation.
Paste Link
2 years ago by Jose Elias Alvarez
Intelligently paste Markdown links in Obsidian.
Copy Inline Code
3 years ago by Ondrej Zavodny
Copy Image
2 years ago by Felipe D.S. Lima
Easily copy image to clipboard by right clicking image.
Paste As Html
3 years ago by maotong06
Link with alias
3 years ago by Pavel Vojtechovsky
Obsidian plugin for handy creation of links and alias in front matter of target document
Redirect
4 years ago by Jacob Levernier
An Obsidian plugin for adding aliases to any file
Image Uploader
5 years ago by Creling
Export to HTML
a year ago by kalvn
Export a note as HTML in the clipboard or in a file.
JSONifier
5 years ago by Kjell Connelly
Relative Find
5 years ago by phibr0
Advanced Copy
2 years ago by leschuster
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
Paste Reformatter
a year ago by Keath Milligan
A plugin for Obsidian that reformats pasted HTML and plain text content, giving you precise control over how content is transformed when pasted into your notes.
Image To Lskypro
3 years ago by NekouTarou
支持直接上传图片到图床Lsky,基于https://github.com/renmu123/obsidian-image-auto-upload-plugin.git改造。
Confluence Converter
a year ago by Addo Zhang
An Obsidian Plugin for Confluence
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
Paste transform
2 years ago by Timofey Koolin
Multilingual
2 years ago by leolazou
An plugin for Obsidian that translates note names to ease linking across many languages.
Image Embedder
a year ago by Natalie Sumbo
Paste Image Rename and Convert
a year ago by iaos
An obsidian plugin that renames pasted images and covert formats
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Paste Image Into Property
a year ago by Nito
Convert Base64 to PNG
a year ago by Nykko Lin
Converts base64-encoded images to local PNG files for Obsidian.
Alias Picker
2 years ago by rostunic
Image to HTML
a year ago by 0x1DA9430
A plugin for Obsidian that converts pasted images to HTML format instead of Obsidian's wikilink or Markdown format
Recursive Copy
2 years ago by datawitch
Clipboard Manager
9 months ago by Ayush Raj
The clipboard obsidian plugin
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
Another Name
a year ago by Jiyuan Wang
Add a subheading to your note in Obsidian
Edit Link Alias
4 months ago by mnaoumov
Obsidian Plugin that adds edit link alias command.
Paste as Embed
2 years ago by Matt Laporte
Obsidian plugin to paste contents of clipboard into a new note, and embed it in the active note.
Ghost Text
8 months ago by lawrencefeng17
Hanko
a year ago by Telehakke
Obsidian plugin.
Sonkil
9 months ago by ohyoungpark
Fix Line Endings on Copy
7 months ago by KiwiJanus
Lskypro Upload V2
2 months ago by 3kk0
Auto upload local images to LskyPro.