Permalink
Browse files

update comments and readme

  • Loading branch information...
1 parent e7bba28 commit 7687b9cab4511b6d980d68daccc7ed6f27c10e16 @fmarcia committed Jun 5, 2010
Showing with 47 additions and 45 deletions.
  1. +2 −4 README.md
  2. +12 −19 zencoding/html_navigation.py
  3. +13 −12 zencoding/lorem_ipsum.py
  4. +1 −1 zencoding/zen_actions.py
  5. +2 −2 zencoding/zen_core.py
  6. +16 −6 zencoding/zen_dialog.py
  7. +1 −1 zencoding/zen_file.py
View
@@ -7,27 +7,25 @@ This plugin fully integrates [Zen Coding](http://code.google.com/p/zen-coding/)
- Expand incrementally with abbreviation (*)
- Wrap incrementally with abbreviation (*)
- Zenify (reduce to abbreviation) (**)
+- Insert incrementally 'lorem ipsum' words or sentences, or random letters (***)
- Select inward or outward (**)
-- Merge lines
- Go to previous or next html tag (**)
- Go to previous or next html node (**)
- Go to previous or next edit point
- Update tag image size
- Toggle between image url and data
+- Merge lines
- Remove tag
- Split or join tags
- Toggle comment
- Create your own abbreviations and snippets
-- Insert incrementally 'lorem ipsum' words or sentences, or random letters (***)
(*) use snippets when available
(**) these features use [html_navigation.py](http://github.com/fmarcia/zen-coding-gedit/blob/master/zencoding/html_navigation.py) instead of [zen_actions.py](http://github.com/fmarcia/zen-coding-gedit/blob/master/zencoding/zen_actions.py)
(***) see [lorem_ipsum.py](http://github.com/fmarcia/zen-coding-gedit/blob/master/zencoding/lorem_ipsum.py) for usage
-These actions are available using keyboard shortcuts and menu items.
-
Installation
------------
@@ -1,26 +1,19 @@
-# Html Navigation for Gedit
+# Zen Coding for Gedit
#
-# Copyright (C) 2010 Franck Marcia
+# Copyright (C) 2010 Franck Marcia
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-'''
-Parse HTML content to navigate through its nodes
-
-@author Franck Marcia (franck.marcia@gmail.com)
-@link http://github.com/fmarcia/zen-coding-gedit
-'''
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
import re
View
@@ -1,19 +1,19 @@
-# Lorem Ipsum Generator for Gedit
+# Zen Coding for Gedit
#
-# Copyright (C) 2010 Franck Marcia
+# Copyright (C) 2010 Franck Marcia
#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
'''
Parse a request and return 'lorem ipsum' string accordingly
@@ -282,3 +282,4 @@ def echo(x):
echo('st 7 4 6')
echo('lu 3 2 6')
echo('l 7*5')
+
View
@@ -248,7 +248,7 @@ def find_new_edit_point(editor, inc=1, offset=0):
"""
cur_point = editor.get_caret_pos() + offset
content = editor.get_content()
- syntax = editor.get_syntax()
+ syntax = editor.get_syntax() # (FM) needed to differentiate CSS
max_len = len(content)
next_point = -1
re_empty_line = r'^\s+$'
View
@@ -234,7 +234,7 @@ def get_elements_collection(resource, type):
else:
return {}
-def replace_variables(text): # (FM) allow dynamic variables
+def replace_variables(text): # (FM) use dynamic variables
"""
Replace variables like ${var} in string
@param text: str
@@ -264,7 +264,7 @@ def get_snippet(res_type, snippet_name):
"""
return get_settings_resource(res_type, snippet_name, 'snippets');
-def get_variable(name): # (FM) allow dynamic variables
+def get_variable(name): # (FM) variable can be missing
"""
Returns variable value
@return: str
View
@@ -1,9 +1,19 @@
-'''
-Dialog windows used with "Wrap abbreviation" with and "Expand with abbreviation" actions
-
-@author Franck Marcia (franck.marcia@gmail.com)
-@link http://github.com/fmarcia/zen-coding-gedit
-'''
+# Zen Coding for Gedit
+#
+# Copyright (C) 2010 Franck Marcia
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
import pygtk
pygtk.require('2.0')
View
@@ -16,7 +16,7 @@ def read(path):
fp.close()
return content
-def locate_file(editor_file, file_name):
+def locate_file(editor_file, file_name): # (FM) infinite loop fix
"""
Locate <code>file_name</code> file that relates to <code>editor_file</code>.
File name may be absolute or relative path

0 comments on commit 7687b9c

Please sign in to comment.