Closed wpcarro closed 4 years ago
You have f-expand. What about supporting f-contract?
f-expand
f-contract
(f-contract "/home/wpcarro/file.txt") ;; => "~/file.txt"
I often need this to write predicates that work across my different machines that return different values for ~. I'm happy to create a PR if you're open to the idea.
~
If this already exists, and I've missed the function, please let me know!
Does this function do what you want? https://github.com/rejeep/f.el#f-short-path
Brilliant. Thank you for sharing, and I apologize for the unnecessary noise.
You have
f-expand
. What about supportingf-contract
?I often need this to write predicates that work across my different machines that return different values for
~
. I'm happy to create a PR if you're open to the idea.If this already exists, and I've missed the function, please let me know!