This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243402

Summary: Add Breadcrumbs for inner CSS class names in LESS files
Product: web Reporter: NukemBy
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Current implementation of breadcrumbs in LESS files

Description NukemBy 2014-03-31 11:06:00 UTC
Created attachment 146429 [details]
Current implementation of breadcrumbs in LESS files

We are extensively using LESS in my current project and particularly this feature
http://lesscss.org/features/#parent-selectors-feature 

Shortly, with such sample file

    .myCtrl {
        color: green;

        &_child1 {
            color: red;
        }

        &_child2 {
            color: blue;
        }
    }

when putting cursor into line under "&_child1" I expect the breadcrumbs to correctly display position like following: 

    1. Rules > .myCtrl > &_child1

    or 

    2. Rules > .myCtrl_child1
    (this is how class name appears in final CSS)

    or 

    3. Rules > .myCtrl > &_child1 = .myCtrl_child1
    (merges 1 and 2)


Additional, really wanted feature, probably not related to breadcrumbs, but can be integrated into it ... 

... when writing HTML files I actually need the final CSS class name, the one after '=' in sample breadcrumb #3. Currently i have to merge all parts manually and this is somewhat time consuming on a regular basis, especially when having hierarchy of 3-4 level. Typically we have hierarchy like following: 'controlType > &_subControl > &_subControl-classifier > *inner HTML nodes*'

It would be nice to have ability to, either from breadcrumbs control or context menu, get full CSS classname of the currently selected LESS node.