Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cristiand391/zj-quit
A friendly `quit` plugin for zellij
https://github.com/cristiand391/zj-quit
zellij zellij-plugin
Last synced: 2 months 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 (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T23:06:22.000Z (7 months ago)
- Last Synced: 2024-10-20T09:28:14.735Z (3 months ago)
- Topics: zellij, zellij-plugin
- Language: Rust
- Homepage:
- Size: 131 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
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.
![image](https://github.com/cristiand391/zj-quit/assets/6853656/0b2537c4-6872-402b-aa5d-f0713c46c32b)
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/3147so 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
}
}
}
```