skuroda wrote:As far as I know this isn't possible. One issue with attempting to implement something like this (that I could think of) is relative to what? Though not in the title bar, a plugin to display some subsection of the path in the status bar is doable. Maybe that would suffice for what you need?
import sublime, sublime_plugin
def run(self, edit):
# check if the current path is in one of the project folders.
# If yes, then return the relative path of the current file.
for path in sublime.active_window().folders():
project_path = os.path.normpath(path)
file_path = os.path.normpath(sublime.active_window().active_view().file_name())
relative_path = file_path
relative_path = file_path.replace(project_path, '...')
print 'relative_path = %s' % (relative_path)
Users browsing this forum: Exabot [Bot], Google [Bot] and 16 guests