Closed duxovni closed 1 year ago
Won't this just lead to identical behaviour? I was under the impression that expand-path does not check if paths exist before resolving the expansion.
The ~~/
prefix is special in this regard. From the manpage:
If the subpath exists in any of the mpv's config directories the path of the existing file/dir is returned. Otherwise this is equivalent to ~~home/.
Looks good then
Rather than finding the first mpv config directory that contains
script-opts
, and then looking inside there forsub-select.json
, we should find the first mpv config directory that containsscript-opts/sub-select.json
.