nvim-telekasten / telekasten.nvim

A Neovim (lua) plugin for working with a markdown zettelkasten / wiki and mixing it with a journal, based on telescope.nvim
MIT License
1.38k stars 86 forks source link

[FR] Add `filename_smallcaps` option #311

Open lambtho12 opened 7 months ago

lambtho12 commented 7 months ago

See: https://github.com/renerocksai/telekasten.nvim/discussions/310

Add a filename_smallcaps so the filename can be formatted properly while the note title is kept intact. This is just a matter of using string.lower at the correct place.

myString = string.lower(myString)

When the config workflow has been refactored, it would be nice to have something like

config = {
  filename_format = {
    space_sep = "_",
    small_case = true,
    ...
  }
}
martinpallmann commented 7 months ago

you could instead also allow for a function that accepts the typed title and returns the filename like it is with the UUID function if I'm not mistaken.

lambtho12 commented 7 months ago

Yes this is a possibility. But for now let's stick to the simple stuff :smile: