Atom plugin package that adds breadcrumbs feature based on code indendation
Any language, can be easily extended to support more languages in aspect of crumbs colorization and clean filtering
How to add new color for crumbs
- Place the cursor in the editor on the row that you want to colorize in breadcrumbs
- Invoke CTRL-SHIFT-P (Command Pallete)
- Find command Log cursor scope and invoke it
Get scope from notification popup
- Open user stylesheet
- Insert import this plugin
@import (reference) 'packages/atom-indent-codecrumbs/styles/index';
- Invoke special LESS mixin
/* add color fur current language scope */
@import (reference) 'packages/atom-indent-codecrumbs/styles/index';
.codecrumbsAddColor(orange, ~'meta.property-list');
-
Feel the difference
-
You can easily reconfigure component styles
// same import
@import (reference) 'packages/atom-indent-codecrumbs/styles/index';
// set parameters
@codecrumbs-height: 14px; // corners height (crumbs will have height = @codecrumbs-height * 2)
@codecrumbs-width: 10px; // corners width
@codecrumbs-max: 26ch; // max crumb width, text will have ellipsis
@codecrumbs-min: 5ch; // min crumb width
@codecrumbs-font: 1.2rem; // font-size
// after parameters set invoke reconfiguration mixin
.codeCrumbsReconfigure();
Of course you can do any styling you want just by overriding CSS rules in your user style.less