Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Searches are case insensitive.<br/>

- `prefix + ctrl-f` - simple *f*ile search
- `prefix + ctrl-g` - jumping over *g*it status files (best used after `git status` command)
- `prefix + alt-h` - jumping over SHA-1 hashes (best used after `git log` command)
- `prefix + ctrl-a` - jumping over SH*A*-1 h*a*shes (best used after `git log` command)
- `prefix + ctrl-u` - *u*rl search (http, ftp and git urls)
- `prefix + ctrl-d` - number search (mnemonic d, as digit)
- `prefix + alt-i` - *i*p address search
- `prefix + ctrl-i` - *i*p address search

These start "copycat mode" and jump to first match.

Expand Down
4 changes: 2 additions & 2 deletions scripts/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ copycat_url_search_option="@copycat_url_search"
default_digit_search_key="C-d"
copycat_digit_search_option="@copycat_digit_search"

default_hash_search_key="M-h"
default_hash_search_key="C-a"
copycat_hash_search_option="@copycat_hash_search"

default_ip_search_key="M-i"
default_ip_search_key="C-i"
copycat_ip_search_option="@copycat_ip_search"
4 changes: 2 additions & 2 deletions test/helpers/expect_copycat_helpers.exp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ proc tmux_ctrl_g {} {
sleep 0.7
}

proc tmux_alt_h {} {
send "h"
proc tmux_ctrl_a {} {
send ""
sleep 0.7
}

Expand Down
4 changes: 2 additions & 2 deletions test/test_git_hash_search.exp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ enter_test_git_repo
# Match regular SHA-1 hashes
#---------------------------
git_log_reverse
tmux_alt_h
tmux_ctrl_a
assert_highlighted "935929c4c7265666e41e727f97a87d1af00a8b40" "match regular SHA-1 hashes"

#Match shortened SHA-1 hashes
#----------------------------
git_log_reverse_short
tmux_alt_h
tmux_ctrl_a
assert_highlighted "935929c" "match shortened SHA-1 hashes"

# quit
Expand Down