<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Enrico Tröger schrieb:<br>
<blockquote type="cite">Then use the snippet: class<TAB><br>
and type "abcd" on the first cursor position, move the cursor back by<br>
two positions and press the "Move cursor in snippet" keybinding to jump<br>
to the next cursor position. The cursor is then inside "__construct"<br>
instead of inside the braces.<br>
Maybe we can live with that but it'd be better if it would be fixed<br>
though this might be not easy.<br>
</blockquote>
Fixed.<br>
<br>
<br>
Thomas Martitz schrieb:<br>
<blockquote type="cite">However, the current patch is far from
intelligent and nice. It's a bit hackish (limited to 10 cursors, global
struct in editor.c ...), and the next cursor movement is apparently
broken once you hit tab normally between "jumps". To be investigated!
Also, I changed the hotkey of "go to last used tab" to nothing, so that
ctrl+tab is free for this (this is the best hotkey I can find for),
feel free to discuss!
</blockquote>
Fixed, sort of. Limit is gone (it's now using a dynamically allocated
single linked list). pressing tab between jumps should work now.
Nesting (i.e. recursively inserting) snippets works too, so that the
cursor positions of the old snippets are not destroyed if you insert
another snippet.<br>
I used my self-made single linked list implementation, since I had
problems with GSList (with concating 2 lists and freeing in
particular). My implementation does exactly what we need, and is yet
extensible and reusable.<br>
<br>
Adapting my ages old single linked dynamic list implementation to Geany
was the most fun :)<br>
<br>
<blockquote cite="mid:4961051B.1090402@arcor.de" type="cite"><!---->Yea,
I thought so too (and I knew it was controversial) , but then again <br>
I couldn't find a better hotkey. Super is problematic I think because <br>
that's the Windows key on most keyboards (IIUC), and that's actually <br>
used by Windows and not really available for apps when running Geany on
  <br>
Windows. Maybe it's possible though.</blockquote>
Default hotkey issue is still open (if there even should be one).<br>
<br>
Patch attached. This one works quite well for me.<br>
<br>
<br>
-- <br>
Kind regards<br>
<br>
<br>
--------
</body>
</html>