This is plugin adds the following bindings:
Ctrl + Scroll Up/Down Ctrl + Alt + Up / Down Ctrl + Alt + Left/Right click | Jump to the previous/next line with the same or lower (whichever occurs first) indentation level as the current line. |
Shift + Alt + Scroll Up/Down Shift + Alt + Up / Down Shift + Alt + Left/Right click | Jump to the previous/next line with an indentation level lower than the current line. |
Ctrl + Alt + Insert | Try to jump to the next line with current indentation level, but if a line with lower indentation level comes first, insert a new line with current indentation before that line and any preceeding blank lines. |
- Empty lines and lines containing only indentation characters are skipped.
- Mouse click changes the current line before jumping.
- If something was selected, these jumps extend the selection.
This plugin is experimental and its behaviour may change (fork advised).
- Make sure your gedit version is up to date.
- Copy project folder to
~/.local/share/gedit/plugins
- Enable
Indent Navigation
plugin. - If you're using GNOME, you might need to remap the
switch-to-workspace
binding to make Ctrl + Alt + Up / Down work:gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Control><Alt>Page_Down']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Control><Alt>Page_Up']"
- That's it :)