mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 13:12:51 +00:00
30 lines
922 B
TOML
30 lines
922 B
TOML
[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, and down on an empty prompt 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"
|