I want to have dynamic button label that display name of selected/focused item.
So display folder name or file without extension, equivalent of {file$|noext} or %2.
I don't think it's currently available:
You could add it to the lister title via %F, and lift it from there via lister_title.
That's what selpath gives you I think?
selpath also displays the file extension.
I'm not sure how to use %F with lister_title .
I just use preferences to adjust this.
Try
@label:IsPath(selpath) ? Stem(selpath) : ""
Is it possible to display the first selected item name instead of the focused one (like {file} external control code) ?