komrad tmux
Bind the panel key on your tmux server
komrad tmux [flags]This is what a tmux config runs, as run-shell 'komrad tmux', and it is where the
key that opens and hides the panel comes from. The path of this binary is resolved
once and written into the binding, so komrad only has to be findable when tmux parses
its config rather than for the life of the server.
There is one key however many engines this machine knows: pressed, it opens this machine's panel, or a picker when engine files are present. An engine has no key of its own, so --engine is refused here.
A tmux server has to be running, since binding a key does not start one. The binding belongs to the server rather than to a session, so it outlives the session it was made from and dies with the server. Running this again binds the key as it now stands and unbinds the one it bound before, so run it by hand after changing @komrad_key rather than restarting tmux, and after building komrad somewhere else.
Run from a pane on komrad's own server, it binds on the server the last open of the panel came from, so a rebuild from inside the panel reaches your key too.
With --if-running it says nothing and does nothing when no tmux server is up, which is what a build script wants.
Flags#
| Flag | Type | Description |
|---|---|---|
--if-running | bool | bind only when a tmux server is running, and say nothing when none is |