Hidden tasks and task variables for keybinds #34370
JonGretar
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using tasks and task keybinds a bit as a replacement for an extension system. And it's been working really well. I basically have tasks for lazygit, posting and a couple of television channels for file and project finding and opening.
I'm now looking a bit at the possibility of adding a harpoon2 implementation for zed but in the current implementation I would have to add like 10-14 tasks. And by that point all gains in productivity would be lost by the fact that the task list is filled with a bunch of tasks when running actual tasks such as build and debug. Making it hard to find the real tasks.
What would make things much nicer are two relatively simple changes.
First would be the ability to mark the tasks as
hidden
. They can still be run by exact name in the key bindings and possibly the task list. But would otherwise be not listed in any task lists.Second would be to allow
task::Spawn
in the keymap to modify the tasks or set parameters in some way. Possibly to overide theargs
parameter or append toenv
. Some sort of customisation of the task. Allowing the keymap to bind to a singular "open_file" with the parameter "1" instead of haveing to create the tasks "open_file_1", "open_file_2", "open_file_3" etcOr does someone have other ideas?
Beta Was this translation helpful? Give feedback.
All reactions