Files
dotfiles/television/cable/pj.toml
T

29 lines
893 B
TOML
Raw Normal View History

[metadata]
name = "pj"
description = """
Project tasks from every task source between the cwd and the git toplevel
(package.json, Makefile, justfile, mise, devbox, pyproject), tasks of the most
recently modified manifest first. Enter runs the task. Discovery, preview and
run live in ~/.local/bin/pj; `pj` (ctrl-p in fish, zsh and bash) opens this
cable with its own scan.
"""
requirements = ["pj", "mtime-sort"]
# Record: display, kind, target, root, runner, manifest (tab separated).
[source]
command = "pj --list 2>/dev/null"
shell = "bash"
display = "{split:\\t:0}"
[preview]
command = "pj --preview '{split:\\t:1}' '{split:\\t:2}' '{split:\\t:3}' '{split:\\t:5}'"
shell = "bash"
[keybindings]
enter = "actions:run"
[actions.run]
description = "Run the selected task"
command = "pj --run '{split:\\t:1}' '{split:\\t:2}' '{split:\\t:3}' '{split:\\t:4}'"
shell = "bash"
mode = "execute"