Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 987 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 987 Bytes

About

This is a plugin for the Zellij terminal multiplexer that allows for keeping the current working directory when splitting panes. In order to run this, you need to use my fork of Zellij, as I had to make extensions to the core API's. This repositories Cargo.toml points to the fork as a relative path in an adjacent directory to this one, so make sure you compile Zellij and this plugin from the same root directory.

Usage

Once you've built both projects you need to modify your Zellij config.yaml to add this plugin and configure it like so:

plugins:
  - path: /absolute/path/to/target/wasm32-wasi/debug/zellij-sticky-cwd.wasm
    tag: sticky-cwd
    run: service

keybinds:
    plugins:
        sticky-cwd:
            pane:
                - action: [ NewPane: Right, ]
                  key: [ Char: 'm', ]

Note that you can bind NewPane instructions to be dispatched into the sticky-cwd plugin.