- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2k
Open
Labels
category:enhancementNew feature or requestNew feature or requestnew-commandstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Description
Related problem
Updating extensions in Nushell is a bit cumbersome right now.  Bash has their regex: ${f%.ext}.pdf, which is ugly, but short.
Describe the solution you'd like
A function to update extensions.  Given that it can be implemented using existing path functions, I think it can go into the standard library.
# maybe a flag for not updating if a file has no extension
def "path extension" [ext: string] {
     path parse | update extension $ext | path join
}Describe alternatives you've considered
No response
Additional context and details
Keeping it as an issue due to the parsing slowness (#13152). I'm not sure if it has been fixed or not
Metadata
Metadata
Assignees
Labels
category:enhancementNew feature or requestNew feature or requestnew-commandstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look