mgmeyers / obsidian-embedded-note-titles

GNU General Public License v3.0
58 stars 5 forks source link

FR: Allow arbitrary formatting of title #33

Open SkepticMystic opened 2 years ago

SkepticMystic commented 2 years ago

This could be a difficult one. What I'm looking for is to be able to pass the note title thru any JS function that returns a string, and have the output displayed instead.

My main use case is the split dendron note names:

Math.Linear Algebra.MatrixMatrix

I'd be able to supply a function:

function dendronSplit(title) {
    return title.split('.').last()
}

This might be much more than is necessary or useful, but I imagine others would like to be able to format the title. Even if you just allow a specific option to split dendron note titles, I'm happy. But this option is more extensible