<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 29 Aug 2016, at 17:51, Matt Neuburg wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Well, and in fact what I was trying to select by double-clicking the "+" _is_ a scope.
</div><div dir="auto">
</div><div dir="auto">So maybe the double-clicking thing could be extended to mean, "if what's being double-clicked is a scope-boundary, select the scope"
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">This is sort of possible by making a “character class” setting for the scope.</p>

<p dir="auto">But this then affects everything that works on words, e.g. moving word left/right, selecting word, etc., will also treat it as one unit, which is often undesured.</p>

<p dir="auto">Another possibility is to overload mouse clicks for this scope, right now we only have the ability to overload single-click, you’d need to create a new macro with:</p>

<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">scope selector: comment & dyn.modifier.option
semantic class: callback.mouse-click
content: ( { command = 'selectCurrentScope:'; } )
</code></pre>

<p dir="auto">This macro will trigger whenever option-clicking inside a comment and it’ll do a “select current scope”, hence this is a way to select the entire comment.</p>

<p dir="auto">You’d replace <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">comment</code> in the above with the scope of your <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">+foo+</code> units.</p>

<p dir="auto">I can probably add <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">callback.mouse-doubleclick</code> which would get rid of the option modifier requirement.</p>
</div>
</div>
</body>
</html>