2024-06-25 04:04:39 +03:00
|
|
|
{ config, ... }: let
|
2024-06-23 04:55:57 +03:00
|
|
|
mod = "M";
|
2024-04-30 20:35:45 +03:00
|
|
|
|
2024-06-29 18:05:39 +03:00
|
|
|
fg = config.style.color.bg.dark;
|
|
|
|
selection = config.style.color.selection;
|
2024-04-30 20:35:45 +03:00
|
|
|
in {
|
|
|
|
text = ''
|
|
|
|
setw -g mode-keys vi
|
2024-06-23 04:55:57 +03:00
|
|
|
bind -n ${mod}-v copy-mode
|
|
|
|
bind -n ${mod}-V choose-buffer;
|
|
|
|
bind -T copy-mode-vi v send -X begin-selection
|
|
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
2024-04-30 20:35:45 +03:00
|
|
|
|
2024-05-20 17:07:48 +03:00
|
|
|
set -g mode-style "fg=#${fg} bg=#${selection} bold"
|
2024-04-30 20:35:45 +03:00
|
|
|
'';
|
|
|
|
}
|