Skip to main content

Tasks ([tasks]) Layer

The [tasks] layer controls the task manager overlay, which displays ongoing file operations, plugin tasks, and shell processes.

Actions

ActionArguments/OptionsDescription
showOpen the task manager overlay
closeClose the task manager
arrow--up, --downNavigate through the task list
inspectView logs for the selected task

Inspect Logs

The inspect action opens the log viewer for a specific task. The log content depends on the task type:

Task TypeLog Content
I/O operations (copy, move, remove)Per-file progress, errors, skipped files
Lua pluginsLua error traces, print() output, ya.err() messages
Shell commandsstdout and stderr output from the spawned process
[tasks]
prepend_keymap = [
{ on = "i", run = "inspect", desc = "Inspect selected task" },
]

Task Management

ActionArguments/OptionsDescription
cancelCancel the selected task
helpOpen help menu for the tasks layer
pluginargsRun a plugin from the tasks context
noopNo operation

Example Configuration

[tasks]
prepend_keymap = [
{ on = "q", run = "close", desc = "Close tasks" },
{ on = "<Esc>", run = "close", desc = "Close tasks" },
{ on = "i", run = "inspect", desc = "Inspect task log" },
{ on = "d", run = "cancel", desc = "Cancel task" },
]
append_keymap = [
{ on = "j", run = "arrow --down", desc = "Move down" },
{ on = "k", run = "arrow --up", desc = "Move up" },
{ on = "<C-d>", run = "arrow --down 5", desc = "Move down 5" },
{ on = "<C-u>", run = "arrow --up 5", desc = "Move up 5" },
]
tip

Tasks that complete with errors remain visible in the task manager until dismissed. Use inspect to review what went wrong.