sblakey / obsidian-quip

Obsidian plugin to publish notes to Quip.com
MIT License
24 stars 4 forks source link

Custom Quip title/header on export of Note to Quip #9

Closed isaaclen closed 1 year ago

isaaclen commented 1 year ago

The title/header of the note in Obsidian makes sense in context, but when exported as a standalone note to Quip, the title doesn't necessarily always make sense, or would benefit from adding additional information because it is probably for a different audience.

Would be nice if when exporting:

Bonus: enable a datetime placeholder in the custom title, like {{YYYY-MM-DD hh:mm:ss}}, so that whenever the document is exported, the title in Quip will automatically have that timestamp in the header. And maybe a placeholder of {{title}} so that it could dynamically allow for appending to the current note title, like: "{{title}} - For Review by Joe Smith", etc.

sblakey commented 1 year ago

I've played with this in a branch. The amusing complication is that, if Quip is told a title, it will mutate the header of the first section of the document to match that title. I can work around that by adding a new H1 at the top to receive this title...

sblakey commented 1 year ago

Unfortunately, it looks like the Quip API also doesn't support updating a title after a document is created 🙄

https://github.com/quip/quip-api/issues/89

sblakey commented 1 year ago

So, the feature I've built is more limited, but documented in the latest README.md.

If you turn on the "Add Note name as Quip document title" setting, the plugin will set a title for you and use the note filename, minus the ".md" suffix.

If you want to override this with a more customized title, you can set the title variable in your note's front matter.

I'm not inclined to build templating support into this plugin; I figure that is doable within your Obsidian templating/automation system of choice.