switch to tmux-printer gawk implementation

This commit is contained in:
Jorge Morante 2017-05-01 10:03:59 +02:00
parent 0a9e0135f1
commit 2b6fe91064
3 changed files with 8 additions and 7 deletions

View File

@ -32,7 +32,7 @@ function set_option() {
}
function process_format () {
echo -e "$($TMUX_PRINTER "$1")\e[0m"
echo -ne "$($TMUX_PRINTER "$1")"
}
PATTERNS_LIST=(
@ -66,10 +66,10 @@ PATTERNS=$(array_join "|" "${PATTERNS_LIST[@]}")
set_option 'fingers-patterns' "$PATTERNS"
set_option 'fingers-compact-hints' 1
set_option 'fingers-copy-command' ""
set_option 'fingers-hint-format' "#[fg=yellow,bold,reverse]%%s" process_format
set_option 'fingers-highlight-format' "#[fg=yellow,bold]%%s" process_format
set_option 'fingers-hint-format-secondary' "#[fg=yellow,bold] [%%s]" process_format
set_option 'fingers-highlight-format-secondary' "#[fg=yellow,bold]%%s" process_format
set_option 'fingers-hint-format' "#[fg=yellow,bold,reverse]%s" process_format
set_option 'fingers-highlight-format' "#[fg=yellow,bold]%s" process_format
set_option 'fingers-hint-format-secondary' "#[fg=yellow,bold] [%s]" process_format
set_option 'fingers-highlight-format-secondary' "#[fg=yellow,bold]%s" process_format
# TODO add fingers_bg
# TODO add fingers_fg

View File

@ -2,7 +2,8 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $CURRENT_DIR/scripts/config.sh
# tmux run-shell does not have color support
tmux new-session -d "$CURRENT_DIR/scripts/config.sh"
DEFAULT_FINGERS_KEY="F"
FINGERS_KEY=$(tmux show-option -gqv @fingers-key)

2
vendor/tmux-printer vendored

@ -1 +1 @@
Subproject commit 6574fdea20746706992b0eb84e2c4e6f5991b14a
Subproject commit b58b8a0fa71853693d767ea0b51331b742597c6f