Skip to content

mdFilePattern instead or additionally to mdExtensions #284

@wenigwil

Description

@wenigwil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions