bastibe / org-static-blog

A static site generator using org-mode
BSD 3-Clause "New" or "Revised" License
341 stars 74 forks source link

Configurable whitespace-removal in suggested filename #123

Closed magthe closed 1 year ago

magthe commented 1 year ago

Manually modifying the filename is nice, but a bit of a drag when having to do it often. I've made it configurable in my own setup and I thought I'd share it in case others think it's a good idea too.

bastibe commented 1 year ago

That looks useful, thank you for your contribution. Could you give an example of the kinds of file names you use it for?

magthe commented 1 year ago

It happens that I want a / in the title, e.g. when writing about a project on GitHub. So in my setup I now have the following to deal with it:

(setq org-static-blog-suggested-filename-cleaning-regexp (rx (or "/" (in white))))
bastibe commented 1 year ago

Thank you for the clarification. I think it would be useful to give this example in the documentation or the FAQ.

Would you like to add that before we merge?

magthe commented 1 year ago

I made a first attempt at documenting it, with a small example. Let me know what you think.

bastibe commented 1 year ago

Wonderful! Thank you very much!

Let me know if you think this is ready to merge.

magthe commented 1 year ago

Yes, if you are happy with it then please go ahead and merge it.

bastibe commented 1 year ago

Thank you very much!

Do you urgently need this in a new tagged release?