Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for adding text #10

Closed
arieh opened this issue Dec 18, 2010 · 13 comments
Closed

Add support for adding text #10

arieh opened this issue Dec 18, 2010 · 13 comments

Comments

@arieh
Copy link

arieh commented Dec 18, 2010

I would like it to be possible to set the inner text of an element via zen coding.
I can think of 2 good ways of doing this:

  1. css like:
    div#res[content=some_text]
    which might have problems with spaces
  2. new syntax:
    div#res{some text can go here}

I would try to implement it but it's hard for me to follow up the way ZC works

@sergeche
Copy link
Member

Wait for v0.7 release: sergeche/zen-coding@0eca187

@jakearchibald
Copy link

This feature is great. However it would be nice if there was a lipsum generator too. Eg...

li*5>a[href]{{lipsum:6words}}

Each link would have 6 different lipsum words.

@Integralist
Copy link

I've just built from source (following the instructions on README) but when I try the example...

p>{Click }+a{here}+{ to continue}

...and then press Ctrl+, nothing happens. Other zen commands are working but this specific text feature doesn't appear to work for me.

@sergeche
Copy link
Member

In which editor you have such problem?
The most recent build works fine: http://media.chikuyonok.ru/codemirror2/


Сергей Чикуёнок
http://chikuyonok.ru
serge.che@gmail.com

On Tuesday, April 10, 2012 at 3:37 PM, Mark McDonnell wrote:

I've just built from source (following the instructions on README) but when I try the example...

p>{Click }+a{here}+{ to continue}

...and then press Ctrl+, nothing happens. Other zen commands are working but this specific text feature doesn't appear to work for me.


Reply to this email directly or view it on GitHub:
https://github.com/sergeche/zen-coding/issues/10#issuecomment-5043835

@Integralist
Copy link

I'm using latest version of panic coda. I cloned the repo and compiled the coda plugin using the command provided on the readme file and it generated the relevant plugin. I installed it by double clicking in the file and coda asked me if I wanted to replace it (as I had an older version installed which I downloaded from a website as apposed to compiling it myself manually) I confirmed I wanted to replace the plugin.

Like I say it's working with other zen selectors just not the generating of text one

@sergeche
Copy link
Member

Looks like you've built outdate TEA for Coda. The latest version should be compiled with the Ant file: https://github.com/sergeche/zen-coding/blob/master/plugins/coda/build.xml


Сергей Чикуёнок
http://chikuyonok.ru
serge.che@gmail.com

On Tuesday, April 10, 2012 at 6:23 PM, Mark McDonnell wrote:

I'm using latest version of panic coda. I cloned the repo and compiled the coda plugin using the command provided on the readme file and it generated the relevant plugin. I installed it by double clicking in the file and coda asked me if I wanted to replace it (as I had an older version installed which I downloaded from a website as apposed to compiling it myself manually) I confirmed I wanted to replace the plugin.

Like I say it's working with other zen selectors just not the generating of text one


Reply to this email directly or view it on GitHub:
https://github.com/sergeche/zen-coding/issues/10#issuecomment-5046972

@Integralist
Copy link

@sergeche thanks for the update. Do you have any instructions on how to use Ant - I've not used it before so I'm not sure of the process. A quick step-by-step would be very helpful. Thanks!

@sergeche
Copy link
Member

Well, right now the build step is not very good and may require some additional dependencies and preferences. But basically it should look like this:

  1. Install Apache Ant (requires Java): http://ant.apache.org/
  2. Clone Zen Coding project with all submodules (required): http://github.com/sergeche/zen-coding
  3. In console, go into main Zen Coding project folder and run
    ant coda_bundle

Сергей Чикуёнок
http://chikuyonok.ru
serge.che@gmail.com

On Tuesday, April 10, 2012 at 8:07 PM, Mark McDonnell wrote:

@sergeche thanks for the update. Do you have any instructions on how to use Ant - I've not used it before so I'm not sure of the process. A quick step-by-step would be very helpful. Thanks!


Reply to this email directly or view it on GitHub:
https://github.com/sergeche/zen-coding/issues/10#issuecomment-5049486

@Integralist
Copy link

@sergeche thanks, I'll give that a bash (no pun).

@Integralist
Copy link

@sergeche sorry, only just gotten round to testing this.

I cloned the repo which consists of...

$ ls -l
total 32
-rw-r--r--   1 <user>  staff  5852 12 Apr 10:46 README.textile
drwxr-xr-x   2 <user>  staff    68 12 Apr 10:46 ant-tools
-rw-r--r--   1 <user>  staff  1019 12 Apr 10:46 build.properties
-rw-r--r--   1 <user>  staff  2514 12 Apr 10:46 build.xml
drwxr-xr-x  15 <user>  staff   510 12 Apr 10:46 javascript
drwxr-xr-x  16 <user>  staff   544 12 Apr 10:46 plugins
drwxr-xr-x   4 <user>  staff   136 12 Apr 10:46 python

I then execute ant coda_bundle which throws the following error...

Buildfile: /Users/<user>/Desktop/zen-coding/build.xml

BUILD FAILED
/Users/<user>/Desktop/zen-coding/build.xml:4: Cannot find /Users/<user>/Desktop/zen-coding/ant-tools/webtasks.xml imported from /Users/<user>/Desktop/zen-coding/build.xml

...any ideas?

@sergeche
Copy link
Member

Try to remove <import file="${basedir}/ant-tools/webtasks.xml"/> on line 4 of build.xml

@Integralist
Copy link

@sergeche no luck. There were 4 build.xml files that errored:

  • /zen-coding/build.xml
  • /zen-coding/plugins/textarea/build.xml
  • /zen-coding/plugins/codemirror/build.xml
  • /zen-coding/plugins/codemirror2/build.xml

...after fixing those files by removing said line, it then errors with:

$ ant coda_bundle
Buildfile: /Users/<user>/Desktop/zen-coding/build.xml
coda_init:
    [mkdir] Created dir: /Users/<user>/Desktop/zen-coding/build/plugins/Coda

coda_copy_files:

BUILD FAILED
/Users/<user>/Desktop/zen-coding/plugins/coda/build.xml:9: /Users/<user>/Desktop/zen-coding/plugins/tea-for-coda does not exist.

Total time: 0 seconds

@sergeche
Copy link
Member

The build process is pretty bad right now, it will be updated in next release.
Right now, you should try to check out tea-for-coda project https://github.com/sergeche/tea-for-coda into zen-coding/plugins


Сергей Чикуёнок
http://chikuyonok.ru
serge.che@gmail.com

On Friday, April 13, 2012 at 8:01 PM, Mark McDonnell wrote:

@sergeche no luck. There were 4 build.xml files that errored:

  • /zen-coding/build.xml
  • /zen-coding/plugins/textarea/build.xml
  • /zen-coding/plugins/codemirror/build.xml
  • /zen-coding/plugins/codemirror2/build.xml

...after fixing those files by removing said line, it then errors with:

$ ant coda_bundle
Buildfile: /Users/<user>/Desktop/zen-coding/build.xml
coda_init:
[mkdir] Created dir: /Users/<user>/Desktop/zen-coding/build/plugins/Coda

coda_copy_files:

BUILD FAILED
/Users/<user>/Desktop/zen-coding/plugins/coda/build.xml:9: /Users/<user>/Desktop/zen-coding/plugins/tea-for-coda does not exist.

Total time: 0 seconds

Reply to this email directly or view it on GitHub:
https://github.com/sergeche/zen-coding/issues/10#issuecomment-5117724

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants