|
Title says it all. As an example, I just tried to type in a colon in my note, which prevented the file from being created. I would expect them to either be removed, or replaced by spaces, underscores, dashes, etc. I suppose I could do use a snippet of javascript, but I figure that's something fairly common that people would like to do, so maybe I missed a feature? Thanks in advance! |
Replies: 1 comment 1 reply
|
You didn't miss it, but it is a bit tucked away: format tokens take a which keeps the same name prompt but turns Two caveats:
Docs: https://quickadd.obsidian.guide/docs/FormatSyntax#value-case |
You didn't miss it, but it is a bit tucked away: format tokens take a
|case:transform, and most of the styles strip characters that are invalid in file names, colons included. Enable File Name Format on the choice and set it to e.g.which keeps the same name prompt but turns
Meeting: notesintoMeeting Notes. The available styles arekebab,snake,camel,pascal,title,lower,upper, andslug(lowercase-dashed, and my pick for cross-platform-safe names). It composes with other options too, e.g.{{DATE:YYYY-MM-DD}}-{{VALUE:title|case:slug}}.Two caveats:
lowerandupperonly change letter casing; they don't strip anything. Usetitle,slug,kebab, orsnakefor sanitiz…