mirror of
https://github.com/wez/wezterm.git
synced 2024-12-29 00:21:57 +03:00
3f7443f4c1
Uses `wezterm show-keys --lua --key-table copy_mode` to dump the actual copy mode key table. Include that in the docs. Same for search_mode.
18 lines
593 B
Bash
Executable File
18 lines
593 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Update files that are derived from things baked into the executable
|
|
|
|
for shell in bash zsh fish ; do
|
|
target/debug/wezterm shell-completion --shell $shell > assets/shell-completion/$shell
|
|
done
|
|
|
|
for mode in copy_mode search_mode ; do
|
|
fname="docs/examples/default-$(echo $mode | tr _ -)-key-table.markdown"
|
|
# Make a wrapped up version of this as markdown, as
|
|
# gelatyx doesn't understand the file include mechanism
|
|
# when used in a lua block
|
|
echo "\`\`\`lua" > $fname
|
|
target/debug/wezterm -n show-keys --lua --key-table $mode >> $fname
|
|
echo "\`\`\`" >> $fname
|
|
done
|