kevboh / longform

A plugin for Obsidian that helps you write and edit novels, screenplays, and other long projects.
Other
610 stars 30 forks source link

Feature Request: Add icon in front of the file name based on the yaml value #221

Closed wwjCMP closed 5 months ago

wwjCMP commented 7 months ago

Add an icon in front of the file name based on the yaml value. For example, in file 1

status: done

🎉file 1 name file name 2

kevboh commented 6 months ago

Just to clarify, do you mean in front of scenes in the Longform pane, or in front of notes in the Obsidian file explorer?

kevboh commented 6 months ago

If the former, I could see it, although it seems pretty niche; if the latter, not in scope for this plugin.

kevboh commented 5 months ago

This will be added in the next commit. It only works for the status property. This CSS snippet will add your example:

[data-scene-status="done"]::before {
  content: "🎉";
  padding: 0 4px 0 0;
}