-
Notifications
You must be signed in to change notification settings - Fork 60
Defining new stored searches
bruno- edited this page Nov 21, 2014
·
11 revisions
To speed up the workflow you can define new bindings in .tmux.conf
for
searches you use often.
After adding any of the below snippets, make sure to reload your tmux configuration:
# type this in the terminal
$ tmux source-file ~/.tmux.conf
Dummy examples:
-
prefix + ctrl-t
searches for "search me" stringset -g @copycat_search_C-t 'search me'
-
prefix + alt-t
searches for defined regexset -g @copycat_search_M-t 'regex search[[:alnum:]]\*'
Useful searches:
-
prefix + ctrl-e
in the Rails log output searches for previous request startset -g @copycat_search_C-e '^Processing[[:space:]]by[[:space:]][^[:space:]]*'
-
prefix + D
searches for numbers at the beginning of line. Useful with$ pgrep -lf process
command to quickly select process PID.set -g @copycat_search_D '^[[:digit:]]+'