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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
# # until tmux >= 3.0, output of tmux list-keys can't be consumed back by tmux source-file without applying some escapings
|
||||||
# awk < "$cfg" \
|
# 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
|
# # ignore bindings with errors
|
||||||
# while ! out=$(tmux source-file "$cfg"); do
|
# while ! out=$(tmux source-file "$cfg"); do
|
||||||
# line=$(printf "%s" "$out" | cut -d':' -f2)
|
# 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
|
# done
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue