File tree Expand file tree Collapse file tree 4 files changed +73
-14
lines changed Expand file tree Collapse file tree 4 files changed +73
-14
lines changed Original file line number Diff line number Diff line change 3
3
### master
4
4
- if installed use ` gawk ` instead of ` awk ` (@metcalfc )
5
5
- add stored search for matching git SHAs (@jbnicolai )
6
+ - move documentation from github wiki to ` docs/ ` folder
6
7
7
8
### v2.1.0, Jan 01, 2015
8
9
- combine send-keys calls to reduce flickering (@toupeira )
Original file line number Diff line number Diff line change @@ -62,20 +62,6 @@ Copying a highlighted match will take you "out" of copycat mode. Paste with
62
62
Copying highlighted matches can be enhanced with
63
63
[ tmux yank] ( https://github.com/tmux-plugins/tmux-yank ) .
64
64
65
- ### Customization
66
-
67
- Most of the behavior of tmux-copycat can be customized via tmux options.<br />
68
- Check the full options list on
69
- [ the wiki page] ( https://github.com/tmux-plugins/tmux-copycat/wiki/Customizations ) .
70
-
71
- #### Defining new stored searches
72
-
73
- To speed up the workflow you can define new bindings in ` .tmux.conf ` for
74
- searches you use often.
75
-
76
- How to + useful searches
77
- [ in this wiki page] ( https://github.com/tmux-plugins/tmux-copycat/wiki/Defining-new-stored-searches ) .
78
-
79
65
### Limitations
80
66
81
67
- This plugin tries hard to consistently enable "marketed" features. It uses some
@@ -131,6 +117,13 @@ You should now be able to use the plugin.
131
117
Optional (but recommended) install ` gawk ` via your package manager of choice
132
118
for better UTF-8 character support.
133
119
120
+ ### Docs
121
+
122
+ - Most of the behavior of tmux-copycat can be customized via tmux options.
123
+ [ Check out the full options list] ( docs/customizations.md ) .
124
+ - To speed up the workflow you can define new bindings in ` .tmux.conf ` for
125
+ searches you use often, more info [ here] ( docs/defining_new_stored_searches.md )
126
+
134
127
### Other goodies
135
128
136
129
` tmux-copycat ` works great with:
Original file line number Diff line number Diff line change
1
+ # Customizations
2
+
3
+ Most of the behavior of tmux-copycat can be customized via tmux options.<br />
4
+ To set a value, just put ` set -g @option 'value' ` in your ` .tmux.conf ` before
5
+ loading the tmux-copycat plugin.
6
+
7
+ Other options:
8
+
9
+ - ` @copycat_search ` (default ` / ` ) defines the key-binding used (after prefix) to
10
+ start an interactive search.
11
+ - ` @copycat_next ` (default ` n ` ) defines the key (without prefix) used to jump to
12
+ next search result.
13
+ - ` @copycat_prev ` (default ` N ` ) defines the key (without prefix) used to jump to
14
+ previous search result.
15
+
16
+ Options for predefined searches:
17
+
18
+ - ` @copycat_git_special ` (default ` C-g ` ) git status search
19
+ - ` @copycat_file_search ` (default ` C-f ` ) file search
20
+ - ` @copycat_url_search ` (default ` C-u ` ) url search
21
+ - ` @copycat_digit_search ` (default ` C-d ` ) digit search
22
+ - ` @copycat_ip_search ` (default ` M-i ` ) IP address search
23
+
24
+ Example: to remap default file search to use ` C-t ` put
25
+ ` set -g @copycat_file_search 'C-t' ` in ` .tmux.conf ` .
Original file line number Diff line number Diff line change
1
+ # Defining new stored searches
2
+
3
+ To speed up the workflow you can define new bindings in ` .tmux.conf ` for
4
+ searches you use often.
5
+
6
+ After adding any of the below snippets, make sure to reload your tmux
7
+ configuration:
8
+
9
+ # type this in the terminal
10
+ $ tmux source-file ~/.tmux.conf
11
+
12
+ Dummy examples (just for testing):
13
+
14
+ * ` prefix + ctrl-t ` example string search
15
+
16
+ set -g @copycat_search_C-t 'search me'
17
+
18
+ * ` prefix + alt-t ` example regex search
19
+
20
+ set -g @copycat_search_M-t 'regex search[[:alnum:]]\*'
21
+
22
+ ### Useful searches
23
+
24
+ * ` prefix + ctrl-e ` in the Rails log output searches for previous request start
25
+
26
+ set -g @copycat_search_C-e '^Processing[[:space:]]by[[:space:]][^[:space:]]*'
27
+
28
+ * ` prefix + D ` searches for numbers at the * beginning* of line.<br />
29
+ Useful with ` $ pgrep -lf process ` command to quickly select process PID.
30
+
31
+ set -g @copycat_search_D '^[[:digit:]]+'
32
+
33
+ * ` prefix + G ` searches for git commit SHA1.<br />
34
+ Works for both the short (5 chars) and full (40 chars) versions.
35
+
36
+ set -g @copycat_search_G '\b[0-9a-f]{5,40}\b'
37
+
38
+
39
+ Have your own custom search? Please share it in
40
+ [ the discussion] ( https://github.com/tmux-plugins/tmux-copycat/issues/57 ) .
You can’t perform that action at this time.
0 commit comments