Css Outline Quickopen
Niko Sams
niko.sams at gmail.com
Tue Jan 26 10:21:26 UTC 2010
On Tue, Jan 26, 2010 at 11:03, David Nolden <zwabel at googlemail.com> wrote:
> Am Montag 25 Januar 2010 18:58:02 schrieb Niko Sams:
>> On Mon, Jan 25, 2010 at 14:15, Milian Wolff <mail at milianw.de> wrote:
>> > On Sunday, 24. January 2010 12:10:23 Niko Sams wrote:
>> >> Hi,
>> >>
>> >> In Css documents it would make sense to show Css selectors in the
>> >> Outline Quickopen.
>> >> Currently the Quickopen shows function declarations only.
>> >>
>> >> How should I implement this?
>> >> Create fake function declarations in Css?
>> >
>> > Yes, I'd do that. Esp. once you parse the CSS file anyways for errors,
>> > you should create a TopDUContext to save the status of the file, i.e. to
>> > not have to reparse everytime. Then adding declarations where required
>> > and you have nice outline.
>>
>> I added a ParseJob yesterday, TopDUContext is there too.
>>
>> But still, there are two options:
>> - create fake functions
>> - make DUChain and Outline Quick Open more general, So not only
>> functions are shown
>
> Maybe we can make the outline view show everything, including variables, as
> long is it is _global_.
What declaration/context structure do you suggest for css?
Take this as an example file:
a { color: blue; }
#blub p.foo { font-weight: bold; padding: 10px; }
.abc {
position: absolute;
xy: xy;
}
Niko
More information about the KDevelop-devel
mailing list