Giter VIP home page Giter VIP logo

zen-coding-gedit's Introduction

zen-coding-gedit's People

Contributors

ai avatar crittermike avatar fmarcia avatar pangard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zen-coding-gedit's Issues

Shortcut . , ; > <

Hi, good night.

I'll trying change shortcut keys for:
.
,
;
.
,
;

But not working.
Why?

Tab error

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.

Tabs inside replacements should be replaced by the configured indentation

ul>li*2

results in


    \t

  • \t


even though the plugin's indentation is set to " " (two spaces).

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.

Expanding multiple elements

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

Gedit v3 and this plugin

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

Is it alive?

I would like to have this feature in gedit, but is it working in 2021?

Undo isn't working

When clicking CTRL+Z it always reverts just before first use of Zen Coding in the document.

Sub abbreviation expand

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?

encoding problems

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.

Placeholders

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!

Can't work...

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 inside

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

Zen Coding for gedit 3.0

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

Settings should be stored in gconf

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.

Update Zen Coding to 0.7

Hey, I tried to update the python files to the latest version (the folder inside .gnome2/gedit). Made the plugin stop working tho :(

Cursor position

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:|;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.