4rtamis / obsidian-brumes

City of Mist inspired Obsidian theme, based on the award-winning modern fantasy tabletop role-playing game.
MIT License
5 stars 0 forks source link

espanso triggers #4

Open tnntwister opened 6 months ago

tnntwister commented 6 months ago

Hi !

Unfortunately, it seems a python module is lacking on my ubuntu install to make your python code work. But i found a solution not to need them : i'm using espanso to add Brumes code into my obsidian files. Feel free to include it in your repo or ask for changes : https://github.com/tnntwister/espanso-pp/tree/main/brumes

Hope you'll go on developing Brumes !

Regards,

4rtamis commented 6 months ago

Hi !

Thanks for opening this issue. What exactly do you mean by "make your python code work"? I am not sure I really understand as it is mostly CSS (or SCSS) with a JS bundler.

Anyway, I really like how you use espanso to enhance Brumes! It seems it does a great job at templating tags, dangers, clues...

I am currently working on a refactor of the overall code to simplify how to use Brumes inside Obsidian and to add more customization. Hopefully it gets released this summer.

tnntwister commented 6 months ago

for clues, moves and description for instance,

<%* selection = tp.file.selection(); const type = await tp.system.suggester(["Clue","Special Clue","Move","Description"], ["clue","special-clue","move","description"]);

if (type === undefined || type === null) { return; } else { return ">[!" + type + "] " + selection; } %>

isn't executed. it just inserts code in my current note. i've read i need a obsidian module in order to execute scripts, which relies on jupyter python package, i don't know if it's really the right solution.