2017年5月11日 星期四
tmux-select-window-with-altnumber
next-window
previous-window
http://tmuxp.git-pull.com/en/latest/about_tmux.html
http://kevinjiang.info/2016/01/21/Xshell%20emacs%20发送alt键/
默认在Xshell里面使用emacs的时候,Alt键是不怎么好用的,其实是没有发送到服务器端的,所以需要对其他做一个设置:
File -> Properties -> Terminal -> Keyboard
把Use Alt as Meta key这个选项勾上
https://unix.stackexchange.com/questions/352436/tmux-select-window-with-altnumber/352503
bind -n M-x select-window -n
bind -n M-z select-window -p
https://superuser.com/questions/680238/making-tmux-use-altnum-to-select-window
# switch windows alt+number
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
https://gist.github.com/MohamedAlaa/2961058
https://www.netsarang.com/forum/xshell/43/Problems_with_keyboard_shortcuts_using_ALT_key
Re: Problems with keyboard shortcuts using ALT key
Modify Delete
Hi,
Try the "Use Alt as Meta Key" option on Session Properties->Terminal tab->Advanced Options->Emacs Compatibility.
Also You may use Esc instead of the Alt key in yast.
J.K
訂閱:
張貼留言 (Atom)
https://pttdigit.com/linux/M.1536211463.A.C19.html
回覆刪除tmux在開始就開多視窗並且有起始指令
範例
https://i.imgur.com/4IEMQOa.png
對應的指令, new-session, send-keys, split-window
tmux new-session \; \
send-keys 'dmesg | tail' C-m \; \
split-window -v \; clock-mode \; \
split-window -h \; \
send-keys 'top' C-m \;
參考資料
https://stackoverflow.com/questions/5609192/
how-to-set-up-tmux-so-that-it-starts-up-with-specified-windows-opened
https://tmuxcheatsheet.com/