Skip to content

Commit e3d3464

Browse files
author
Bruno Sutic
committed
IP address search
1 parent e6acb29 commit e3d3464

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
### master
4+
- add IP address search
45

56
### v1.0.0, Aug 31, 2014
67
- simplify file search stored regex

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Searches are case insensitive.<br/>
3535
- `prefix + ctrl-g` - jumping over *g*it status files (best used after `git status` command)
3636
- `prefix + ctrl-u` - *u*rl search
3737
- `prefix + ctrl-d` - number search (mnemonic d, as digit)
38+
- `prefix + alt-i` - *i*p address search
3839

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

copycat.tmux

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ set_default_stored_searches() {
2727
if stored_search_not_defined "C-d"; then
2828
tmux set-option -g "${COPYCAT_VAR_PREFIX}_C-d" "[[:digit:]]\+"
2929
fi
30+
if stored_search_not_defined "M-i"; then
31+
tmux set-option -g "${COPYCAT_VAR_PREFIX}_M-i" "[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}\.[[:digit:]]\{1,3\}"
32+
fi
3033
}
3134

3235
set_start_bindings() {

0 commit comments

Comments
 (0)