jedrzejboczar / toggletasks.nvim

Neovim task runner: JSON/YAML + toggleterm.nvim + telescope.nvim
MIT License
157 stars 3 forks source link

filetype field for tasks #19

Open Zeioth opened 1 year ago

Zeioth commented 1 year ago

It would be great if a task could be listed only for certain languages.

jedrzejboczar commented 1 year ago

It sounds useful, but I'm not sure if I'll have time to implement it soon. The telescope picker would have to filter tasks by the new "filetype" field checking current filetype.

For a temporary solution you could add filetype as a tag, e.g. #cpp and type this in the picker, but ofc it won't be automatic based on current filetype.