I suspect the problem of a clash with a directory named file:// minimal though, in POSIX at least. Not sure about the network file server issue, but with the double (treble) slash it also seems unlikely to be a problem.
Thanks for the info, I hadn't noticed the Paste Filenames context menu item, but since I always paste with "Ctrl+Shift+V" ... I'll see what the gnome types think about providing a short cut customization, seems an oversight not to provide one. slainte Steeve On Thu, Jun 15, 2017 at 11:31 AM, Pádraig Brady <[email protected]> wrote: > On 13/06/17 06:39, Steeve McCauley wrote: > > I searched google and the bug and list archives for coreutils but > couldn't > > find any mention of support for local or non-local file URIs, > > > > file:///foo/bar > > file://remote.baz/foo/bar > > > > has there ever been any discussion of support for file URIs in coreutils? > > > > I often copy files into the clipboard (using fedora 25 with gnome shell > > 3.22.3) and then have to manually remove the file URI at the command line > > to remove the file:/// part. > > Note gnome shell has the "paste filenames" feature, when you've selected > and > copied file(s) in the nautilus browser, though is a little awkward to > access. > You can use right click in gnome terminal to access the menu, > or (with the menu bar enabled) Alt+e f <return>. > There doesn't seem to be a way to assign a shortcut to this function. > I'd log a feature request to do that with the gnome folks, > as that would be a simple and relatively safe way to achieve what you want. > > I'm not sure coreutils could support file:// directly > due to the clash with a network file server named 'file' or a directory > named 'file:' > > I see that xdg-open supports file:// urls though that's quite a > specialised tool. > > It's also worth noting the recent proposal to have ls output clickable > links > which could use file:// resulting in gnome terminal opening the default > application when the file links were ctrl clicked. > https://lists.gnu.org/archive/html/coreutils/2017-05/msg00000.html > > cheers, > Pádraig. > > -- :wq
