Terminal
如何將 Shift+PgUp 綁定到 zsh 中的某個鍵?
我知道我可以像我
.zshrc
一樣綁定鍵bindkey '^[u' "echo hi^J"
我想綁定一個命令以使終端向上滾動,就像我按
Shift
+時一樣PgUp
。我該怎麼做?我的終端是 Alacritty。
正如tilyboy指出的那樣,這必須在每個終端的設置中解決。這就是在我的機器上解決的問題。
快活
keybindings: - { key: P, mods: Alt, action: ScrollPageUp, mode: ~Alt } - { key: U, mods: Alt, action: ScrollPageDown, mode: ~Alt }
TMUX
# scroll / copy mode (using alt+u, alt+p and movement keys bind-key -n M-u copy-mode bind-key -n M-p copy-mode bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind-key -T copy-mode-vi h send-keys -X cursor-left bind-key -T copy-mode-vi j send-keys -X cursor-down bind-key -T copy-mode-vi k send-keys -X cursor-up bind-key -T copy-mode-vi l send-keys -X cursor-right bind-key -T copy-mode-vi z send-keys -X page-down bind-key -T copy-mode-vi x send-keys -X page-up bind-key -T copy-mode-vi Escape send-keys -X cancel