top | item 18398372

(no title)

sophistication | 7 years ago

Notably he was also answering other questions in the AMA, so it possibly only took him 2 minutes. It is not a difficult feature to implement anyhow, it probably went like this:

    vim tools/Text.js
    self.addEventListener('click', function (e) {
      if (e.detail === 3) {
        self.selectAll();
      }
    });
    :wq
    git add tools/Text.js
    git commit -m "Add triple click select all"
    git push origin master
    Done.

discuss

order

IvanK_net|7 years ago

Almost ... but I use Notepad++ instead of Vim. And I had to implement the search for the first and the last character in a line according to the layout. It took me about 10 minutes :)

pwaivers|7 years ago

This is super interesting :). Just curious, why don't you use a more advanced code editor than Notepad++?

kakarot|7 years ago

Cool project. Playing around with it now and I love what I see. Must have been very fun learning about how to implement image filters and such along the way.

Any particular reason you choose Notepad++ over a full-featured IDE for a project of this scope?

mcintyre1994|7 years ago

Neat, I didn't know about detail on mouseclick events :)

AltruisticGap|7 years ago

The main view is a canvas. Regardless, my hunch is event delegation would be more performant.