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] + '/', '' ) )
Written by Saophalkun Ponlu
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#