Sublime Forum

Get file path for image files

#1

You can right-click inside a text file and there’s a menu option to copy the file path. This doesn’t exist for image files, but it could, if the get-full-path functionality were more general-purpose and not tied to a text editor view being loaded.

1 Like

#2

Yes, that’d be. Unfortunatly, it’s not accessible, even from a plugin. I don’t know why, but when you try to get .file_name() for an image, you get None, instead of its full path…

So, +1 from me

0 Likes

#3

In case anyone else winds up here like I did, let it be known: it’s now possible to get the path for an image sheet using the context menu (Copy File Path) or programmatically from the Sheet (.file_name()).

0 Likes