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

Breadcrumbs

by qbolec ALL

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

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 875
  • Linux 488
Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 1 0 0 1 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 1 0 1 3 0 0 0 0 0 4 1 2 0 2 0 0 0 0 0 0 5 2 0 1
Mac 0 0 0 1 0 0 0 0 1 0 1 0 0 0 1 1 0 1 0 0 0 0 0 2 1 1 1 0 2 0 1 0 0 0 0 0 1 0 0 0 1 0 3 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Breadcrumbs

A plugin for Sublime Text 2 and 3, which shows the breadcrumbs to your current caret position based on indentation. Breadcrumbs can be displayed in the statusbar, a popup (via Show Breadcrumbs) or in between the lines of your code (via Show Breadcrumbs Inline).

For example if your code looks like this:

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

With the caret at the line with zoo, the breadbrumbs would be: foo(){, bar:, } else {, and blah ->. The “crumbs” can be fine-tuned using a regex.

This approach is language agnostic, can be quite usefull for code that spans many lines and when tracking indentation and context is difficult. It can also help you get your bearings after jumping into a large file (e.g. via search or goto).

Installation

We recommend using Package Control:

  1. Press CTRL+SHIFT+P (on Mac: CMD+SHIFT+P)
  2. Select “Package Control: Install Package”
  3. Search for “Breadcrumbs”
  4. Hit Enter

Settings

The settings include values to limit the length of breadcrumbs and you can create your own regular expressions so it includes only what you need. Settings can be further customized per syntax.

Open Preferences > Package Settings > Breadcrumbs > Settings to view all options.

Example key bindings

This package doesn't provide key bindings for its commands, allowing you to customize them as you see fit. Here are some examples:

{ "keys": ["super+ctrl+b"], "command": "breadcrumbs_popup" },
{ "keys": ["super+ctrl+alt+b"], "command": "breadcrumbs_phantom" }