Current File

by Mark Fowler
5
4
3
2
1
Score: 32/100

Description

Category: 3rd Party Integrations

The Current File plugin enables seamless integration between Obsidian and external tools by exposing the current file being viewed in the desktop application. It automatically generates a JSON file containing the file's path, vault location, and full directory path, which can be accessed by external programs. This functionality allows users to create workflows or scripts, such as updating daily notes, checking link validity, or automating specific tasks based on the current file. The plugin enhances the flexibility of working with Obsidian's markdown files, making it ideal for advanced or custom workflows.

Reviews

No reviews yet.

Stats

4
stars
338
downloads
0
forks
637
days
668
days
668
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
5
commits

Latest Version

2 years ago

Changelog

Initial Release

README file from

Github

Current File

Plugin for Obsidian that allows external programs to determine what the current file you're looking at in the the desktop application.

Why?

One of the great things about Obsidian is that it just works on a directory of Markdown (an "Obsidian Vault"). You can manipulate the contents of the files with external programs while Obsidian is open and it'll reflect the changes in the application. You're not bound to Obsidian and can use any tools you want in your workflow.

This plugin allows external programs to be able to determine what file you're looking at in the Obsidian desktop application. For example, you could bind a keyboard shortcut to execute a Perl script to add the path to the current note to your daily note. You could have a Go program that checks if every link in the current file is still reachable and removes those that are not. The possibilities are endless.

How to use this plugin

By default every time Obsidian starts looking at a new file in a vault that has this plugin installed, a JSON file will be written to .obsidian-current-file.json in your home directory (or current profile directory on Windows))

{
    "file": "Sorted/Daily/2024-07-19.md",
    "vault": "/Users/markfowler/Obsidian/MyVault",
    "fullpath": "/Users/markfowler/Obsidian/MyVault/Sorted/Daily/2024-07-19.md"
}

You can change where the file will be written to in the settings for this plugin.

Alternatives

Obsidian natively supports a x-callback-url scheme to allow you to determine what file it's looking at, although this requires you to be running an application with a custom url scheme to receive the information (or be running a webserver and not mind having Obsidian spawn a web browser window).

More information on this feature can be found in the Obsidian Help Documentation.

MIT License

Copyright (c) 2024 Mark Fowler <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Note Toolbar
2 years ago by Chris Gurney
Flexible, context-aware toolbars for your notes in Obsidian.
Smart Composer
2 years ago by Heesu Suh
AI chat assistant for Obsidian with contextual awareness, smart writing assistance, and one-click edits. Features vault-aware conversations, semantic search, and local model support.
Execute Code
4 years ago by twibiral
Obsidian Plugin to execute code in a note.
Zoottelkeeper
5 years ago by Akos Balasko
Obsidian plugin of Zoottelkeeper: An automated folder-level index file generator and maintainer.
Shell commands
5 years ago by Jarkko Linnanvirta
Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
Local Backup
3 years ago by GC Chen
Automatically creates a local backup of the vault.
Khoj
3 years ago by Debanjum Singh Solanky
Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.
CustomJS
5 years ago by Sam Lewis
An Obsidian plugin to allow users to reuse code blocks across all devices and OSes
Modal forms
3 years ago by Danielo Rodriguez
Define forms for filling data that you will be able to open from anywhere you can run JS
Enveloppe
4 years ago by Mara-Li
Enveloppe helps you to publish your notes on a GitHub repository from your Obsidian Vault, for free!
Note Linker
4 years ago by Alexander Weichart
🔗 Automatically link your Obsidian notes.
AI Providers
a year ago by Pavel Frankov
This plugin is a hub for setting AI providers (OpenAI-like, Ollama and more) in one place.
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Note Companion AI
9 months ago by Benjamin Ashgan Shafii
Note Companion: AI assistant for Obsidian that goes beyond just a chat. (prev File Organizer 2000)
Auto Template Trigger
3 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Pieces for Developers
3 years ago by Pieces For Developers
Pieces' powerful extension for Obsidian-MD that allows users to access their code snippets directly within the Obsidian workspace
Regex Pipeline
5 years ago by No3371
An Obsidian plugin that allows users to setup custom regex rules to automatically format notes.
Prompt ChatGPT
2 years ago by Coduhuey
Personal Assistant
3 years ago by edony
A plugin that harnesses AI agents and streamlining techniques to help you automatically manage Obsidian.
Text Expander JS
4 years ago by Jonathan Heard
Obsidian plugin: Type text shortcuts that expand into javascript generated text.
AI Tagger
2 years ago by Luca Grippa
Simplify tagging in Obsidian. Instantly analyze and tag your document with one click for efficient note organization.
Apply Patterns
5 years ago by Jacob Levernier
An Obsidian plugin for applying patterns of find and replace in succession.
Enhanced Canvas
a year ago by RobertttBS
When editing on Canvas, properties and Markdown links to notes are automatically updated, enabling backlinks in Canvas.
Attachment Manager
3 years ago by chenfeicqq
Attachment folder name binding note name, automatically rename, automatically delete, show/hide.
YouVersion Linker
3 years ago by Jaanonim
Obsidian plugin that automatically link bible verses to YouVersion bible.
AI Tagger Universe
a year ago by Hu Nie
An intelligent Obsidian plugin that leverages AI to automatically analyze note content and suggest relevant tags, supporting both local and cloud-based LLM services.
Differential ZIP Backup
2 years ago by vorotamoroz
Dataview (to) Properties
10 months ago by Mara-Li
Sync inline Dataview to properties (YAML frontmatter)
Webhooks
5 years ago by Stephen Solka
Connect obsidian to the internet of things via webhooks
Day and Night
4 years ago by Kevin Patel
An Obsidian plugin to automatically switch between day and night themes based on a set schedule
Automatic Linker
a year ago by Kodai Nakamura
Linkify
4 years ago by Matthew Chan
Arcana
3 years ago by A-F-V
Supercharge your Obsidian note-taking through AI-powered insights and suggestions
RunJS
3 years ago by eoureo
Let's run JavaScript easily and simply in Obsidian.
Weekly Review
3 years ago by Brandon Boswell
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.
Substitutions
2 years ago by BambusControl
Automatic text replacer for Obsidian.md
InlineAI
a year ago by FBarrca
Snippets
5 years ago by Pelao
JavaScript Init
5 years ago by ryanpcmcquen
Run custom JavaScript in Obsidian.
Packrat
4 years ago by Thomas Herden
Process completed instances of recurring items created by the Obsidian Tasks plugin
Metadata Auto Classifier
2 years ago by Beomsu Koh
AI-powered Obsidian plugin that automatically classifies and generates metadata (tags, frontmatter) for your notes.
Cron
3 years ago by Callum Loh
Obsidian cron / schedular plugin to schedule automatic execution of commands
Gnome Terminal Loader
3 years ago by David Carmichael
Auto Periodic Notes
2 years ago by Jamie Hurst
Obsidian plugin to create new periodic notes automatically in the background and allow these to be pinned in your open tabs. Requires the "Periodic Notes" plugin.
Auto Hyperlink
3 years ago by take6
Automation
2 years ago by Benature
NoteMover shortcut
a year ago by Lars Bücker
Quickly and easily move notes to predefined folders. Perfect for organizing your notes.
Auto Front Matter
3 years ago by conorzhong
Frontmatter generator
3 years ago by Hananoshika Yomaru
A plugin for Obsidian that generates frontmatter for notes
Open File by Magic Date
4 years ago by simplgy
R.E.L.A.X.
2 years ago by Syr
Regex Obsidian Plugin
Current View
10 months ago by Lucas Ostmann
Automatically set the view mode (Reading, Live Preview, Source) for notes in Obsidian using folder rules, file patterns, or frontmatter.
NeuroVox
2 years ago by Synaptic Labs
Obsidian plugin for transcription and generation
Tab Rotator
3 years ago by Steven Jin
Obsidian Rotate opened tabs with a specified time interval
Babashka
3 years ago by Filipe Silva
Run Obsidian Clojure(Script) codeblocks in Babashka.
Run
2 years ago by Hananoshika Yomaru
Generate markdown from dataview query and javascript.
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
Steward
7 months ago by Dang Nguyen
A vault-specific agent equipped with agentic capacity, fast search, flexible commands, vault management, and terminals to "jump" into other CLI agents, such as Claude, Gemini, etc.
Snippets Manager
2 years ago by Venkatraman Dhamodaran
Snippets Manager (Text Expander) For Obsidian
Title As Link Text
a year ago by Lex Toumbourou
An Obsidian plugin to set the Link Text using the document title
Blueprint
3 months ago by François Vaux
Repeatable templates plugin for Obsidian
RSS Copyist
2 years ago by aoout
Get the RSS articles as notes.
Tag Breakdown Generator
3 years ago by Hananoshika Yomaru
Break down nested tags into multiple parent tags
Note 2 Tag Generator
2 years ago by Augustin
Daily note creator
2 years ago by Mario Holubar
Automatically creates missing daily notes.
Note UID Generator
a year ago by Valentin Pelletier
Allow you to automatically generate UID for the notes in your vault.
Personal OS
2 years ago by A.Buot
Todos sort
2 years ago by Jiri Sifalda
A plugin for Obsidian that sorts todos within a note
Google Calendar Importer
7 months ago by Fan Li
A simple and light-weighted google calendar importer, allow injecting the events / tasks of a day automatically to your daily notes, or import it to anywhere with a command.
Auto Replacer
a year ago by Alecell
A live text replacement plugin that applies automatic formatting, corrections, or custom replacements in real-time. Define your own regex-based rules and transformation logic to modify text dynamically as you type.
Timeline Canvas Creator
10 months ago by chris-codes1
Quickly create timeline structured canvases in Obsidian.
Inkporter
a year ago by Ayush Kumar Saroj
Inkporter is an Obsidian plugin that digitizes handwritten notes with smart ink isolation, adaptive theming, and seamless import workflows.
Missing Link File Creator
a year ago by Lemon695
The plugin creates both missing links and the corresponding files.
Vault File Renamer
a year ago by Louan Fontenele
Vault File Renamer: Automatically standardizes file names to GitHub style (lowercase, no accents, only -, ., _) while preserving folder structure and file contents.
Last Position
a year ago by saktawdi
Automatically scroll to the last viewed position when opening the markdown document.
pycalc
a year ago by pycalc
AI integration Hub
a year ago by Hishmat Salehi
A modular AI integration hub for Obsidian
LinkMagic
2 years ago by AndyReifman
Template Filename
a year ago by Callum Alpass
Obsidian plugin for creating notes with templatable filenames
Note Linker with Previewer
2 years ago by Nick Allison
Obsidian Plugin to find and Link notes
Sentinel
a year ago by Giorgos Sarigiannidis
A plugin for Obsidian that allows you to update properties or run commands based on document visibility changes.
tidit
a year ago by codingthings.com
tidit is an Obsidian - https://obsidian.md - plugin that adds timestamps to your document as you type — when you want it, how you want it, where you want it.
Task Mover
a year ago by Mariia Nebesnaia
A plugin for obsidian to move unfinished tasks to the daily note automatically
Organized daily notes
a year ago by duchangkim
Automatically organizes your daily notes into customizable folder structures for better organization and easier navigation.
URL Formatter
8 months ago by Thomas Snoeck
Automatically formats specific URLs pasted into Obsidian into clean Markdown links.
AI Note Tagger
a year ago by Jasper Mayone
Auto tagging obsidian notes w/ AI
Rapid AI
2 years ago by Rapid AI
AI Assistant for selected text and generating content with Markdown. Shortcuts and quick action buttons provide instant AI assistance. It provides a high availability API for unlimited Chat GPT request rates, so you can ensure smooth work for any workload.
Hotstrings
a year ago by wakywayne
Runsh
a year ago by Ddone
A simple plugin that allows to run shell commands from obsidian.
Tasks Cleaner
a year ago by lowit
🧹 Tasks Cleaner is a plugin for Obsidian that helps you automatically remove old completed tasks from your Markdown notes
Varinote
a year ago by Giorgos Sarigiannidis
A plugin for Obsidian that allows you to add variables in Templates and set their values during the Note creation.
Rsync
a year ago by Ganapathy Raman
An Obsidian plugin to perform sync files between machines using Rsync
Memos AI Sync
a year ago by leoleelxh
obsidian-memos-sync-plugin,将 Memos 内容同步到 Obsidian 的插件,提供无缝集成体验。
Jura Links
2 years ago by Lukas Collier & Emi Le
Verlinke deine Normangaben, Aktenzeichen oder Fundstellen in deiner Obsidian Notiz mit Gesetzesanbietern.
Watched-Metadata
2 years ago by Nail Ahmed
Watches for changes in metadata and updates the note content accordingly.
Mastodon Threading
a year ago by El Pamplina de Cai
Obsidian plugin to compose and post threads to Mastodon
NotePix
8 months ago by Ayush Parkara
NotePix automatically uploads images, screenshots from your Obsidian vault to a designated GitHub repository. It then seamlessly replaces the local link with a fast URL, keeping your vault lightweight and portable.
Discord Message Sender
a year ago by okawak
Obsidian Plugin: Send messages from a Discord channel to your Vault
Plugin REPL
a year ago by readwithai
An in-note Read Evaluate Print Loop to execute JavaScript within Obsidian
Daily Note Structure
2 years ago by db-developer
This obsidian plugin creates a structure for your daily notes
Auto Daily Note
a year ago by John Dolittle
Note From Form
a year ago by Sergei Kosivchenko
Obsidian plugin that adds support to define input form and generate notes based on it
Fast Image Auto Uploader
2 years ago by Longtao Wu
upload images from your clipboard by gopic
Daily Notes Automater
a year ago by David Pedrero
Copy Local Graph Paths
a year ago by Amy Z
copy-local-graph-paths is a simple Obsidian plugin that copies the paths of notes linked to your current page.
Open or Create File
7 months ago by Ilya Paripsa
Set up Obsidian commands that create or open files based on predefined patterns.
Blog AI Generator
a year ago by Gareth Ng
Obsidian Plugin: generate blog via AI based on the current note.
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.
IMSwitch in Math Block
a year ago by XXM
Notes 2 Tweets
2 years ago by Tejas Sharma
Generate and schedule tweets automatically from your notes on Obsidian
Random Wikipedia Article
10 months ago by SpencerF718
An Obsidian plugin to generate a note of a random Wikipedia article.
Hanko
a year ago by Telehakke
Obsidian plugin.
Handlebars Dynamic Templating
4 months ago by Hide_D
Handlebars dynamic templating. Define template files and use them dynamically via hb blocks. Template recursion is also possible.
KOI Sync
a year ago by Luke Miller
Content OS
8 months ago by eharris128
Post to LinkedIn from within Obsidian
One Step Wiki Link
a year ago by Busyo
用于 Obsidian 一步插入当前界面匹配到的所有外链(维基链接)
Move Cursor On Startup
8 months ago by Jared Kelnhofer
Obsidian plugin to move the cursor to the right and back to the left when starting up. Why? To keep DataView expressions from not running on the first load of, say, your Home file.
EUpload
a year ago by Appleex
Obsidian 插件,专用于上传文件到存储仓库。目前支持 Lskypro(兰空图床),后续有需求会引入其它存储方式,如:Github/Gitee等等。