Skip to content

This is an Obsidian plugin which can insert a date at the cursor position using a calendar.

License

Notifications You must be signed in to change notification settings

namikaze-40p/obsidian-date-inserter

Repository files navigation

Obsidian Date Inserter

This is an Obsidian plugin which can insert a date at the cursor position using a calendar.

The calendar can be called up in one of the following ways.

  • Using hotkey. (recommend)
  • Selecting Date Inserter: Open Calendar from the command palette.

demo

  • You can custom format of date.
    • ex1) mm/dd/yyyy => 01/23/2024
    • ex2) DD mm-dd => Tuesday 01-23
    • ex3) yyyy.mm.dd(D) => 2024.01.23(Tue)

Note

The calendar for this plugin uses vanillajs-datepicker. Please check this link (vanillajs-datepicker > Date String & Format) for format details.

Installation

Install the plugin in one of the following ways.

Community Plugins browser

This plugin is available in Obsidian's Community Plugins Browser.

  1. Launch the Obsidian application.
  2. Open the Settings, select Community Plugins, and select Browse.
  3. Search for Date Inserter, and click it.
  4. Click the Install.

Manually

You can also install this plugin manually.

  1. Access to Releases, and download the 3 files(main.js, manifest.json, style.css) of latest version.
  2. Create a new folder named date-inserter.
  3. Move download the 3 files to the date-inserter folder.
  4. Place the folder in your .obsidian/plugins directory. If you don't know where that is, you can go to Community Plugins inside Obsidian. There is a folder icon on the right of Installed Plugins. Click that and it opens your plugins folder.
  5. Reload plugins. (the easiest way is just restarting Obsidian)
  6. Activate the plugin as normal.

BRAT Plugin Manager

You can also install this plugin using the BRAT plugin.

  1. Install BRAT using the Obsidian Plugin manager
  2. In your Obsidian settings on the left, select BRAT in the list.
  3. In BRAT settings, click the button Add Beta Plugin
  4. In the textbox, supply the URL to this repo => https://github.com/namikaze-40p/obsidian-date-inserter
  5. Once Date Inserter is installed, activate it in your Obsidian settings.

About

This is an Obsidian plugin which can insert a date at the cursor position using a calendar.

Resources

License

Stars

Watchers

Forks

Packages

No packages published