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 it, but not collapsed sub-blocksAlt-Q
will collapse the whole documentAlt-X
will expand all the collapsed blocks
When unfolding (Alt-Z) selected text, unless the second line was indented, the previously selected text will not appear. Please do a Alt-X to display such text.