Skip to content

Tasks: Spawn in Center Terminal #9445

@baldwindavid

Description

@baldwindavid

Check for existing issues

  • Completed

Describe the feature

The recently released #9064 is super-nice to run things like a "Test Under Cursor" task in the "dock".

"space t": ["task::Spawn", { "task_name": "Test Under Cursor" }],

However, another use case that I'd like to run as a task is posted in #9067

I'm simulating a netrw-ish experience by opening in a file explorer (ya for yazi explorer in this example) in a center terminal with...

"-": [
  "workspace::SendKeystrokes",
  ": c r p enter : new center terminal enter ya space cmd-v enter"
],

This works, but would be much cleaner using this "task_name" argument in a keybinding.

"-": ["task::Spawn", { "task_name": "List Files" }],

The issue is that this opens in the "dock" rather than the current pane.

I think it would be nice if a target could be specified alongside the task name with something like...

"-": ["task::Spawn", { "task_name": "List Files", "target": "center" }],

By default this "target" could be "dock". I suppose this "target" could instead be specified within the task. This would limit the flexibility a bit, but maybe that's the way to go to avoid spreading task options across both the task and the keybinding.

It appears this request is also noted in a comment within a discussion at #8485 (reply in thread)

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature[core label]tasksterminalFeedback for terminal integration, shell commands, etcworkspaceFeedback for workspace management, layout, interactions, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions