https://github.com/cristiand391/zj-quit
A friendly `quit` plugin for zellij
https://github.com/cristiand391/zj-quit
zellij zellij-plugin
Last synced: over 1 year ago
JSON representation
A friendly `quit` plugin for zellij
- Host: GitHub
- URL: https://github.com/cristiand391/zj-quit
- Owner: cristiand391
- Created: 2024-05-28T04:13:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-16T04:40:31.000Z (over 1 year ago)
- Last Synced: 2025-03-14T18:08:28.153Z (over 1 year ago)
- Topics: zellij, zellij-plugin
- Language: Rust
- Homepage:
- Size: 183 KB
- Stars: 26
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# zj-quit
A [zellij](https://zellij.dev/) plugin that prompts for confirmation before killing the current session.

This has been requested multiple times by users:
* https://github.com/zellij-org/zellij/issues/467
* https://github.com/zellij-org/zellij/issues/1229
* https://github.com/zellij-org/zellij/issues/3147
so I decided go the *zellij way* ™️ and made a plugin for this :)
## Usage
Download the last release available at https://github.com/cristiand391/zj-quit/releases/ and set up an alias for it:
```kdl
plugins {
zj-quit location="file:/path/to/zj-quit.wasm"
}
```
https://zellij.dev/documentation/plugin-aliases
You can also configure the keybindings within the plugin:
```kdl
plugins {
zj-quit location="file:/path/to/zj-quit.wasm" {
confirm_key "q"
cancel_key "Esc"
}
}
```
Keys are referenced from: [zellij doc](https://docs.rs/zellij-tile/latest/zellij_tile/prelude/enum.Key.html)
Then set a keybind to launch it in a floating window:
```kdl
keybinds clear-defaults=true {
shared_except "locked" {
bind "Ctrl q" {
LaunchOrFocusPlugin "zj-quit" {
floating true
}
}
}
```