diff --git a/README.md b/README.md index 0c3f038..2844aa1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ Relevant stuff: * File paths * git SHAs -* numbers with 4+ digits +* numbers ( 4+ digits ) +* urls +* ip addresses It also works on copy mode, but requires *tmux 2.2* or newer to properly take the scroll position into account. @@ -67,7 +69,7 @@ set -g @fingers-pattern-1 'yolo' . . . -set -g @fingers-pattern-50 'whatever.*' +set -g @fingers-pattern-50 'whatever' ``` NOTE: patterns are case insensitive, and grep's extended syntax should be used. diff --git a/scripts/config.sh b/scripts/config.sh index da44e67..64ddd6e 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -16,8 +16,10 @@ source "$CURRENT_DIR/utils.sh" PATTERNS_LIST=( "((^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*)" -"([[:digit:]]{5,})" +"([[:digit:]]{4,})" "([0-9a-f]{7}|[0-9a-f]{40})" +"(https?://|git@|git://|ssh://|ftp://|file:///)[[:alnum:]?=%/_.:,;~@!#$&()*+-]*" +"[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}" ) IFS=$'\n'