-
Notifications
You must be signed in to change notification settings - Fork 6
Organize Tags by Timestamp Using the Obsidian Plugin: "Tags Routes"
Currently, tags can be organized by timestamp if they are formatted like this:
your content #tag 2024-08-11 22:48:21
A tag in the format #tag [YYYY-MM-DD HH:mm:ss] is considered a tag with a timestamp. The plugin binds this timestamp to the tag and orders the tag by this time in the tag report. If no timestamp is detected, the file's modification time is used for the tag.
By binding each of your tags with a timestamp, you can generate a neatly sorted tag report when you click a tag node, which can then be exported in markdown format.
To achieve this, you can utilize an Obsidian plugin named "Latex Suite." Configure it to trigger on every #xxx pattern and append a timestamp behind it. You can add this to your Latex Suite configuration:
** Configure Latex Suite:**
- Open the Latex Suite plugin settings.
- Enable Snippets.
- Add the following code snippet to the "Snippets" section:
{
trigger: /(#[a-zA-Z0-9\/_\-\u400-\u9fa5]+\ *)/,
replacement: (match) => {
return match[1] + " " + moment(new Date()).format('YYYY-MM-DD HH:mm:ss');
},
options: "t"
},This pattern supports tags in English and Chinese characters. For other languages, you can adjust the regex pattern definition: trigger: /(#[a-zA-Z0-9\/_\-\u400-\u9fa5]+\ *)/.
In your Latex Suite plugin settings, it will look like this:
After configuring this, every time you input a tag like #youtag and press the Tab button, the timestamp will be automatically appended to your tag.