Skip to content

Commit

Permalink
add block selection and better URI finger patter for tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Jun 30, 2023
1 parent cbda685 commit af1abc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set-window-option -g xterm-keys on

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Change to rectangular selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'

################
Expand Down Expand Up @@ -214,7 +215,7 @@ set -g @fingers-highlight-format "#[fg=cyan]%s"
set -g @fingers-pattern-1 '["].*["]' # match quoted text, useful when files path are quoted
set -g @fingers-pattern-2 "['][^']+[']" # match quoted text, useful when files path are quoted
# generic URL matcher
set -g @fingers-pattern-3 "([a-z][a-z0-9+\-.]*)://(([a-z0-9._~%!\$&()*+,;=\-]+)?:?([a-z0-9._~%!\$&()*+,;=\-]+)?@)?([a-z0-9._~%\-]+|\[[a-f0-9:.]+\]|\[v[a-f0-9][a-z0-9._~%!\$&()*+,;=:\-]+\])(:[0-9]+)?(/[a-z0-9._~%!\$&()*+,;=:@\-]+)*/?"
set -g @fingers-pattern-3 "([a-z][a-z0-9+\-.]*)://(([a-zA-Z0-9._~%!\$&()*+,;=\-]+)?:?([a-zA-Z0-9._~%!\$&()*+,;=\-]+)?@)?([a-z0-9._~%\-]+|\[[a-f0-9:.]+\]|\[v[a-f0-9][a-z0-9._~%!\$&()*+,;=:\-]+\])(:[0-9]+)?(/[a-zA-Z0-9._~%!\$&()*+,;=:@\-]+)*/?"

set -g @easy-motion-prefix "Space"

Expand Down

0 comments on commit af1abc2

Please sign in to comment.