wy88y / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

WrapWithAbbreviation - unable to use * without 'near element' #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. select code:
<td>col1 data1</td>
<td>co11 data2</td>
2. wrap with abbreviation *+td or (*)+td

What is the expected output? What do you see instead?
Want to add a new column to my table.
<td>col1 data1</td><td></td>
<td>co11 data2</td><td></td>

No output is given.

What version of the product are you using? On what operating system?
ZC v6.0.1 within Aptana Studio, build: 2.0.3.1265134283 on Win Vista.

Please provide any additional information below.
The same is true if * appears at the end of the chain:
td+* or td+(*)
Just wondering if this would be possible in a future release? While the
example is simple, for larger tables it would be good i.e. where you want
to add siblings.

Original issue reported on code.google.com by webs%fla...@gtempaccount.com on 11 Mar 2010 at 5:39

GoogleCodeExporter commented 9 years ago
The proposed syntax is ambiguous so it's not possible to implement this 
feature. 
The asterisk marks repeating element, not the insertion point

Original comment by serge....@gmail.com on 11 Mar 2010 at 8:56

GoogleCodeExporter commented 9 years ago
Fair enough. I tried using a html snippet to make it work, but it only worked 
for one
line.

1. Write a new html snippet for content that is 'nowrap' e.g.  'nw': '${child}';
2. use the nowrap snippet as above: nw*+td then works fine but only for one line

If I knew what the variable for the repeating element was I'd insert that 
instead of
${child} but nevermind.

Original comment by webs%fla...@gtempaccount.com on 12 Mar 2010 at 2:32