<div>&lt;amazed&gt;</div>autocomplete <div><meta http-equiv="content-type" content="text/html; charset=utf-8">&lt;/amazed&gt;</div><div><br></div><div>Respect. If it ever gets as near as bash completion on most linuxes, it will be amazing for teaching/coding pd. Kudos <meta http-equiv="content-type" content="text/html; charset=utf-8">yvan.<br>

<br><div class="gmail_quote">On Sun, Apr 3, 2011 at 5:53 PM, yvan volochine <span dir="ltr">&lt;<a href="mailto:yvan.pd@gmail.com">yvan.pd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 04/03/2011 06:44 PM, Hans-Christoph Steiner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Apr 3, 2011, at 12:12 PM, yvan volochine wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/03/2011 05:57 PM, Hans-Christoph Steiner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Wow, I love the tab autocompletion plugin! What would be amazing if we<br>
had a bash-style completion files were the arguments were also<br>
tab-completable, when relevant. Things like filenames, table/array<br>
names, send/receive names, etc. This completion file could be included<br>
in libraries. It really highlights how badly we need Enter/Return to<br>
instantiate the object.<br>
<br>
Personally I prefer the default tcsh/bash-style where tab doesn&#39;t cycle<br>
thru the options when you hit tab repeatly. I could see a bash/tcsh<br>
style display of the options, like in a popup when you hit tab<br>
repeatedly.<br>
</blockquote>
<br>
hey thanks.<br>
I&#39;m not really supposed to dedicate that ammount of time developping<br>
for pd but as I&#39;m unemployed right now =)<br>
I&#39;m afraid the bash style auto-completion is a bit above my head, but<br>
the idea is nice.<br>
</blockquote>
<br>
Basically, the first is the trigger: hitting tab twice where the tab<br>
does not add any more characters. So using your plugin as an example,<br>
type M-O-Tab-Tab would then list &#39;mod&#39; and &#39;moses&#39; as options but not<br>
change the &#39;mo&#39; in the box. Those options could then be in a popup menu<br>
to both see and select with the keyboard or mouse.<br>
</blockquote>
<br></div>
yeah that&#39;s what I wanted first: a ComboBox below the object box, but then I had troubles with object box coordinates (did the user click or is the object still moving with the cursor, etc...) and I started adding some &quot;if&quot; and all kind of stuff inside mouse motion procedures and that became nasty.<br>


this (and the fact that I wanted it now =) made me rewrite the plugin with the &quot;cycling-through-completions-with-tab&quot; behavior (which I still find very cool for speedy-patching)<br>
<br>
cheers,<br><font color="#888888">
_y</font><div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Adding the argument completion would probably be a lot more work, but I<br>
haven&#39;t really thought about it. But just having object name completion<br>
is huge!<br>
<br>
.hc<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
One thing that needs to happen to make the auto-complete plugin more<br>
deployable is to have all its procs in its own namespace. Otherwise<br>
there can easily be name conflicts with other things named &#39;init&#39;,<br>
&#39;trigger&#39;, etc.<br>
</blockquote>
<br>
done<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(FYI: sending to pd-announce also sends to pd-list)<br>
</blockquote>
<br>
okay<br>
<br>
cheers,<br>
_y<br>
</blockquote>
<br>
<br>
<br>
<br>
----------------------------------------------------------------------------<br>
<br>
<br>
You can&#39;t steal a gift. Bird gave the world his music, and if you can<br>
hear it, you can have it. - Dizzy Gillespie<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes (MSc)<br>contact: <a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a> / <a href="http://pedrolopesresearch.wordpress.com/" target="_blank">http://pedrolopesresearch.wordpress.com/</a> | <a href="http://twitter.com/plopesresearch" target="_blank">http://twitter.com/plopesresearch</a><br>


</div>