<br><br><div class="gmail_quote">On 7 October 2012 19:26, Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2012/10/5 Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>>:<br>
<div class="im">><br>
><br>
> On 5 October 2012 23:00, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> since I switched to Geany as my main code editor, I feel there are two<br>
>> other minor issues:<br>
>><br>
>> Search copy on Linux<br>
>><br>
>> 1. do a text search in a file<br>
>> 2. keep the search dialog open<br>
>> 3. select one or more lines dragging the mouse with left button pressed<br>
>> 4. close the search dialog<br>
>> 5. paste the selected text by pressing the central mouse button<br>
>> 6. nothing happens<br>
>><br>
><br>
> This works for me on current Git.<br>
<br>
</div>Sorry, I forgot one piece:<br>
<br>
-1. select a word with the mouse double click,<br>
0. copy it with CTRL+C<br>
<div class="im">1. do a text search in a file<br>
2. keep the search dialog open<br>
3. select one or more lines dragging the mouse with left button pressed<br>
4. close the search dialog<br>
5. paste the selected text by pressing the central mouse button<br>
</div>6. the first word (selected with CTRL+C) is pasted instead of that<br>
selected with the mouse<br>
<div class="im"><br></div></blockquote><div><br></div><div>Sadly this is a fight between the two ways of doing things, copy (ctrl+c) and paste(ctrl+v) and select/paste with middle button.  There is still much religious debate as to how (if) the two should interact, search any relevant GTK list :(  I'm sure KDE has or has had similar discussions.  At the moment the current thinking seems to be that a clipboard takes precedence over the selection, so the text you copied takes precedence over the text you selected.  Personally I would have kept the two disconnected, but that confuses many people and copy/paste doesn't work with some applications (like any terminal window).  This behaviour happens inside Scintilla/GTK and is poorly documented and possibly even changes between versions of GTK (Scintilla is generally rather more stable but doesn't document its behaviour either) and is beyond our control in any case.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
>><br>
>> Copy $ vars on Linux<br>
>><br>
>> 1. double click on a $ var, like $varname<br>
>> 2. paste  by pressing the central mouse button<br>
>> 3. the $ is not pasted but only the "varname" part<br>
>><br>
><br>
> Only varname is selected so thats all that is pasted.  This is a function of<br>
> the definition of what is a word to be selected by the double click.<br>
><br>
<br>
<br>
</div>Yes, it's clear to me that the $ is not selected, I'm asking why.<br>
<br>
What I mean (and all KDE-based editors behave like that) is that the $<br>
sign IS part of the (variable) word, and I normally want to copy that<br>
too.<br></blockquote><div><br></div><div>There has been a change in the last couple of days in the Git version that might help with this, allowing the definition of that constitutes a "word" as defined by a filetype file to override the default value.  You might be able to add $ to the definition of wordchars for whatever your filetype is.</div>
<div><br></div><div>Cheers</div><div>Lex</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks.<br>
<div class="im"><br>
--<br>
Alessandro Pasotti<br>
w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a><br>
_______________________________________________<br>
</div>Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>