Sublime Forum

Where to find preferences for "copy path"

#1

For several years, when I right clicked and chose “copy path”, I have gotten a path in my clipboard such as
/images/gallery/mac-lab-2.jpg – which is what I need.

Starting the past day or two, I now get images/gallery/mac-lab-2.jpg (without the leading “/”).

Where do I reset the preference for that path?

Thanks

0 Likes

#2

AFAIK there are no preferences controlling this - this functionality is defined in Packages/Default/copy_path.py - maybe check for overrides or check what is being retuned from the API view.file_name()

0 Likes

#3

Thanks much – odd that it changed behavior for no reason I am aware of, but I can live with it.

0 Likes

#4

No that I know what triggered the change, but the leading slash makes it look like an absolute path starting from the root of your filesystem, which it probably isn’t. Probably just another case of every bugfix breaking someone’s workflow.

0 Likes