External File Card

by James-Yu
5
4
3
2
1
Score: 54/100

Description

The External File Card plugin enhances Obsidian by providing an intuitive way to reference files stored outside your vault. It allows users to display detailed cards or create inline links for external files and folders using customizable code blocks or Obsidian URIs. These cards include file names, paths, creation dates, and modification dates, with clickable links to open files or folders in default system applications. The plugin supports multiple root paths for file searching, customizable display text, and efficient handling of spaces in file names. Designed for accessibility across devices, it is particularly useful for users managing external documents stored in cloud services like OneDrive.

Reviews

No reviews yet.

Stats

17
stars
732
downloads
0
forks
618
days
456
days
456
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
0
open issues
5
closed issues
15
commits

Latest Version

README file from

Github

External File Card Plugin

External File Card is a plugin for Obsidian. It shows a card displaying basic information of a file in pre-defined folders.

How to use?

Code block card

This plugin add two Markdown codeblock languages ef and extfile, which are equivalent. When provided with a file name or partial file path, this plugin will try to locate the given file in the file system, rooting from paths as given in the setting of this plugin. If a file is found, this plugin will render a card UI with its file name, modified and created times, and containing folder path. Both the file name and the containing folder path are clickable, opening the file and the folder using OS default applications.

For example, the following code block

```ef
file.pdf
```

will be rendered as if there is a file ~/OneDrive/Documents/file.pdf.

Multiple files can be displayed in a same file card, if their paths are listed in multiple lines. The following code block

```ef
file.pdf
another_file.pdf
```

will be rendered as

A more compact view of the file card is available via languages efc and extfilec with the final c letter. The following code block

```efc
file.pdf
```

will be rendered as

If the file cannot be found, the following code block

```ef
not_found.pdf
```

will be rendered as

If the note is opened on mobile platforms, this plugin will not try to locate the file, but instead render the following card

If instead of a card, an inline link is required, this plugin also handles Obsidian URIs in the format of obsidian://ef?file.pdf and obsidian://extfile?file.pdf. Note that the question mark ? cannot be omitted, and the file name or partial path should follow the ?. Additionally, spaces in file names should be encoded with colon :, e.g., obsidian://ef?this:is:a:file.pdf for this is a file.pdf.

These two URIs work similar to other URLs, i.e., you can use syntax like [This is the file](obsidian://ef?file.pdf) to create a link to the external file. Clicking on the link will open the file with the default application.

Similar to code block cards, the link won't do anything on mobile platforms.

You can first copy-paste / type the file name in the Obsidian editor and select it. Then use Insert external file card command to surround it with ef code block, or Insert external file link command to transform it into [file.pdf](obsidian://ef?file.pdf). The latter command also automatically encodes spaces in the file name to make it valid.

What about folders?

Just end the folder name with a backslash /, e.g., my-folder/ in ef code block or [This is the folder](obsidian://ef?folder/)

Where are the files?

In the setting panel, this plugin defines an External paths config item, which is an editable text area. You can list one or multiple root paths for the plugin to search for files.

For example, the following config

~/OneDrive/Documents

will let the plugin to glob all files by ~/OneDrive/Documents/**/file.pdf with ~ expanded if file.pdf is provided in an ef or extfile code block. The first globbed file is shown.

If the following config is used

~/OneDrive/Documents
~/OneDrive

this plugin will first glob ~/OneDrive/Documents/**/file.pdf. If nothing is found, the second line is used, i.e., ~/OneDrive/**/file.pdf.

Indeed, this plugin just use string concatenation to construct the glob pattern. Therefore,

```ef
Documents/file.pdf
```

will lead to the glob ~/OneDrive/Documents/**/Documents/file.pdf with config

~/OneDrive/Documents

Can I show text other than the file name in the card?

By adding a vertical bar | and displayed text, the first line in the card can be customized.

For example, the following code block

```ef
file.pdf|This is the file
```

will be rendered as

Why is there a plugin like this?

This plugin is primarily for my personal use case. I have many document files stored in the cloud (OneDrive for me), which is outside of the note vault. I design this plugin to make these files accessible within Obsidian across my multiple devices.

However, I believe this plugin may have many other use cases than mine. They are up to you to explore.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Binary File Manager
4 years ago by qawatake
An Obsidian plugin to manage binary files
Screwdriver
4 years ago by vorotamoroz
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
Open File by Magic Date
4 years ago by simplgy
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Update Relative Links
4 years ago by val
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
File chucker
3 years ago by Ken Lim
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
Android nomedia
3 years ago by JakeisAwesome
When syncing Obsidian with Android you will see a lot of media associated with your vaults. This will add the .nomedia file to ever folder in your Vault.
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Note archiver
3 years ago by thenomadlad
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Webdav File Explorer
3 years ago by red0orange
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Git File Explorer
2 years ago by Mateus Molina
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
S3agle
2 years ago by Turner Monroe (turnercore)
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
sync-db-os
2 years ago by ketd
Link indexer
5 years ago by Yuliya Bagriy
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Luhman
5 years ago by Dylan Elliott
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Update time on edit
5 years ago by beaussan
Cloudinary Uploader
4 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Reveal Active File Button
4 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Recently Added Files
a year ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Insert Multiple Attachments
a year ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Structured Copy: Files & Folders
a year ago by SchmidA
Inbox Organiser
a year ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Local Any Files
a year ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Tencent COS for Imgur
a year ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
External Rename Handler
a year ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
New Filename
a year ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Media Companion
a year ago by Nick de Bruin
External File Linker
a year ago by Kay606
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Remote Fetch
8 months ago by Shaharyar
WebDAV Explorer
2 months ago by 蓝星晓夜
WebDAV Explorer: Connect to WebDAV server, preview files directly in web view, and generate links through simple drag-and-drop.
Graphic Organizer
a month ago by Nick Le Guillou - Superhuman Curiosity
Interactive tree view for visualizing and managing your vault's file hierarchy.