One other user requested this functionality. The problem is how to determine
serverurl from a filesystem path. At the time I didn’t know how to do that, so I proposed following functionality. It is implemented in TotalFinder, so you might give it a try. Or please propose some similar scheme how TotalFinder should determine translation from filesystem paths to share-able urls.
// Adding a new option in that context menu is simple. The problem is how
// to determine UNC path server and volume name from Mac. I think we
// should define some convention for this.
// Here is my proposal:
// UNC path will be constructed as follows \\server\volume\path
// let $file be absolute selected file path e.g /Volumes/myshare/some/dir/file.txt
// option to copy UNC path will be available only if $file begins with /Volumes/
// "path" is $file without first two folders, => /some/dir/file.txt
// "volume" is second folder in $file => myshare
// "server" is empty by default =>
// Additionally I will walk down from $file visiting every parent folder.
// If I find file named .unc-hint I will stop and read it as a config
// file. Config file may override "volume" and "server":
// .unc-hint is a text file, with up to two lines, the first is server
// name, the second is volume name.
// This would enable you to put .unc-hint file anywhere on your shared
// samba volumes (ideally into volume's root) to define server name.