[Product-Developers] plone.app.debugtoolbar sections' livesearch

Simone Orsi simahawk at gmail.com
Wed Mar 28 16:48:20 UTC 2012


Hi,

I just tried plone.app.debugtoolbar. It's a great tool (tnx Martin!) but 
the page is veeeeeeeery big and it's quite annoying to scroll up/down to 
find what are you looking for. It would be nice to have a quick search 
to avoid this :)

So, I drafted it into 'livesearch' branch [1] :)

What it does:
- add a search box to a section (only into 'CONTEXT' ATM, just to test) 
using a macro
- when you fill in a string and click on 'search' you get to the 1st result
- every result is highlighted
- you can skip to prev/next result using prev/next links
- you can go back to search by 'search again' link

The code is a bit ugly because... it's a draft :P and I'm not a JS master :S

What have to do is to add it to all the sections and to clean up the code.

Obviously, I'd like to hear any suggestion/remark about it :)

Thanks!
SimO

[1] https://github.com/plone/plone.app.debugtoolbar/tree/livesearch


More information about the Product-Developers mailing list