ELPA Logo NonGNU ELPA: evil-indent-plus

evil-indent-plus Atom Feed

Description
Evil textobjects based on indentation
Latest
evil-indent-plus.tar (.sig), 2024-Mar-31, 0.04 KiB
Maintainer
Other versions:
development version
Website
http://github.com/TheBB/evil-indent-plus
ELPA's Repository
CGit or Gitweb
All Dependencies
evil (.tar)
cl-lib (.tar)
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

evil-indent-plus

MELPA

Table of Contents

Introduction

This is a continuation of evil-indent-textobject. It provides six new text objects to evil based on indentation:

Usage

You can install the package and bind the auto-loadable text objects yourself:

Or you can call (evil-indent-plus-default-bindings) to use the default bindings (listed above). They are:

(define-key evil-inner-text-objects-map "i" 'evil-indent-plus-i-indent)
(define-key evil-outer-text-objects-map "i" 'evil-indent-plus-a-indent)
(define-key evil-inner-text-objects-map "I" 'evil-indent-plus-i-indent-up)
(define-key evil-outer-text-objects-map "I" 'evil-indent-plus-a-indent-up)
(define-key evil-inner-text-objects-map "J" 'evil-indent-plus-i-indent-up-down)
(define-key evil-outer-text-objects-map "J" 'evil-indent-plus-a-indent-up-down)

Differences from evil-indent-textobject

The evil-indent-textobject package provides text objects that select lines with the exact same indentation as the current line. Lines that are either indented more, or which are empty, will interrupt the selection, contrary to expected behaviour. This package correctly handles these cases.

Old versions

evil-indent-plus-1.0.1.0.20230927.151313.tar2024-Mar-3120.0 KiB
evil-indent-plus-1.0.1.0.20220106.93101.tar.lz2022-Jan-062.84 KiB