A simple plugin that adds keyboard-based code folding to Pluma.
- Move
folding.pluma-pluginandfolding.pyinto~/.config/pluma/plugins - In Pluma, go to Edit → Preferences → Plugins to enable the plugin.
Alt-Zon selected lines will collapse themAlt-Zon an indented block's top line will collapse that blockAlt-Zon a folded block will expand itAlt-Xwill collapse all blocks on the deepest indention column (you can keep pressing Alt-X until all indention levels are folded)Shift-Alt-Xwill expand all the collapsed blocks
Used https://github.com/aeischeid/gedit-folding.git for Fold Deepest modifications.