You are not logged in.

#1 2011-05-15 15:39:12

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Can't change keybindings in gedit-zencoding-plugin

Download source code from here: https://github.com/mikecrittenden/zen-coding-gedit .
It says: Shortcuts can be changed in zencoding/plugin.py to fit your needs.
Default one I use is: Expand abbreviation with Ctrl+E.
I wanna chage it to "Ctrl+,".
So I edit zencoding/plugin.py like this.

Was:

('ZenCodingExpandAction',   None, '_Expand abbreviation',         '<Ctrl>E',        "Expand abbreviation to raw HTML/CSS",         self.expand_abbreviation),

Became:

('ZenCodingExpandAction',   None, '_Expand abbreviation',         '<Ctrl>,',        "Expand abbreviation to raw HTML/CSS",         self.expand_abbreviation),

Then I download PKGBUILD from http://aur.archlinux.org/packages.php?ID=33138 , place it into source code dir, run makepkg and install it with pacman. Everything works instead of keybindings. They are still Ctrl+E!

I also changed keybindings to this:

('ZenCodingExpandAction',   None, '_Expand abbreviation',         '<Ctrl>comma',        "Expand abbreviation to raw HTML/CSS",         self.expand_abbreviation),

Result is the same, I can't change these hotkeys.

Help me please.

Offline

Board footer

Powered by FluxBB