ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Breadcrumbs

by qbolec ST2/ST3

A Sublime 2 Plugin which adds breadcrumbs to the status bar based on scopes the current line belongs to

Details

Installs

  • Total 60
  • Win 27
  • OS X 26
  • Linux 7
Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14
Windows 0 0 1 0 0 1 5 2 0 1 1 2 4 4 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 1 1 1 0 0 1 3 1 0 1 0 2 6 6 2 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 1 0 0 0 0 0 0 0 0 0 0 1 0 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Breadcrumbs

A plugin to Sublime Text 2 and Sublime Text 3, which adds breadcrumbs to the status bar based on scopes the current line belongs to. This is done based on indentation, by assuming that scopes are indented.

For example if your code looks like this:

foo(){
  bar:
    if (whatever){
      cox()
    } else {
      blah->
        zoo
    }
}

and the carret is currently in the line with zoo, then the breadbrumbs would be: foo(){, bar:, } else {, and blah->.

This approach is quite language agnostic, and I find it mostly usefull for code which spans many lines in which tracking indentation and context is difficult to me (for example in .sass files).

Instalation

The easiest way is to use Package Control:

  1. press CTRL+SHIFT+P (on Mac: CMD+SHIFT+P)
  2. type: “Package Control: Install Package”
  3. hit Enter
  4. type “Breadcrumbs”
  5. hit Enter

Settings

You can edit Breadcrumbs.sublime-settings to specify the following values:

name type default value meaning
“breadcrumb_length_limit” Number 100 Trim each line to this many characters to form a breadcrumb
“total_breadcrumbs_length_limit” Number 200 Make sure that the total length of the status is no longer than this many characters, by trimming the longest breadcrumbs first
“breadcrumbs_separator” String “ ■ ” Separate breadcrumbs using this character