Skip to content

Add the possibility of using more than one extension eg. {'.md', '.qmd'} [FR] #337

@ertwro

Description

@ertwro

Please confirm

  • I am running the latest version of this plugin

While I understand that Telekasten has its own filetype and its various abilities stem from being distinct from markdown, it still uses the markdown file extension. However, there are multiple markdown extension files, and if I want to use more than one extension, I either need another vault or have to modify my configuration each time. In the configuration file, when I set the extension type, I can only select one at a time.

    require('telekasten').setup {
      home = vim.fn.expand '~/zettelkasten', -- Put the name of your notes directory here
      -- Launch panel if nothing is typed after <leader>z
      vim.keymap.set('n', '<leader>zz', '<cmd>Telekasten panel<CR>'),
      -- Call insert link automatically when we start typing a link
      vim.keymap.set('i', '[[', '<cmd>Telekasten insert_link<CR>'),
      extension = '.md',
      -- extension = '.qmd',
      -- extension = '.rmd',
      -- extension = {'.rmd', '.md', '.qmd'},
    }

Instead of expecting a string, please allow the addition of a table.
This way we can use more than one extension for the Telekasten filetype, like this.

      extension = {'.rmd', '.md', '.qmd'},

Thanks in advance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions