Giter Site home page Giter Site logo

Comments (5)

Zykino avatar Zykino commented on August 16, 2024 2

Oh! I did not understood that!
Yeah I have the same "glitch". Never noticed in a year of usage 😅 Thanks for reporting.

I think the underlying issue is that this bar’s shortcut’s presentation is more or less hardcoded. Like I moved the Quit action to only be activated when I’m on the "session mode". If I try to set it to only q then it is still shown in the first bar instead of the second one (like <d> Detach is).

from zellij.

Zykino avatar Zykino commented on August 16, 2024

Yeah, un-commenting does not `unbind.
There are 3 possibilities that I know of:

  1. unbind the shortcut
  2. Override it (if I remember correctly you can do with: bind "Ctrl q" { })
  3. Read (and do) as the first line of the first line of the dumped config tells you to (the commented one ;) )

from zellij.

vincentqb avatar vincentqb commented on August 16, 2024

I've tried to un/comment lines with "Ctrl q" without success. Is that what you meant?

keybinds clear-defaults=true {
    unbind "Ctrl q"
    locked {
        bind "Ctrl g" { SwitchToMode "Normal"; }
        bind "Ctrl q" { }
    }
    shared_except "locked" {
        bind "Ctrl g" { SwitchToMode "Locked"; }
        // bind "Ctrl q" { Quit; }
        bind "Alt n" { NewPane; }
        bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
        bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
        bind "Alt j" "Alt Down" { MoveFocus "Down"; }
        bind "Alt k" "Alt Up" { MoveFocus "Up"; }
        bind "Alt =" "Alt +" { Resize "Increase"; }
        bind "Alt -" { Resize "Decrease"; }
    }
...
}

The keyboard settings from the default configuration from zellij setup --dump-config are very close to mine otherwise :) Is that what you meant in 3? Thanks again!

from zellij.

Zykino avatar Zykino commented on August 16, 2024

Yeah, it one ore or the other 😅
Just the clear-defaults=true should be enough if you ends up dumping and configuring your config from there. Note that zellij does not reload its config. You will have to start another session to get the new bindings.

For the option 1: you did override, but not "inplace", so I’m not sure it will work.

from zellij.

vincentqb avatar vincentqb commented on August 16, 2024

Just to be clear, I have the keyboard bindings working :) I'm really just talking about the little visual Quit icon that remains in locked mode despite not representing any binding. That icon is successfully removed when unlocked. I attached images to the issue to emphasize what I mean. :) Thanks again!

from zellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.