<div><div class="gmail_quote"><div>Hi Alex,</div><div><br></div><div>I'm also really keen for this feature, so could I please request a recent copy of the plugin? Perhaps you could update your repo on github?</div><div>

I'd like to start using it right away, and could help to fix any bugs.</div><div><br></div><div>I also really think that this should to be added to the 'Auto-close quotes and brackets' feature in core Geany, since it is the expected behavior for any user coming from TextMate or Gedit.</div>

<div><br></div><div><br></div><div>Regards,<br>Nathan</div><div><br></div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">

<div class="gmail_quote">On Thu, Dec 1, 2011 at 7:20 PM, Lex Trotman <span dir="ltr"><<a href="mailto:elextr@gmail.com" target="_blank">elextr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On Fri, Dec 2, 2011 at 10:54 AM, Meyer <<a href="mailto:3m.meyer@gmail.com" target="_blank">3m.meyer@gmail.com</a>> wrote:<br>
> Sure.  I want to be able to select text, and then insert a character (e.g.<br>
> an apostrophe) before and after the selection just by pressing the<br>
> apostrophe key.  Since the normal behavior when a character is pressed while<br>
> text is selected is to delete the text and insert a character, I need to<br>
> know when that happens - then I could undo the delete and insert my<br>
> characters.  If it was two separate events though - delete then insert - I<br>
> won't want to do anything.<br>
><br>
> I have it working now, but it seems awfully hackish:  when one of the<br>
> characters I might insert is pressed, I store the current position of the<br>
> cursor and undo the last event.  If the new cursor position is the same<br>
> place as the old one, then it was a "overwrite" event.  Otherwise, it was<br>
> delete then insert.<br>
><br>
> So, any ideas for how I could do this would be much appreciated!<br>
<br>
</div>I assume you are writing a plugin.<br>
<br>
You should use the keybinding system to capture the apostrophe before<br>
it goes to scintilla so you can detect and do anything you want.<br>
<br>
Cheers<br>
<span><font color="#888888">Lex<br>
</font></span><div><div><br>
><br>
> Alex<br>
><br>
> On Thu, Dec 1, 2011 at 3:40 PM, Frank Lanitz <<a href="mailto:frank@frank.uvena.de" target="_blank">frank@frank.uvena.de</a>> wrote:<br>
>><br>
>> Am 01.12.2011 20:57, schrieb Meyer:<br>
>> > I have two possible situations that I need to differentiate between, and<br>
>> > I'm not sure how to do it - The first situation is the user deletes<br>
>> > selected text by overwriting it with a new character.  The second is the<br>
>> > user deletes selected text by pressing backspace/delete, and then enters<br>
>> > a new character.  I thought this would be fairly easy, but I've been<br>
>> > trying to figure it out for awhile and haven't gotten anywhere. Does<br>
>> > anyone have any ideas for how I could accomplish this?<br>
>><br>
>> Can you go into more details in which context you need that information?<br>
>><br>
>> Cheers,<br>
>> Frank<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Geany-devel mailing list<br>
>> <a href="mailto:Geany-devel@uvena.de" target="_blank">Geany-devel@uvena.de</a><br>
>> <a href="https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Geany-devel mailing list<br>
> <a href="mailto:Geany-devel@uvena.de" target="_blank">Geany-devel@uvena.de</a><br>
> <a href="https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
><br>
_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de" target="_blank">Geany-devel@uvena.de</a><br>
<a href="https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br></div>