Improved CMSSW WebCVS browsing with Greasemonkey

Understanding what complex CMSSW processes do usually involves a lot of file navigation since there are pretty large include hierarchies involved. The CMSSW LXR is great for navigating the C++ part of things, but sadly doesn't support Python very well. Since the lookup rules to find include files and Python imports in CMSSW are pretty easy, I wrote a Greasemonkey user script that makes links out of

  • C #include statements
  • Python import statements
  • CMSSW .load("...") statements

in the CMSSW WebCVS.

Installation

  • Get Greasemonkey.
  • Restart Firefox, notice the smiling monkey icon in your status bar.
  • Get the user script.
  • Go to some particularly nasty configuration file (e.g. here) and enjoy your new navigation powers!

Header/Source switching

Another quite useful thing is the header-source switch bookmarklet which allows easy switching between .cc files and the associated .h files.

  • Go to this page and bookmark the link there (sorry, TWiki is confused by complex links).
  • Go to a WebCVS .cc or .h page (e.g. here) and click the bookmark to be transported to the other part of the pair!

-- ThomasThemel - 08-Oct-2009

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2009-10-08 - unknown
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback