git-files g "display-popup -E -w 100% \"~/.tmux/bin/fzf.zsh git-files '#{pane_current_path}'\"" \
git-branches b "display-popup -E -w 100% \"~/.tmux/bin/fzf.zsh git-branches '#{pane_current_path}'\"" \
git-commits c "display-popup -E -w 100% \"~/.tmux/bin/fzf.zsh git-commits '#{pane_current_path}'\""
+
+source-file ~/.tmux/rc/select-command-output
--- /dev/null
+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
+ }
+}
PROMPT+='%U${vcs_info_msg_0_}%u'
PROMPT+="%(?.. %S%?%s)"
PROMPT+='%(1S. %B${SECONDS}%b.)'
-PROMPT+='%B%F{magenta}%#%f%b '
+PROMPT+='%B%F{magenta}%#%f%b '
function zle-line-init zle-keymap-select {
local ccolour=red