What I would like to suggest is a new configuration option that will make the filetype detection of Vivify a little bit more configurable. I guess one could call it mdFilePattern such that it will enable the user to use a regular expression pattern in the determination what should be rendered as Markdown. Much like the filetype detection in Neovim with its pattern-argument of vim.filetype.add() just that it is fixed to the filetype markdown
Where could this be useful?
A limitation arises for me when I want to use Vivify together with calcurse which is a handy text-based calendar. You can have notes for every item you can put into calcurse. I edit those notes with nvim and would like to use vivify.vim to get my note rendered in Markdown on side :) BUT the notes, for the time of the edit, exist temporarily as /tmp/calcurse-note.Vf21ma (the file suffix are 6 alphanumeric characters). With mdFilePattern I could solve the filedetection just as I did in nvim by providing the a pattern for the whole path of the file.
What I would like to suggest is a new configuration option that will make the filetype detection of Vivify a little bit more configurable. I guess one could call it
mdFilePatternsuch that it will enable the user to use a regular expression pattern in the determination what should be rendered as Markdown. Much like the filetype detection in Neovim with itspattern-argument ofvim.filetype.add()just that it is fixed to the filetype markdownWhere could this be useful?
A limitation arises for me when I want to use Vivify together with
calcursewhich is a handy text-based calendar. You can have notes for every item you can put intocalcurse. I edit those notes withnvimand would like to usevivify.vimto get my note rendered in Markdown on side :) BUT the notes, for the time of the edit, exist temporarily as/tmp/calcurse-note.Vf21ma(the file suffix are 6 alphanumeric characters). WithmdFilePatternI could solve the filedetection just as I did innvimby providing the a pattern for the whole path of the file.