Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable 'drop to shell' in Zellij panes #3978

Open
tnagyzambo opened this issue Feb 9, 2025 · 0 comments
Open

Option to disable 'drop to shell' in Zellij panes #3978

tnagyzambo opened this issue Feb 9, 2025 · 0 comments

Comments

@tnagyzambo
Copy link

tnagyzambo commented Feb 9, 2025

Motivating Ux
I'm using Zellij and Helix as my primary editing environment, I have included a sample layout from one of my projects. I'm frequently jumping between the editing and command panes during development. Helix makes heavy use of the ESC key to exit the current mode. If I mistakenly press the ESC key in the command pane I drop to shell and kill my development flow. In the year or so I've been working with this combination of tools I've never wanted to drop to shell on the command panes.

layout {
    pane {
        size "80%"
        edit "src/gui/main.rs" 
    }
    pane stacked=true {
        pane command="cargo" {
            args "doc" "--open"
            start_suspended true
        }
        pane command="cargo" {
            args "build"
            start_suspended true
        }
        pane command="bash" {
            args "-c" "cargo build && cargo run --bin gui"
            start_suspended true
        }
    }
    pane size=1 borderless=true {
        plugin location="zellij:compact-bar"
    }
}

Feature Request
Add a flag to the layout options to disable drop to shell on a per pane basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant