Re: [Komodo-discuss] Autocomplete for Tcl?
by Tom SAVELL other posts by this author
Jul 8 2008 11:37AM messages near this date
view in the new Beta List Site
Re: [Komodo-discuss] Autocomplete for Tcl?
|
Re: [Komodo-discuss] Autocomplete for Tcl?
<br> <font size=2 face="sans-serif">Hi Jeff,</font>
<br>
<br> <font size=2 face="sans-serif">Thanks for the quick reply.</font>
<br>
<br> <font size=2 face="sans-serif">Okay, so I see that if I type </font>
<br>
<br> <tt><font size=2>pro</font></tt>
<br>
<br> <font size=2 face="sans-serif">up comes a drop-down that shows "proc",
and if I hit the tab key, it types "proc" for me.</font>
<br>
<br> <font size=2 face="sans-serif">What I would prefer is I type</font>
<br>
<br> <tt><font size=2>pro<tab></font></tt>
<br>
<br> <font size=2 face="sans-serif">And it auto-completes as:</font>
<br>
<br> <tt><font size=2>#############################################################</font></t
t>
<br> <tt><font size=2># Procedure: </font></tt>
<br> <tt><font size=2>#</font></tt>
<br> <tt><font size=2># Arguments:</font></tt>
<br> <tt><font size=2># None</font></tt>
<br> <tt><font size=2>#</font></tt>
<br> <tt><font size=2># Returns:</font></tt>
<br> <tt><font size=2># Nothing</font></tt>
<br> <tt><font size=2>#</font></tt>
<br> <tt><font size=2># See Also:</font></tt>
<br> <tt><font size=2>#</font></tt>
<br> <tt><font size=2>proc procName {args} {</font></tt>
<br>
<br> <tt><font size=2>}</font></tt>
<br>
<br> <font size=2 face="sans-serif">It's not clear to me that this is possible
with *.tip files, e.g. tcl-core.tip. Here is the entry for proc:</font>
<br>
<br> <tt><font size=2>proc <name> <args> <body></font></tt>
<br>
<br> <font size=2 face="sans-serif">I see that the behavior of Komodo when
I type "proc<space>" is that it produces a floating help
box that shows "<name> <args> <body>". So
I don't really see how to make the auto-complete put in an entire proc
template for me. I would like the same behavior for other statements
like switch, if, while, etc.</font>
<br>
<br> <font size=2 face="sans-serif">Can I do this with the *.tip files?</font>
<br>
<br> <font size=2 face="sans-serif">-Tom<br>
</font>
<br>
<hr> <font size=3 face="Arial"><b>Notice</b> </font>
<br> <font size=1 color=#202020 face="Times New Roman">The information in
this message is confidential and may be legally privileged. It is
intended solely for the addressee. Access to this message by anyone
else is unauthorized. If you are not the intended recipient, any
disclosure, copying or distribution of the message, or any
action taken by you in reliance on it, is prohibited and may be unlawful.
If you have received this message in error, please delete it
and contact the sender immediately. Thank you.</font>
<br> <font size=2 face="sans-serif"><br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=40%> <font size=1 face="sans-serif"><b>Jeff Hobbs <jeffh@activestate.com></b>
</font>
<p> <font size=1 face="sans-serif">07/08/2008 10:54 AM</font>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right> <font size=1 face="sans-serif">To</font></div>
<td valign=top> <font size=1 face="sans-serif">Tom SAVELL <tcs@atc.creative.com></font>
<tr>
<td>
<div align=right> <font size=1 face="sans-serif">cc</font></div>
<td valign=top> <font size=1 face="sans-serif">komodo-discuss@[...].com</font>
<tr>
<td>
<div align=right> <font size=1 face="sans-serif">Subject</font></div>
<td valign=top> <font size=1 face="sans-serif">Re: [Komodo-discuss] Autocomplete
for Tcl?</font> </table>
<br>
<table>
<tr valign=top>
<td>
<td> </table>
<br> </table>
<br>
<br>
<br> <tt><font size=2>Hi Tom,<br>
<br>
Tom SAVELL wrote:<br>
> I use Komodo for Tcl development. I really want auto-complete.
But it <br>
> seems like it is not implemented for Tcl.<br>
> <br>
> How can I get auto-complete for Tcl?<br>
<br>
Komodo does have auto-complete for Tcl among its stable of dynamic <br>
language intelligence. If you are in a recognized Tcl file (by default,
<br>
anything with .tcl), and type something like 'nam...' you should see the
<br>
dropdown with all the 'namespace' options. In addition, you will
have <br>
calltips when no further options are available.<br>
<br>
It is possible to have this turned off in Preferences -> Code <br>
Intelligence, but it is on by default.<br>
<br>
> The other editor I have used made it very easy to implement <br>
> auto-complete, and they included a basic Tcl auto-complete template.
I <br>
> was able to easily edit the template to customize it to my preferred
style.<br>
<br>
It is easy to extend the default set of known commands. These are
in <br>
/path/to/Komodo/lib/support/tcl/ as the *.tip files. You can create
<br>
your own .tip or extend those (they are text files in a simple format).<br>
<br>
Regards,<br>
<br>
Jeff<br>
</font> </tt>
<br> <font size=2 color=white face="sans-serif">ForwardSourceID:NT00047EAA
</font>
Thread:
Tom SAVELL
Jeff Hobbs
Tom SAVELL
Eric Promislow
Trent Mick
Troy Topnik
Tom SAVELL
|