feat: wezterm config and docs generator

This commit is contained in:
2024-08-10 13:02:41 +03:00
parent 41024b1eb5
commit e7cda5ac0c
4 changed files with 348 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Create file containing key mappings for wezterm
# Usage: ./create-wezterm-keymaps.sh
#
# shellcheck source=shared.sh
source "${DOTFILES}/config/shared.sh"
DEST="$HOME/.dotfiles/docs/wezterm-keybindings.md"
main()
{
msg "Generating wezterm keybindings documentation"
{
printf "# wezterm keybindings\n\n"
printf "\`\`\`txt\n"
} > "$DEST"
wezterm show-keys >> "$DEST"
printf "\`\`\`\n\n- Generated on %s\n" "$(date)" >> "$DEST"
msg "wezterm keybindings documentation generated at $DEST"
}
main "$@"