triple clicking in the html editor

From: Marc Guenther (yod..chli.ch)
Date: Thu Jun 21 2007 - 15:48:38 EDT

  • Next message: Mike Schrag: "Re: [Wonder-disc] Component editor formatting"

    Hi,

    as you all know, I am completely dependent on triple click. So when I
    noticed my patch for the Java Editor doesn't work with the WO Html
    editor, I immediately adjusted it for that editor. But before I could
    even say "Jehova", Mike had already added triple click support for
    selecting the surrounding html tag. Which is very nice and something
    I would definitely miss.

    But now I wonder(tm) what would be the "correct" way to have both
    behaviours. After playing around for some time, I now have something
    which I quite like. Lets say we have this file:

    <html>
       <head>
         <title>Triple click is cool</title>
       </head>
       <body>
         <h1>What should we do</h1>
         <webobject name="TripleClickMe">
           Click here
         </webobject>
       </body>
    </html>

    Now, a triple click can either select the whole line, or the
    surrounding html element. What should it be?

    OK. First the obvious stuff:
    - Triple Click and Drag: This should select lines. Multiple lines. I
    don't see any useful application to selecting elements here.
    - Triple Click on a tag: This should select the surrounding element,
    e.g. clicking on the webobject should select from the start to the
    end tag. This is the already existing behaviour, and also how
    WOBuilder did it (except it didn't allow to click on the closing tag)

    Now how to select a single line? I think:
    - Triple Click on whitespace. I.e. the indentation spaces at the
    beginning of each line. So clicking on front of the webobject tag
    would select that line only.

    Thats the behaviour I'm currently using for several hours now. I also
    did something else, which I find is even cooler than Triple Click...
    Often I have several tags next to each other (on the same level, like
    the h1 and webobject above) and want to see where they are contained
    in. Voila. Quadruple Click come to the rescue :)

    - Quadruple Click on a tag: Select the tag containing that tag. E.g.
    clicking on the webobject tag will select the whole body tag,
    including the h1 and the webobject. Somehow this was exactly what I
    expected, the first time I tried that :)

    Now, I guess this sounds somehow confusing. But actually it feels
    quite natural when playing around with it.

    So what do you think? Should I submit this as a patch to Jira?

    Marc





    This archive was generated by hypermail 2.0.0 : Thu Jun 21 2007 - 15:49:37 EDT