add kitty post

This commit is contained in:
gameloader 2024-11-01 18:17:12 +08:00
parent bf9457def5
commit 1b0e809b5f

20
content/posts/kitty.md Normal file
View File

@ -0,0 +1,20 @@
---
title: 工具经验手册
author: Logic
date: 2024-09-19
categories: [""]
tags: []
draft: false
---
## 快捷键设定
阅读[kitty文档](https://sw.kovidgoyal.net/kitty/actions/)可知可以通过map将某个快捷键绑定为一个或者一系列文档中的actions。如果要执行多个actions可以使用combine在这里我们将cmd+e绑定为打开一个新的kitty tab标签页并执行ssh \*\*<Tab>来使用fzf的ssh补全展开所有的ssh hostname利用fzf来选择要连接的host. 配置文件中的内容如下
```conf
# kitty.conf
# 设置新标签页的快捷键为 Cmd+E
map cmd+e combine | new_tab | send_text normal,application ssh **\t
```