Last Updated: February 25, 2016
·
484
· phalkunz

Copy file path relative to the root folder

Paste the following code in the Sublime Text console. Remember a view needs to be active.

sublime.set_clipboard( sublime.active_window().active_view().file_name().replace( sublime.active_window().folders()[0] + '/', '' ) )