Expand and shrink line-based selections with x and X.
TL;DR: x drags the cursor down, X drags the cursor up. See the "Examples" section below for a more detailed explanation.
Previously named expand-line.kak
.
Using plug.kak (recommended)
With plug.kak installed, add to your kakrc
file:
plug "evanrelf/byline.kak" config %{
require-module "byline"
}
Download plugin:
$ curl -L https://raw.githubusercontent.com/evanrelf/byline.kak/main/rc/byline.kak -o ~/.config/kak/plugins/byline.kak --create-dirs
Add to your kakrc
file:
source ~/.config/kak/plugins/byline.kak
require-module "byline"
Use x and X to drag the cursor down and up by lines, respectively. This expands or contracts your selection by lines, based on the direction of your selection.
• Initial selection | → Pressed x | → Pressed x | |
---|---|---|---|
Expand downwards |
|
|
|
• Initial selection | → Pressed x | → Pressed x | |
---|---|---|---|
Contract downwards |
|
|
|
• Initial selection | → Pressed <a-;> | → Pressed <a-;> |
---|---|---|
|
|
|
• Initial selection | → Pressed X | → Pressed X | |
---|---|---|---|
Expand upwards |
|
|
|
• Initial selection | → Pressed X | → Pressed X | |
---|---|---|---|
Contract upwards |
|
|
|