Skip to content

A plugin to enable vscode-like indentation hotkeys ctrl-[ and ctrl-] in zim

License

Notifications You must be signed in to change notification settings

bnfour/zim-plugin-text-indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zim plugin for indentation

This plugin adds VS Code-like text indentation and outdentation with Ctrl-] and Ctrl-[ hotkeys respectively (by default).

desktop compositon is overrated anyway

Installation

The plugin itself is distributed as a single script.

Requirements

  • Zim installed.
  • Python 3.12+ for type aliases.
    For older versions, you could try to remove all references to Action in the code.

The process

Just drop indent.py into your plugins folder, ~/.local/share/zim/plugins by default. After that, enable it in the plugins menu (Edit → Preferences (Ctrl+,) → Plugins):

why yes, i like the color orange, how could you tell

To uninstall, remove the file from the plugin folder. The plugin can also be disabled without removal.

Configuration

The hotkeys can be changed via Key bindings menu (Edit → Preferences (Ctrl+,) → Key bindings) while the plugin is enabled; look for the following actions:

  • <Actions>/BnIndentExtension/indentCtrl-] by default
  • <Actions>/BnIndentExtension/outdentCtrl-[ by default

About

A plugin to enable vscode-like indentation hotkeys ctrl-[ and ctrl-] in zim

Topics

Resources

License

Stars

Watchers

Forks

Languages