Sublime Forum

Insert path as text via drag'n'drop into document?

#1

Hi,

I’m searching for a possibility to enter the path to a file/folder as text into a document by dragging mentioned file/folder into the document - BBEdit does this when holding a modifier when dropping. Is there a possibility to do this in Sublime text as well? I couldn’t find any and really miss this.

thanks & greetings,

Tom

0 Likes

#2

Not perfect, but if you have the file open in your sidebar you can use SideBarEnhancements to get Copy Path:

0 Likes

#3

My workaround has been to drag and drop it into an iTerm window… which pastes the complete path. Then I copied it from there to Sublime…

But that’s just a way to get the path from Finder. I did a quick search and found: in Finder, you can right click a file, hold down Opt, and do Copy as Pathname and voila, you’ve got the complete absolute path on the clipboard. That’s not too bad.

0 Likes