解除所有tmux前缀键的绑定
如何解除tmux中默认前缀键的绑定?
我的意思是用户设置的默认值,不一定是Cb
我不知道用户设置了什么!所以我必须用命令发现前缀
解决方案应该在zsh文件中而不是在.tmux.conf中
使用 tmux 命令优先于正则表达式
来获取默认前缀键,
$ tmux send-prefix
^[w
当我将 send-prefix
输出传输到 tmux unbind
命令时,输出为如下
$ tmux send-prefix | xargs tmux unbind
^[`missing key
如果命令返回Mq
,我可以按以下方式取消绑定(但不返回)
a_command | xargs tmux unbind
其他方法是使用正则表达式进行以下输出(但如何?)
$ tmux list-keys | grep send-prefix
bind-key -T prefix M-q send-prefix
请帮助我...
How can unbind default prefix key in tmux?
I mean the default set by the user, Not necessarily C-b
I do not know what the user has set! So I have to discover the prefix with the command
solution should be in the zsh file and not in .tmux.conf
use
tmux
command takes precedence over Regex
for getting default prefix key I use
$ tmux send-prefix
^[w
when I pipe send-prefix
output to tmux unbind
command, the output is as follows
$ tmux send-prefix | xargs tmux unbind
^[`missing key
if the command return M-q
, I can unbind as following (but not return)
a_command | xargs tmux unbind
Other way is to use Regex for following output (but how?)
$ tmux list-keys | grep send-prefix
bind-key -T prefix M-q send-prefix
please help me...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
例如,在 .tmux.conf 中:
For example, in the .tmux.conf:
通过使用
awk
解决了!unbind prefix key
unbind prefix2 key
if have multi output we can iterate by piping to while
(Similarly for prefix2)
Solved, by using
awk
!unbind prefix key
unbind prefix2 key
if have multi output we can iterate by piping to while
(Similarly for prefix2)