On 2024-09-03 09:03, Roman Perepelitsa wrote:
Now that's compact. What's it's antimatter twin -- grab everything but the extension?You might be looking for ${filename:e}. It does not differentiate between short vs long extensions, but you probably shouldn't either.
$filename:h /foo/bar
$filename:t baz.txt
$filename:r /foo/bar/baz
$filename:t:r baz
$filename:e txt