overseer.nvim icon indicating copy to clipboard operation
overseer.nvim copied to clipboard

feature request: ability to remove a template definition

Open tobias-haenel opened this issue 2 years ago • 2 comments

Did you check existing requests?

  • [X] I have searched the existing issues

Describe the feature

A method to remove a template definition. Or should we directly remove the definitions from the overseer.template.registry?

Provide background

I am trying to write my own project management and I don't want to keep my active template definitions when I switch a project.

What is the significance of this feature?

nice to have

Additional details

No response

tobias-haenel avatar Dec 12 '23 16:12 tobias-haenel

It would be nice if there were a way to do this. They way I've handled it thus far is by adding a dir condition (seen here: https://github.com/stevearc/overseer.nvim/blob/master/doc/recipes.md#directory-local-tasks-with-exrc)

One note: this may not matter for your workflow, but it can get a little tricky because vim can set working directories per-tab or even per-window, making it more difficult to determine when you have "left" a directory.

stevearc avatar Dec 24 '23 03:12 stevearc

I'd prefer to use plain templates, if that where possible. That would make the whole template management easier in my case.

I don't want to rely on the directory as a project indicator for that exact reason. That is why I manually select which project is currently active.

tobias-haenel avatar Dec 24 '23 10:12 tobias-haenel