Skip to content

harryoooooooooo/exchange.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

exchange.kak

exchange.kak provides a handy command to exchange two selections.

Installation

Add this to the kakrc:

plug "harryoooooooooo/exchange.kak"

Then reload the configuration file or restart Kakoune and run :plug-install.

Without plugin manager

This plugin has only one source file. sourceing it in kakrc just works:

source "/path/to/exchange.kak/rc/exchange.kak"

Usage

Type :exchange<ret> to mark the current selection. Move to the second selection and type :exchange<ret> again -- the two selections exchanged.

To clear the mark, type :exchange clear<ret>.

It's recommended to map shortcuts for them with:

plug "harryoooooooooo/exchange.kak" config %{
    map global user x ':exchange<ret>'
    map global user <a-x> ':exchange clear<ret>'
}

Or at any other place in kakrc add:

map global user x ':exchange<ret>'
map global user <a-x> ':exchange clear<ret>'

About

Exchange two blocks of texts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published