Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: De-duplicate tasks. #321

Open
1 task done
xyven1 opened this issue Jul 1, 2024 · 2 comments
Open
1 task done

feature request: De-duplicate tasks. #321

xyven1 opened this issue Jul 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@xyven1
Copy link

xyven1 commented Jul 1, 2024

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

When a task is added from some souce (such as resession.nvim, or preLaunchTask) it would be nice if there were an option to check for identical tasks (not just the same name, but same content), and de-duplicate the task.

Provide background

This would solve two problems I am having right now, first of which is that when loading a session more than once, identical tasks are loaded more than once, and second, when tasks are started from a preLuanchTask hook, the tasks will slowly build up to an annoying level.

There are many, many ways that this could be accomplished, and honestly it might already be possible with the current API, but I haven't been able to figure it out.

What is the significance of this feature?

nice to have

Additional details

No response

@xyven1 xyven1 added the enhancement New feature or request label Jul 1, 2024
@stevearc
Copy link
Owner

stevearc commented Jul 1, 2024

Check out the unique component. If you add that to your tasks, it will do name-based deduplication

@stevearc stevearc added the question Further information is requested label Jul 1, 2024
@xyven1
Copy link
Author

xyven1 commented Jul 3, 2024

That doesn't really solve either of my use cases. I want the deduplication to consider the entire task config, not just the name, and importantly I want that to apply to all tasks that overseer manages, regardless of their source or components. For example, I can't add that component to tasks created by the preLaunchTask hook afaict.

@github-actions github-actions bot removed the question Further information is requested label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants