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
- Host: GitHub
- URL: https://github.com/occivink/kakoune-buffer-switcher
- Owner: occivink
- License: unlicense
- Created: 2020-03-15T10:00:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-18T08:57:00.000Z (about 3 years ago)
- Last Synced: 2025-07-03T13:05:05.552Z (3 months ago)
- Topics: buffers, kakoune, plugin
- Language: KakouneScript
- Homepage:
- Size: 5.86 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)