rewrote _apply_bindings() to support new tmux 3.0 bindings (3)
reading and writing to the modified list-keys' output gave the illusion it worked
This commit is contained in:
parent
92ed649597
commit
1cf813fa8b
|
@ -744,12 +744,12 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
|
|||
#
|
||||
# # until tmux >= 3.0, output of tmux list-keys can't be consumed back by tmux source-file without applying some escapings
|
||||
# awk < "$cfg" \
|
||||
# '{i = $2 == "-T" ? 4 : 5; gsub(/^[;]$/, "\\\\&", $i); gsub(/^[$"#~]$/, "'"'"'&'"'"'", $i); gsub(/^['"'"']$/, "\"&\"", $i); print}' > "$cfg"
|
||||
# '{i = $2 == "-T" ? 4 : 5; gsub(/^[;]$/, "\\\\&", $i); gsub(/^[$"#~]$/, "'"'"'&'"'"'", $i); gsub(/^['"'"']$/, "\"&\"", $i); print}' > "$cfg.in"
|
||||
#
|
||||
# # ignore bindings with errors
|
||||
# while ! out=$(tmux source-file "$cfg"); do
|
||||
# line=$(printf "%s" "$out" | cut -d':' -f2)
|
||||
# perl -n -i -e "if ($. != $line) { print }" "$cfg"
|
||||
# perl -n -i -e "if ($. != $line) { print }" "$cfg.in"
|
||||
# done
|
||||
# }
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue