I’m working on Dependabot at GitHub.
📝 I write daily blog posts at critter.blog.
💬 Ask me about management, writing, team jelling, and trail running.
📫 Reach me at [email protected].
Integration of Zen Coding (a set of plugins for high-speed HTML and CSS coding) into a Gedit plugin
License: Other
I’m working on Dependabot at GitHub.
📝 I write daily blog posts at critter.blog.
💬 Ask me about management, writing, team jelling, and trail running.
📫 Reach me at [email protected].
Hi, good night.
I'll trying change shortcut keys for:
.
,
;
.
,
;
But not working.
Why?
Hello,
i want to report a bug i've discovered.
zen-coding-gedit is not working if the place in which i'm trying to use it is preceded with a tab.
I'm using gEdit 2.30.3 on Ubuntu 11.04
I can record a screencast or anything to help you fix it. Please just ask.
mv zen-coding/ zen_coding/, and update zen-coding.gedit-plugin to match. This will allow it to be imported normally without resorting to "stupid import tricks", making it easier to hack on and reuse.
ul>li*2
results in
Adding "after = after.replace('\t', indent)" to init.py:expand_zencode(self, window)" would suffice to correct this.
In an ideal world, the indentation would be picked up from the editor's settings rather than configured separately for the plugin.
import gconf
tab_size = gconf.client_get_default().get_int("/apps/gedit-2/preferences/editor/tabs/tabs_size")
spaces = gconf.client_get_default().get_bool("/apps/gedit-2/preferences/editor/tabs/insert_spaces")
Will grab the setting, although I don't think this is the per-editor setting. Still, better this than having to edit a settings file and restart gedit each time I switch to a different file with a different indentation scheme.
The files i'm working with the newlines are CR LF (windows) and i'm using tabs for indentation
when expanding any element over multiple lines it's adding extra newlines and losing the indentation after the first element (as the tabs are before the extra newline) i.e:
(tab)(tab)div*3
then generates exactly:
(tab)(tab)div/divCRLF
(tab)(tab)CRLF
div/divCRLF
(tab)(tab)CRLF
div/divCRLF
CRLF
had to modify the div's github doesn't seem to like them when written as proper tags in that format
New folder plugins in ubuntu 11.10:
~/.local/share/gedit/plugins
New regulations:
.gedit-plugin extension should be named .plugin
[Gedit Plugin] header should be [Plugin]
IAge=2 should be IAge=3
All plugins must have a .plugin file along side it.
But this does not help. The plugin does not work in gedit 3.
http://itmag.es/42H2K
I would like to have this feature in gedit, but is it working in 2021?
When clicking CTRL+Z it always reverts just before first use of Zen Coding in the document.
On habrahabr.ru i found information about new features about zen-coding v0.6.
New zen can expand abbreviations like this one:
div#page>(div#header>ul#nav>li_4>a)+(div#page>(h1>span)+p_2)+div#footer
So, my question: will there ever be carried this function in your plugin?
Hello again. There is little trouble with expanding abbreviations in gedit. If file have utf-8 encoding - zen works correctly, but if there is cp1251 encoding - abbreviations wont be expanded, or expands wrongly.
Do you plan to add placeholders you can navigate with tab, like snippets do, in this amazing plugin?
Besides, do you think it would be possible to merge zen-coding with snippets as well, using tab to expand?
Great work!
SnapOpen (http://github.com/MadsBuus/gedit-snapopen-plugin) and other forks use Ctrl+Alt+O to open files, so there is a conflict between SnapOpen and Zen Coding. In order to have both plugins working, I usually fix this issue editing plugin.py and changing the shortcut for Zen Coding to Ctrl+Shift+Alt+O. I think it would be good to have this by default.
I download the files and unpack them into ~/.gnome2/gedit/plugins/
However, when I restart gedit, I just can't find the button to activate it in Edit -> Preferences -> Plugins menu....
My folder structure is like this:
.gnome2 (folder)
gedit (folder)
plugins (folder)
zencoding (folder)
README.md
UNLICENSE.md
zencoding.gedit-plugin
How can I make it work?
btw, my gedit version is 2.8.1
Thanks.
css abbreviation expanding works perfect in *.css files, but what about <style> tag in the *.html and *.php files? i think it will be very usefull. so i'm waiting for this)) thanks
Hi, I don't know if this is the right place to put this, but after upgrading to gnome3 I cannot use zen coding anymore on gedit.
Is there support to gedit 3.0 for this plugin?
Thanks
Currently, settings are stored in a python file; this makes it impossible to adjust them without restarting gedit, as the module is cached (and therefore not re-read). It would be preferable if they were stored in a gconf key and reread each time they're used, as this would allow a user to adjust them using gconf-editor without needing to restart gedit.
I'm not sure if gedit provides an easier hook. There's a plugin settings button that's greyed out; whatever's responsible for that may be easier to hook into, and would be ideal.
mv zen-coding/ zen_coding/, and update zen-coding.gedit-plugin to match. This will allow it to be imported normally without resorting to "stupid import tricks", making it easier to hack on and reuse.
Hey, I tried to update the python files to the latest version (the folder inside .gnome2/gedit). Made the plugin stop working tho :(
When expanding CSS the cursor is positioned outside of the semi-colon rather than just before it
for example you type:
fl(ctrl+e)
it then generates: (the pipe representing the cursor)
float:;|
rather than
float:|;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.