z_mirror/kak-move-lines
git clone https://git.raiguard.me/z_mirror/kak-move-lines
6ab7f03
trunk
kak-move-lines
A plugin for the kakoune text editor that allows you to easily move your selected lines up and down.
Installation
Source move-lines.kak in your kakrc, or use a plugin manager.
Usage
The plugin provides the move-lines-up and move-lines-down commands. Intended
use is to bind these commands to keys in normal mode:
map global normal <c-s-j> ': move-lines-down %val{count}<ret>'
map global normal <c-s-k> ': move-lines-up %val{count}<ret>'
Note the use of single quotes and %val{count}. This allows you to optionally
specify the number of lines to move by - <c-s-j> will move down one line, but
15<c-s-j> will move down 15 lines.
1# kak-move-lines 2 3A plugin for the [kakoune](https://kakoune.org) text editor that allows you to 4easily move your selected lines up and down. 5 6## Installation 7 8Source `move-lines.kak` in your `kakrc`, or use a plugin manager. 9 10## Usage 11 12The plugin provides the `move-lines-up` and `move-lines-down` commands. Intended 13use is to bind these commands to keys in normal mode: 14 15``` 16map global normal <c-s-j> ': move-lines-down %val{count}<ret>' 17map global normal <c-s-k> ': move-lines-up %val{count}<ret>' 18``` 19 20Note the use of single quotes and `%val{count}`. This allows you to optionally 21specify the number of lines to move by - `<c-s-j>` will move down one line, but 22`15<c-s-j>` will move down 15 lines.