A simple plugin that adds keyboard-based code folding to Gedit.
####Unix/Linux
- Simplest: Move
folding.pluginandfolding.pyinto~/.local/share/gedit/plugins - More convenient:
cd ~/.local/share/gedit/plugins
git clone https://github.com/frank-hanner/gedit-folding
You can replace frank-hanner by other developer - pick active one: https://github.com/aeischeid/gedit-folding/network
Then
- In Gedit, go to Edit → Preferences → Plugins to enable the plugin.
####Windows
Note: As stated in IRC conversation at #gedit public channel, gedit3 is not ready for Windows (yet). Eventually this installation section will be updated when gedit3 supports Windows.
Alt-Zon an indented block's top line (or within the block) will collapse that blockAlt-Zon a folded block will expand itShift-Alt-Zwill expand all collapsed blocksAlt-Xwill collapse all blocks within/deeper than the current oneShift-Alt-Xwill collapse everythingCtrl-Alt-Xwill collapse all blocks on the deepest indention column (you can keep pressing Alt-X until all indention levels are folded)