Comments (2)
Hey, I found Ctrl+G keybind which locks the interface until it's pressed again, which is a good workaround for this
If Ctrl+G is also used then just rebind it in Zellij to something else
from zellij.
If you use Zsh you can use this which I just put together to automatically lock on certain commands:
https://gist.github.com/rehhouari/a287b22b468fb295273b782297142bed
# Define an array of commands that will lock Zellij when ran
locked_commands=("micro" "nano")
# Store the last command we ran, this is to be used in precmd()
local command=''
# Run before a command is executed
function preexec() {
# Extract the command from the input string
local cmd=${1%% *}
command=$cmd
if [[ " ${locked_commands[@]} " =~ " $cmd " ]]; then
zellij ac switch-mode locked
fi
}
# Run after a command exits
function precmd() {
if [[ " ${locked_commands[@]} " =~ " $command " ]]; then
zellij ac switch-mode normal
fi
}
put it in ~/.zshrc
or ~/.oh-my-zsh/custom/zellij-lock.zsh
if you use Oh My Zsh
from zellij.
Related Issues (20)
- Support ZMODEM (sz/rz of lrzsz)
- Completely disable pane lines
- Allow setting pane name in keybind actions
- In sequence keybinding HOT 3
- Crash switching tabs HOT 2
- .zshrc run again
- Pane freezes when scrolling extremely long lines HOT 1
- Zellij + Noice.nvim causes screen flickering. HOT 1
- Session name length past 40 characters hangs
- Runtime Option to enable/disable borders for easier copy/paste operations HOT 2
- Search not very usable without pane frames
- Support filtering out floating panels in session-manager
- Session resurrection should save start_suspended setting per pane
- Can't open new pane
- [Documentation] Improve backspace issue documentation HOT 1
- Pane edit in layout closes pane when file is closed, using Helix or Vim
- Unification of tabs, across sessions (including ssh!) HOT 1
- Keymaps/configs don't restore on attach HOT 3
- `zellij move-focus-or-tab` `up`/`down` does not behave as expected but `left`/`right` does HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zellij.