michalbures23k downloadsConvert file path to URI for easier use of links to local files outside of Obsidian.
This plugin lets you convert a local path to a file url link that can be used to link to files or folders that are located outside of your Obsidian vault.

AFAIK this plugin isn't really needed anymore since you can drag any file or folder into your note while holding Ctrl and Obsidian will paste it as a link.
C:\Users\Obsidian\Documents will be pasted as [Documents](file:///C:%5CUsers%5CObsidian%5CDocuments)
Ctrl/Cmd + Alt + L or press Ctrl/Cmd + P to open the command palette and search for File path to URI: Toggle selected file path to URI and back.C:\Users\Obsidian\Documents or \\network\folder\ to your clipboardCtrl/Cmd + Alt + Shift + L or press Ctrl/Cmd + P to open the command palette and search for File path to URI: Paste file path as file uri.file:///C:/Users/Obsidian/Documents or file:///%5C%5Cnetwork/folder/ in this example)C:\Users\Obsidian\Documents or \\network\folder\ to your clipboardCtrl/Cmd + P to open the command palette and search
for File path to URI: Paste file path as file uri link. There is no default hotkey for this command so if you want to use a keyboard shortcut you can set a custom one in Obsidian settings.[C:\Users\Obsidian\Documents](file:///C:/Users/Obsidian/Documents)
or [\\\\network\folder\](file:///%5C%5Cnetwork/folder/) in this example)C:\Users\Obsidian\Documents or \\network\folder\ to your clipboardCtrl/Cmd + P to open the command palette and search
for File path to URI: Paste file path as file uri link - Name only. There is no default hotkey for this command so if you want
to use a keyboard shortcut you can set a custom one in Obsidian settings.[Documents](file:///C:/Users/Obsidian/Documents)
or [folder](file:///%5C%5Cnetwork/folder/) in this example)You can change the hotkey combination in Obsidian settings under Hotkeys. Look for File path to URI: Toggle selected file path to URI and back and File path to URI: Paste file path as file uri.

C:\Users\Obsidian\Documents <-> file:///C://Users//Obsidian//Documents
\\network\folder\ <-> file:///%5C%5Cnetwork/folder/
"C:\Users\Obsidian\Documents" -> file:///C://Users//Obsidian//Documents
Strips the surrounding whitespace and double quotation marks from the selection
Code and readme inspired by https://github.com/agathauy/wikilinks-to-mdlinks-obsidian