A simple plugin that adds keyboard-based code folding to Gedit.
- Move
folding.gedit-plugin
andfolding.py
into~/.gnome2/gedit/plugins
- In Gedit, go to Edit → Preferences → Plugins to enable the plugin.
Alt-Z
on highlighted text will collapse itAlt-Z
on an indented block's top line will collapse that blockAlt-Z
on a folded block will expand itAlt-X
will expand all the collapsed blocks