Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Open File by Magic Date

simplgysimplgy4k downloads

Define a hotkey and Moment.js pattern for the file that is most important to you (eg: your daily/weekly/monthly note).

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Plugin for Obsidian

Summary

A quick way to open files that match a date pattern.

If you're trying to open a "weekly note" file or something similar, you're in the right place. This plugin has some flexibility that I couldn't find elsewhere.

My use case: Open the note for "most recent monday". But, you can use it for any datestamped filename.

screenshot

Use Cases

  • Open a file by any date pattern you can think of -- eg: {YYYY-MM-DD} foo.md
  • Open files with a single keystroke
  • Support anchoring on arbitrary days of the week, like "most recent monday". eg: weekly notes/{mon: YYYY-MM-DD} week.md
  • Support multiple files. eg: {MMMM} monthly note and {YYYY} yearly note
  • Support specifying a search query, then open the first file that matches the query

Installing

  1. Open settings -> Third party plugin -> Disable Safe mode
  2. Click "Browse community plugins" -> Search for "Magic File Hotkey"
  3. Install it, then click "enable"

Technical Details

The key piece of code is here, where the input file pattern is parsed by moment.js either against today's date or a different one:

// send anything in curlies "{mon:...}" to moment.format for the preceeding monday
// eg: `Weekly Notes/{mon:YYYY-MM-DD} week.md`
str = str.replace(/{mon:(.*)}/g, (match, captured) => priorMonday.format(captured));

// send anything in curlies "{...}" to moment.format
// eg: `Daily Notes/{YYYY-MM-DD}.md`
str = str.replace(/{(.*)}/g, (_match, captured) => now.format(captured));

Developing

Building

# npm install
npm run dev

(for auto refreshing) install git clone https://github.com/pjeby/hot-reload.git and turn it on

TODOs

  • Support multiple files, different hotkeys for each
  • when a filespec is removed, remove the associated hotkey command -- might not be possible
  • Fix: the hotkey does not rename correctly when you edit the path (requires Obsidian restart)
  • Fix: the hotkey does not stick around correctly when you edit the path (requires choosing a hotkey again after restart)
  • Detect when the file exists, to help people check their syntax easily. (example implementation of file.exists from the templater plugin)

Releasing

  1. Update the version in package.json (only)
  2. npm run version
  3. git push

This will trigger .github/workflows/release.yml.

verify the workflow is running here. Verify releases here

  1. (you're done) simply doing a github release and running release.yml will make the new version of the plugin available on the Obsidian marketplace. Nice!

Thanks and credit

Originally forked and learned from Hotkeys for specific files. Thank you, Vinzent03.

Similar Plugins

  • Homepage - open a specific note on startup
  • Hotkeys for starred files
  • Hotkeys for specific files
64%
HealthFair
ReviewSatisfactory
About
Open files using date-patterned filenames (e.g., {YYYY-MM-DD}, {mon: YYYY-MM-DD}) to jump to daily, weekly, monthly, or yearly notes. Map single keystrokes to open the most recent anchor (like most recent Monday) or the first file matching a search query.
DatesNavigationHotkeys
Details
Current version
0.1.2
Last updated
3 years ago
Created
4 years ago
Updates
4 releases
Downloads
4k
License
MIT
Report bugRequest featureReport plugin
Author
simplgysimplgy
github.com/simplgy
GitHubsimplgy
  1. Community
  2. Plugins
  3. Dates
  4. Open File by Magic Date

Related plugins

Natural Language Dates

Create date-links based on natural language.

TODO | Text-based GTD

Collect all outstanding TODOs from your vault and presents them in lists Today, Scheduled, Inbox and Someday/Maybe.

Notebook Navigator

Alternative file browser with folders, tags, properties, shortcuts, previews, keyboard navigation, drag and drop, and pinned notes.

Recent Files

Display a list of recently opened files.

Day Planner

Day planning from a task list in a Markdown note with enhanced time block functionality.

Tasks

Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.

Creases

Tools for effectively folding Markdown sections.

Reminder

Manage Markdown TODOs with reminder.

Remember cursor position

Remember cursor and scroll position for each note.

TagFolder

Show tags as folder.