Templater icon indicating copy to clipboard operation
Templater copied to clipboard

calendar-ui modal

Open iwconfig opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I would like to access the obsidian-calendar-plugin in a modal when inserting a template using templater. I would find it useful for inserting dates as well as have the functionality of obsidian-calendar-plugin regarding daily/weekly notes.

Describe the solution you'd like The ui of obsidian-calendar-plugin is available as a separate package so this should be rather easy to implement.

this.calendar = new Calendar({
    target: contentEl, // the HTML element you're attaching it to
    props: {},
});

Describe alternatives you've considered I first opened an issue over at liamcain/obsidian-calendar-plugin#209 where I presented a few alternatives where especially the second post about relocating the calendar view to a modal tree is the most interesting but not that simple.

I'm considering creating my own plugin, but I would much rather prefer to have it accessible directly from templater. Because

  1. my JS skills are rusty and not very good anyway,
  2. I find it more convenient to this feature in same plugin I mostly use anyway,
  3. I think it would be a nice and useful feature for templater to have and,
  4. I don't think it should be that complicated to implement.

iwconfig avatar Oct 17 '21 20:10 iwconfig