Sublime Forum

Breadcrumb

#1

Hello,
On sublime text 2, I do not find how to see the file path.
Is possible to have this kind of bar


I use MAC

0 Likes

#2

Nope, but you can right click and “Copy File Path”.

0 Likes

#3

As a really crude example of a plugin:

import sublime, sublime_plugin
import os

class BreadcrumbsCommand(sublime_plugin.WindowCommand):
    def __init__(self, window):
        file_name = window.active_view().file_name()
        file_name = file_name.strip('/').replace('/', ' > ')

        return sublime.status_message(file_name)

This will show you the current file path.

0 Likes

#4

A few things you can do:

First, turn this on in your settings:

“show_full_path”: true,

That will give you the full path in the apps header bar

then you can also ⌘ + Click the header bar for a dropdown:

0 Likes