X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=tmux%2F.tmux%2Frc%2Fselect-command-output;fp=tmux%2F.tmux%2Frc%2Fselect-command-output;h=14534aaf4ed167671b58d832c5efe00f05e41a6e;hb=0e026879717deecd27b7797736321a6bdce03505;hp=0000000000000000000000000000000000000000;hpb=e40e7338c2e589d1ca6cf37fdaa5c98035f281dd;p=dotfiles.git diff --git a/tmux/.tmux/rc/select-command-output b/tmux/.tmux/rc/select-command-output new file mode 100644 index 0000000..14534aa --- /dev/null +++ b/tmux/.tmux/rc/select-command-output @@ -0,0 +1,30 @@ +bind-key H { + copy-mode + send -X clear-selection + send -X start-of-line + send -X start-of-line + send -X cursor-up + send -X start-of-line + send -X start-of-line + + if -F "#{m:*%\u00A0*,#{copy_cursor_line}}" { + send -X search-forward-text "%\u00A0" + send -X stop-selection + send -X -N 2 cursor-right + send -X begin-selection + send -X end-of-line + send -X end-of-line + if "#{m:*%\u00A0?*,#{copy_cursor_line}}" { + send -X cursor-left + } + } { + send -X end-of-line + send -X end-of-line + send -X begin-selection + send -X search-backward-text "%\u00A0" + send -X end-of-line + send -X end-of-line + send -X cursor-right + send -X stop-selection + } +}