[metadata] name = "path" description = "Investigate PATH contents" requirements = ["fd", "bat"] [source] command = "printf '%s\n' \"$PATH\" | tr ':' '\n'" [preview] command = "fd -tx -d1 . \"{}\" -X printf \"%s\n\" \"{/}\" | sort -f | bat -n --color=always" [actions.cd] description = "Open a shell in the selected PATH directory" command = "cd {} && $SHELL" mode = "execute"