Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.22 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.22 KB

zj-quit

A zellij plugin that prompts for confirmation before killing the current session.

image

This has been requested multiple times by users:

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:

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:

plugins {
  zj-quit location="file:/path/to/zj-quit.wasm" {
    confirm_key "q"
    cancel_key "Esc"
  }
}

Keys are referenced from: zellij doc

Then set a keybind to launch it in a floating window:

keybinds clear-defaults=true {
  shared_except "locked" {
    bind "Ctrl q" {
      LaunchOrFocusPlugin "zj-quit" {
        floating true
      }
    }
}