jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
8.03k stars 210 forks source link

Show relative source path when listing tasks #2334

Open kj opened 6 days ago

kj commented 6 days ago

When listing tasks with mise tasks [ls], the source path can take up a lot of horizontal space if your project is in a deeply nested directory, leaving little room for the task description (which is more important to me), and often causing the command output to wrap when I have more than one terminal window open side by side. Could the script's source path be presented as a relative rather than absolute path when it refers to a non-global config path?

Absolute

Source
~/projects/project-name/some/deeply/nested/path/one/two.mise/config.toml
~/projects/project-name/some/deeply/nested/path/.mise/config.toml

Relative

./.mise/config.toml
../../.mise.config.toml