Dynamically modifying keybindings/configuration? #2142
-
Question: Where I'm coming from / what I'm trying to do: I can have multiple sets of conifgs where the only difference is the lock/unlock keybinding, but that means that I'll need to keep configuration changes in sync. I was hoping to find a solution where keybindings are assigned dynamically, but I can't figure it out on my own. Does anyone have a suggestion, or has attempted something like this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey, so I'll start by saying that right now we unfortunately do not have a good solution for this. I also suffer from this problem when developing Zellij (I'm forced to open my development version in a different terminal window than the one I'm developing in - very sad!). The way I was thinking of fixing this is to have Zellij aware of whether it's nested or not. And then once you lock while focused on a pane with a nested session, it will first lock your outer session, then your inner session, then unlock the outer, then unlock the inner. Of course also working with multiple layers of nesting. What do you think, will this future feature solve your problem? |
Beta Was this translation helpful? Give feedback.
so sounds like overlapping configurations, or conditional rules might be a solution here.
For now, I'm going to use a template file with
envsubst
and initiate the configuration based on that template.Below is the exact details if anyone else is interested in understanding what I'm trying to simplify.
Auto start code
This is how I start zellij today - NOTE the
$USER_IS_HOME
test:ed…