mise icon indicating copy to clipboard operation
mise copied to clipboard

Show relative source path when listing tasks

Open kj opened this issue 7 months ago • 0 comments

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

kj avatar Jun 26 '24 07:06 kj