Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
move lorem ipsum menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcia committed May 20, 2010
1 parent 03cb62a commit 5707ab1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions zencoding/plugin.py
Expand Up @@ -36,6 +36,8 @@
<menuitem name="ZenCodingExpandW" action="ZenCodingExpandWAction"/>
<menuitem name="ZenCodingWrap" action="ZenCodingWrapAction"/>
<separator/>
<menuitem name="LoremIpsum" action="LoremIpsumAction"/>
<separator/>
<menuitem name="ZenCodingInward" action="ZenCodingInwardAction"/>
<menuitem name="ZenCodingOutward" action="ZenCodingOutwardAction"/>
<separator/>
Expand All @@ -56,7 +58,6 @@
<separator/>
<menuitem name="ZenCodingSettings" action="ZenCodingSettingsAction"/>
</menu>
<menuitem name="LoremIpsum" action="LoremIpsumAction"/>
</placeholder>
</menu>
</menubar>
Expand All @@ -72,6 +73,7 @@ def activate(self, window):
('ZenCodingExpandAction', None, '_Expand abbreviation', '<Ctrl>E', "Expand abbreviation to raw HTML/CSS", self.expand_abbreviation),
('ZenCodingExpandWAction', None, 'E_xpand with abbreviation...', '<Ctrl><Alt>E', "Type in an abbreviation to expand", self.expand_with_abbreviation),
('ZenCodingWrapAction', None, '_Wrap with abbreviation...', '<Ctrl><Shift>E', "Wrap with code expanded from abbreviation", self.wrap_with_abbreviation),
('LoremIpsumAction', None, '_Lorem ipsum...', '<Ctrl><Alt>X', "Insert a lorem ipsum string", self.lorem_ipsum),
('ZenCodingInwardAction', None, 'Select _inward', '<Ctrl><Alt>I', "Select inner tag's content", self.match_pair_inward),
('ZenCodingOutwardAction', None, 'Select _outward', '<Ctrl><Alt>O', "Select outer tag's content", self.match_pair_outward),
('ZenCodingPTagAction', None, 'Previous tag', '<Ctrl><Alt>Up', "Select the previous tag in HTML code", self.prev_tag),
Expand All @@ -86,8 +88,7 @@ def activate(self, window):
('ZenCodingRemoveAction', None, '_Remove tag', '<Ctrl><Alt>R', "Remove a tag", self.remove_tag),
('ZenCodingSplitAction', None, 'Split or _join tag', '<Ctrl><Alt>J', "Toggle between single and double tag", self.split_join_tag),
('ZenCodingCommentAction', None, 'Toggle _comment', '<Ctrl><Alt>C', "Toggle an XML or HTML comment", self.toggle_comment),
('ZenCodingSettingsAction', None, 'E_dit settings...', None, "Customize snippets and abbreviations", self.edit_settings),
('LoremIpsumAction', None, 'Lorem ipsum...', '<Ctrl><Alt>X', "Insert a lorem ipsum string", self.lorem_ipsum)
('ZenCodingSettingsAction', None, 'E_dit settings...', None, "Customize snippets and abbreviations", self.edit_settings)
]
windowdata = dict()
window.set_data("ZenCodingPluginDataKey", windowdata)
Expand Down Expand Up @@ -128,6 +129,9 @@ def expand_with_abbreviation(self, action, window):
def wrap_with_abbreviation(self, action, window):
self.editor.wrap_with_abbreviation(window)

def lorem_ipsum(self, action, window):
self.editor.lorem_ipsum(window)

def match_pair_inward(self, action, window):
self.editor.match_pair_inward(window)

Expand Down Expand Up @@ -173,6 +177,3 @@ def toggle_comment(self, action, window):
def edit_settings(self, action, window):
window.create_tab_from_uri("file:///" + os.path.expanduser("~/.gnome2/gedit/plugins/zencoding/my_zen_settings.py"), None, 0, True, True)

def lorem_ipsum(self, action, window):
self.editor.lorem_ipsum(window)

0 comments on commit 5707ab1

Please sign in to comment.