Skip to content

Commit c69443d

Browse files
author
Bruno Sutic
committed
Move docs from github wiki to 'docs/' directory
1 parent f58ce63 commit c69443d

File tree

4 files changed

+73
-14
lines changed

4 files changed

+73
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### master
44
- if installed use `gawk` instead of `awk` (@metcalfc)
55
- add stored search for matching git SHAs (@jbnicolai)
6+
- move documentation from github wiki to `docs/` folder
67

78
### v2.1.0, Jan 01, 2015
89
- combine send-keys calls to reduce flickering (@toupeira)

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,6 @@ Copying a highlighted match will take you "out" of copycat mode. Paste with
6262
Copying highlighted matches can be enhanced with
6363
[tmux yank](https://github.com/tmux-plugins/tmux-yank).
6464

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-
7965
### Limitations
8066

8167
- 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.
131117
Optional (but recommended) install `gawk` via your package manager of choice
132118
for better UTF-8 character support.
133119

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+
134127
### Other goodies
135128

136129
`tmux-copycat` works great with:

docs/customizations.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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`.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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).

0 commit comments

Comments
 (0)