Rami I think since you browse 'files' (hence the name of the app) you should simply see the filename and its extention, just like a normal file browser in Windows or Linux.
The difference is, in desktop browsers, the icon would match the browser, and it would require a double-click to open the link. This makes it quite intuitive to understand you are opening a link, that somewhat matches the file name.
From browsers and from within Files gallery, a single-click will open the URL. This could definitely catch users off-guard as I don't think it's implicit that they are opening a link in a new tab if the file is just called
something.url, and all other clicks in Files gallery simply show a preview. That's why I defaulted to show the actual URL.
Anyway, this is minor details ...
Rami Perhaps an option like "url-showtarget=1" for enabling target urls for display. Also on desktop, it might be useful to see the target url on hover, if that's reasonably easy to implement.
Yes it could be an option. On hover, we would probably just keep the native browser
title="..." containing the url.