A simple plugin that adds keyboard-based code folding to Pluma.
- Move
folding.pluma-plugin
andfolding.py
into~/.config/pluma/plugins
- In Pluma, go to Edit → Preferences → Plugins to enable the plugin.
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
Used https://github.com/aeischeid/gedit-folding.git for Fold Deepest modifications.