An open API service indexing awesome lists of open source software.

https://github.com/occivink/kakoune-buffer-switcher

Navigate between open buffers
https://github.com/occivink/kakoune-buffer-switcher

buffers kakoune plugin

Last synced: 3 months ago
JSON representation

Navigate between open buffers

Awesome Lists containing this project

README

          

# kakoune-buffer-switcher

**Warning**: For kakoune version 2021.11.08 and earlier, the master branch of this plugin will not work. The latest commit compatible with these versions is 216bf7e70a3944ddd684b278a43c1dd5759a5b85.

[Kakoune](http://kakoune.org) plugin to navigate between open buffers, and manipulate the buffers-list.

## Setup

Add `buffer-switcher.kak` to your `autoload` directory: `~/.config/kak/autoload/`, or source it manually.

## Usage

This plugin can be used with the `buffer-switcher` command. When it is invoked, a special-purpose `*buffer-switcher*` buffer is created. It lists all currently opened buffers (except for itself and `*debug*`), one per line.
Pressing `` will change the current buffer to the one under the cursor, and close the switcher. In addition, if a line was removed its buffer is removed as well (unless it has unsaved changes). The remaining buffers are re-ordered according to the order of the lines.
Pressing `` will close the switcher, without applying any of the changes.

Note: the experience is likely suboptimal when using multiple clients, suggestions for improvements on that front are welcome.

## Customization

The face `BufferSwitcherCurrent` is used to indicate the buffer that was previously active.

## License

[Unlicense](http://unlicense.org)