I really appreciate the new SAF API. On top of the current utils, it would be good to have realpath equivalent and get name of the file.
Feature description
termux-saf-realpath returns the URI in path. If it is online storage (e.g. GDrive), then perhaps return a empty string
termux-saf-realname returns to name of the file
Reference implementation
Nasib's answer in this stackoverflow post seems promising to handle media files.
Many more stackoverflow posts should help.
I may make pull requests if it's preferred and when I have time to write and test the codes. Thanks!