]> Sergey Matveev's repositories - dotfiles.git/blob - tmux/.tmux/rc/select-command-output
Let's try command's output selector
[dotfiles.git] / tmux / .tmux / rc / select-command-output
1 bind-key H {
2     copy-mode
3     send -X clear-selection
4     send -X start-of-line
5     send -X start-of-line
6     send -X cursor-up
7     send -X start-of-line
8     send -X start-of-line
9
10     if -F "#{m:*%\u00A0*,#{copy_cursor_line}}" {
11         send -X search-forward-text "%\u00A0"
12         send -X stop-selection
13         send -X -N 2 cursor-right
14         send -X begin-selection
15         send -X end-of-line
16         send -X end-of-line
17         if "#{m:*%\u00A0?*,#{copy_cursor_line}}" {
18             send -X cursor-left
19         }
20     } {
21         send -X end-of-line
22         send -X end-of-line
23         send -X begin-selection
24         send -X search-backward-text "%\u00A0"
25         send -X end-of-line
26         send -X end-of-line
27         send -X cursor-right
28         send -X stop-selection
29     }
30 }