Here at 'dayjob I'm often sent paths from developers using Windows in Windows format:
D:\Some\Path
These paths can uniformly be converted to paths valid on at least some Linux machines at 'dayjob like:
/mnt/remote-d/Some/Path
I would like to write an interactive function to automate this conversion, so that I may simply tap something along the lines of C-t C-p
to perform this conversion. The string transformation part of the function will probably be something along the lines of
(replace-regexp-in-string "\\\\" "/" str)
But then we also have to capture the string from the buffer. For that purpose thing-at-point
looks promising, but I've thus far been unable to tame it. I have also found the following function which I think captures what I'm after with some modification: https://github.com/akicho8/string-inflection/blob/master/string-inflection.el#L184
ffap
does.