Skip to content

cristiand391/zj-quit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      }
    }
}