Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a home code block to display links to today and this week journal entries #96

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tobalsan
Copy link

Hey Sergii, love your plugin, been using it since a couple month to replace the Obsidian core one and Periodic plugin.

I use a Home note in Obsidian which I use to navigate more than sidebars (I have them collapsed by defaault).
I also had a "Today" and "This week" links on my home note to quickly access the corresponding notes.
Since I replaced the old plugins with yours, I had lost the ability to create a direct link to these journal entries, so I added a code block that adds back these features.

The home code block provides quick navigation links to today's note and/or the current week's note. It's a simple way to add navigation shortcuts to any note in your vault.

Usage

Basic usage showing just today's link:

```home
```

Show both today and week links:

```home
today: true
week: true
```

Features

  • Displays clickable "Today" and "This week" links based on configuration
  • Automatically handles multiple journals by showing a selection modal when needed
  • Uses the current note's journal context if available'

This way, I was able to add back the links into my home note, of course anyone can add the links on any page (they don't have to be connected to a journal) for quick access.

- Add  code block that works on any page
- Show links to Today's Note and This Week's Note
- Use connected journal if page is part of a journal
- Show journal picker if multiple journals are available
- Respect journal settings for enabled sections
- Make today link enabled by default
- Add today/week config options via code block params
- Support 'day' alias for 'today' param
- Only show bullet separator when both links present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant