Comments (15)
beforeとafterを教えて貰えますか?
1例で構いません。
from emmet-vim.
早速お返事いただけて嬉しいです。
例えばですが、イメージにキャプションを入れたい、イメージ自身にもalt属性で同じキャプテンを付けたい、
それらをdivで囲みたい、というケースで、
aaaa
bbbb
cccc
というキャプションに対して、
div*>img[alt=$#]+p{この図は$#です}
とwrap with abbreviationを実行すると
<div>
<img src="" alt="aaaa" />
<p>この図はaaaaです</p>
</div>
<div>
<img src="" alt="bbbb" />
<p>この図はbbbbです</p>
</div>
<div>
<img src="" alt="cccc" />
<p>この図はccccです</p>
</div>
に展開されます。とてもニッチな例とは思いますので、
実装を検討いただけるとしても優先順位は低くても構いません。
from emmet-vim.
すみません、間違ってcloseしてしまいました・・・
from emmet-vim.
なるほど。あとで見てみます。
from emmet-vim.
masterにはpushしてませんが、experimentalブランチに入れてみました。
https://raw.github.com/mattn/zencoding-vim/experimental/autoload/zencoding.vim
でautoload/zencoding.vim
を置き換えて(必要であればバックアップ)、試してみて下さい。
いい感じならmasterに入れます。
from emmet-vim.
こんなに早い対応、ありがとうございます。
ですが、テストしてみたところ、
aaa
bbb
ccc
と入力してdiv*>p{test is $#}とすると、
<div>
<p>test is aaa</p>
</div>
<div>
<p>test is aaa</p>
</div>
<div>
<p>test is aaa</p>
</div>
と、最初の行が連続であらわれます。
また、これまで使用出来ていた、例えばul>li*といった単純なwrap with abbreviationが、
<ul>
<li>aaa</li>
<li></li>
<li></li>
</ul>
と、最初の行のみ埋め込まれます。どうも、これまでの形式と相性が悪い?ようです。
from emmet-vim.
また、
div[class=$#]*>p{test is $#}
とすると、
<div class="1#">
<p>test aaa</p>
</div>
<div class="2#">
<p>test aaa</p>
</div>
<div class="3#">
<p>test aaa</p>
</div>
<div class="4#">
<p>test aaa</p>
</div>
となり、カウンタと競合しているようです。
せっかく改良してしただいたのに申し訳ないです・・・
from emmet-vim.
いえ、なんとなく原因が分かりました。
今度はちょっと時間頂いてじっくりやります。すみません。
from emmet-vim.
いえ、こんなニッチなお願いを受け止めてくださってありがたいです。
from emmet-vim.
一応、↑のケースはテストしたつもりです。
https://raw.github.com/mattn/zencoding-vim/experimental/autoload/zencoding.vim
お時間ある時にでも試して下さい。
from emmet-vim.
またまたありがとうございます!
・・・ですが、すみません、例えば公式サイト(https://github.com/sergeche/zen-coding/wiki/Release-Notes)
にある例で言うと、
ul>li*>a{Click at $#}
span[title=$#]{Element’s title is $#}*
ul>li*>span{$#}+{ }+a[title=$#]{$#}
この3つの例のうち、2番目は正常に動作するのですが、1番目と3番目は1列目の値にだけなります。
また、
ul>li*
とすると、値が全部消えてしまいました。
何度もすみません。
from emmet-vim.
あ、zencoding version 7 ですね?
実はまだ着手していなかったのです。
上記の3つは動く様にしました。
{item number $ ${nl}}*5
や、他のversion7動作はまだ動きません。
from emmet-vim.
そうなんですね!!ごめんなさい。そうとは知らずに・・・
対応、ありがとうございました。
from emmet-vim.
いえ、いずれ対応予定なので。
こちらこそありがとうございました。
from emmet-vim.
動作確認しました。完璧です。こんなに早く修正していただけるとは思ってなかったです。
素晴らしいです。ありがとうございました。
from emmet-vim.
Related Issues (20)
- How do you comment multiple selected lines in HTML?
- Missing XSL snippets
- vim does not show list of abbreviations as suggestions
- Placeholders not being substituted after completion
- `font-weight` should be expanded unitless
- Custom snippet for erb doesn't indent end tag properly
- Issue with updating tags in typescriptreact
- How can expand type in script tag?
- How can call lorem with Japanese character? HOT 2
- Multiple Abreviations Not Expanding HOT 1
- Can not change leader key on neovim HOT 2
- JSX support in .tsx file HOT 1
- JSX/TSX expansion reverts to class instead of className when using multiplication operator HOT 1
- emmet dos not work
- css expansion does not seem to be working HOT 2
- div before '.' in scss file
- I can't get this to work :( HOT 1
- Small bug in autocomplete after variable HOT 5
- what is missing? I put in vimrc emmet code and nothing...
- support Compatible with treesitter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emmet-vim.