Skip to content

A gedit plugin that allows easier navigation between lines based on their indent level

License

Notifications You must be signed in to change notification settings

zb3/gedit-indent-navigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gedit-indent-navigation

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.

Disclaimer

This plugin is experimental and its behaviour may change (fork advised).

Installation

  1. Make sure your gedit version is up to date.
  2. Copy project folder to ~/.local/share/gedit/plugins
  3. Enable Indent Navigation plugin.
  4. 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']"
    
  5. That's it :)

About

A gedit plugin that allows easier navigation between lines based on their indent level

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages