hananoshikayomaru / obsidian-frontmatter-generator Goto Github PK
View Code? Open in Web Editor NEWA plugin for Obsidian that generates frontmatter for notes
License: MIT License
A plugin for Obsidian that generates frontmatter for notes
License: MIT License
null
null
null
I'm thinking this should be able to solve this. There has to be something that is changed when I drag a card from column/list to another column/list - that can then be used to generate/update Status/Priority or however you define your lists.
Sorry for lame definition, but I saw your post for Projects, which was a possible solution to this. I'm going to use your plugin and see if I can limit it to Kanban folder, and solve this.
now if a tag is inside a codeblock, it is still recognise.
it should not be recognise
This issue happens because we use our own parser to detect tag, this is not a good way. we should think of a better way to retrieve tags from the note.
The current way is not very robust. The on save of different plugins might crash.
we might to need have callback manager to handle onSave
callback
From SyncLinear.com | YOM-550
Great app! I've been looking for a way to sync properties with tags for months and this does it perfectly.
It would be helpful though if there was a way to run multiple conditional statements. In my case I have a conditional set up to check file type and if it's 'Estimate', update tags based on 3 other fields, and set the received date based on date created. Took a bit of tinkering but that works.
{...file.properties?.type === 'Estimate'
?
(() =>
{
const date = new Date(file.stat.ctime);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const formattedDate = `${year}-${month}-${day}`;
return {
tags: [file.properties.status, file.properties.company, file.properties.type],
received: formattedDate
};
}
)
()
:
{}}
I also want to update any file with a location field that has no type to an 'Estimate'. Again, was able to achieve this.
Where I'm hitting the wall is combining the two. Ternary operators are new for me and I've had zero luck trying to nest them.
I've actually got six or seven other conditions I'd like to run as well but I'm unclear how I would do that.
Being able to input discrete conditions would be a great feature
console.log("modify", file);
now user can choose run on modify. But some user also prefer run only on save using the custom-save plugin. Therefore, I suggest seperating them to run on modify outside file and run on modify but not in the source mode.
From SyncLinear.com | YOM-591
this is not a big problem but this should be easy to fix.
null
when set a property to null
, should remove frontmatter
I want to auto run this in excalidraw folder so that I can make sure that they will not be published
for auto run, we allow user to auto run in 3 callback (on save, on active file change, on new file created). Then they add a list of folders / files to different callback.
null
v1.0.1 code is a bit messy. I will update it in the future.
null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.