Closed pprevos closed 1 month ago
I am not sure I understand the use case. In your title, you mention links. Maybe customizing denote-link-description-function
is what you are looking for? This user option allows you to specify how your link descriptions are created. You can include some desluggification in there.
Thanks. I was unaware of this variable. I have created a bespoke function that meets my needs.
You're welcome!
The
denote-retrieve-title-or-filename
function returns the raw title string for Denote attachments:(eq (denote-filename-is-note-p file) nil)
So instead of the link title being:
this-is-a-denote-attachment
, it should be something like:This Is a Denote Attachment
.The titlecase package can help, so I created this helper function:
How can we elegantly add such a function to Denote. Could we advise
denote-retrieve-filename-title
?