This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 111314 - ":" trigger for code template for hash entry
Summary: ":" trigger for code template for hash entry
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@ruby
Depends on:
Reported: 2007-07-29 11:17 UTC by callagga
Modified: 2011-01-28 20:10 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description callagga 2007-07-29 11:17:18 UTC
Have ":" trigger a code template for hash entry (as textmate does).  

That is it would create ":<variable> => "<value>"".  After you fill in the variable and tab to value the enclosing "
would be included after which you can (a) start typing or (b) tab again and then the select drops just into the value
area without encompassing the surrounding ".  Would be then good (if possible) that another tab entry would take you to
a point wiht a ":" from which you could tab a second time if you want to create a 2nd hash entry (If you know what I mean).
Comment 1 Torbjorn Norbye 2007-08-02 20:35:53 UTC
This is fixed as of yesterday; let me know whether it works the way you expect.
Comment 2 callagga 2007-08-04 09:05:26 UTC
Tor - almost working.  Only issue is that after entering the key, then value, then hitting TAB it:

a) seems to highlight a few characters including the "," such that when you want to enter a ":" and then press TAB for a
2nd hash item it doesn't work

b) also if I manually place the cursor after the "," enter ":" (but noting that the highlighted area still incorporates
the ",") and then press TAB it still doesn't seem to work.

Comment 3 emergence 2008-01-06 10:52:25 UTC
It still doesn't work. I agree with what callagga says.