Skip to content

Commit 3289718

Browse files
authored
Merge pull request #131 from Mic92/master
Also match sha256
2 parents bcb40ac + 81f0601 commit 3289718

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Searches are case insensitive.<br/>
3535

3636
- `prefix + ctrl-f` - simple *f*ile search
3737
- `prefix + ctrl-g` - jumping over *g*it status files (best used after `git status` command)
38-
- `prefix + alt-h` - jumping over SHA-1 hashes (best used after `git log` command)
38+
- `prefix + alt-h` - jumping over SHA-1/SHA-256 hashes (best used after `git log` command)
3939
- `prefix + ctrl-u` - *u*rl search (http, ftp and git urls)
4040
- `prefix + ctrl-d` - number search (mnemonic d, as digit)
4141
- `prefix + alt-i` - *i*p address search

copycat.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set_default_stored_searches() {
2424
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${digit_search}" "[[:digit:]]+"
2525
fi
2626
if stored_search_not_defined "$hash_search"; then
27-
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${hash_search}" "\b[0-9a-f]{7,40}\b"
27+
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${hash_search}" "\b([0-9a-f]{7,40}|[[:alnum:]]{52}|[0-9a-f]{62})\b"
2828
fi
2929
if stored_search_not_defined "$ip_search"; then
3030
tmux set-option -g "${COPYCAT_VAR_PREFIX}_${ip_search}" "[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}"

0 commit comments

Comments
 (0)