External File Card

by James-Yu
5
4
3
2
1
Score: 59/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
967
downloads
0
forks
716
days
78
days
78
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
0
open issues
5
closed issues
6
commits

Latest Version

3 months ago

Changelog

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.
Attachment Organizer
19 days ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for 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.
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.
Binary File Manager
5 years ago by qawatake
An Obsidian plugin to manage binary files
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.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Copy Contents
23 days ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
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
Enhance Copy Note
a month ago by kzhovn
Plugin which enhances the copy command for Obsidian.
External File Linker
a year ago by Kay606
External Rename Handler
2 years ago by mnaoumov
Obsidian Plugin that handles external renames made outside of the app
File chucker
4 years ago by Ken Lim
File Explorer Reload
3 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
File Explorer++
3 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
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.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
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.
Git File Explorer
3 years ago by Mateus Molina
Graphic Organizer
5 months ago by Nick Le Guillou - Superhuman Curiosity
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
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.
Inbox Organiser
2 years 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.
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Link indexer
6 years ago by Yuliya Bagriy
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Local Backup
25 days ago by velviagris
Automatically creates a local backup of the vault.
Luhman
5 years ago by Dylan Elliott
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
Media Companion
2 years ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
2 years ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Note archiver
3 years ago by thenomadlad
Note Types
9 days ago by jsmorabito
Notebook Navigator
18 days ago by Johan Sanneblad
Copy images from Safari straight into your vault, paste links without tracking junk, fix broken terminal output, and clean up AI text. Just paste, and Better Paste handles the rest.
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
Open File by Magic Date
4 years ago by simplgy
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Remote Fetch
a year ago by Shaharyar
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
S3agle
2 years ago by Turner Monroe (turnercore)
Screwdriver
4 years ago by vorotamoroz
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.
Simple Image Inserter
2 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Store
13 days ago by shimeoki
Manage your notes within a single folder.
sync-db-os
2 years ago by ketd
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
Unique attachments
5 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Update Relative Links
4 years ago by val
Update time on edit
5 years ago by beaussan
Vault Transfer
2 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
a year ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
WebDAV Explorer
5 months ago by 蓝星晓夜
WebDAV Server Explorer.
Webdav File Explorer
3 years ago by red0orange