Code Folding for Gedit
A simple plugin that adds keyboard-based code folding to Gedit.
Installation
Unix/Linux
- Simplest: Move
folding.plugin
andfolding.py
into~/.local/share/gedit/plugins
- More convenient:
cd ~/.local/share/gedit/plugins
git clone https://github.com/aeischeid/gedit-folding
You can replace aeischeid 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.
Usage
Alt-Z
on selected lines will collapse themAlt-Z
on an indented block's top line will collapse that blockAlt-Z
on a folded block will expand itAlt-X
will collapse all blocks on the deepest indention column (you can keep pressing Alt-X until all indention levels are folded)Shift-Alt-X
will expand all the collapsed blocks