tmux-plugins / tpm

Tmux Plugin Manager
MIT License
11.9k stars 417 forks source link

add warning about GREP_OPTIONS #202

Open nrolland opened 3 years ago

nrolland commented 3 years ago

It might be a good idea to warn about GREP_OPTIONS. With export GREP_OPTIONS='--color=always' the bindings can't be defined, as ANSI color code gets tangled in the output of greps used internally.

11:01: /dev/ttys000 key ~: show-messages                                                                                                                                                                             [859/859]
11:01: /dev/ttys000 key Escape: send-keys -X cancel
11:01: client-32465 command: run-shell "echo 'Done, press ESCAPE to continue.'"
11:01: client-32463 command: run-shell "echo ''"
11:01: client-32461 command: run-shell "echo 'TMUX environment reloaded.'"
11:01: client-32459 command: run-shell "echo ''"
11:01: client-32457 command: show-options -gw mode-keys
11:01: client-32455 message: unknown key: [01;31m[K@sidebar-key-[m[KTab
11:01: client-32455 command: bind-key "\033[01;31m\033[K@sidebar-key-\033[m\033[KTab" run-shell "/Users/nrolland/.tmux/plugins/tmux-sidebar/scripts/toggle.sh '' '#{pane_id}'"
11:01: client-32454 command: show-options -gqv "\033[01;31m\033[K@sidebar-key-\033[m\033[KTab"
11:01: client-32447 message: unknown key: [01;31m[K@sidebar-key-[m[KBspace
11:01: client-32447 command: bind-key "\033[01;31m\033[K@sidebar-key-\033[m\033[KBspace" run-shell "/Users/nrolland/.tmux/plugins/tmux-sidebar/scripts/toggle.sh '' '#{pane_id}'"
11:01: client-32446 command: show-options -gqv "\033[01;31m\033[K@sidebar-key-\033[m\033[KBspace"
11:01: client-32435 command: show-options -g
11:01: client-32433 command: set-option -gq @sidebar-key-Bspace "tree | sh -c \"LESS= less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS\",left,40,focus"
11:01: client-32432 command: set-option -gq @sidebar-key-Tab "tree | sh -c \"LESS= less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS\",left,40"
11:01: client-32431 command: show-options -gqv @sidebar-tree-width
11:01: client-32428 command: show-options -gqv @sidebar-tree-position
11:01: client-32425 command: show-options -gqv @sidebar-tree-pager
11:01: client-32422 command: show-options -gqv @sidebar-tree-focus
11:01: client-32419 command: show-options -gqv @sidebar-tree
11:01: client-32416 command: show-options -gqv @sidebar-tree-command
11:01: client-32389 command: show-options -gqv @tpm_plugins
11:01: client-32389 command: start-server