惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
罗磊的独立博客
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
F
Fortinet All Blogs
A
About on SuperTechFans
腾讯CDC
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
IT之家
IT之家
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
宝玉的分享
宝玉的分享
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
T
Tailwind CSS Blog
The Cloudflare Blog
Hugging Face - Blog
Hugging Face - Blog

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Kitty Terminal Config on Mac
2020-05-05 · via jdhao's digital space
Changelog
  • 2021-08-21: Update the part on how to open URLs since some options are removed.

Kitty is a fast and lightweight terminal emulator for Mac and Linux. In this post, I will summarize some of its settings.

We can download the kitty binary release from its GitHub release page. After installation, its config file is located at $HOME/.config/kitty/kitty.conf.

How to copy and paste in Kitty terminal?#

By default, to copy selected text to clipboard in Kitty, use the shortcut Ctrl+ Shift + C. To paste selected text, we can use mouse middle click.

We can also edit the Kitty config and add more shortcut for copy-pasting:

map cmd+c        copy_to_clipboard
map cmd+v        paste_from_clipboard
map shift+insert paste_from_clipboard

Most terminal emulators have this nice feature to copy the selected text to clipboard automatically. In Kitty, we can also do this by enabling the following option:

How to open URLs?#

Iterm2 has a feature to open a URL in default browser if you press Ctrl and click the URL link. In kitty, you can press Ctrl + Shift and then click the left mouse to open a URL.

If you are using the lastest version of Kitty (tested on kitty 0.23), you can also add the following kitty config:

mouse_map ctrl+left press ungrabbed,grabbed mouse_click_url

Tab configuration#

By default, Kitty will show tab when tab number is above 1. The tab will be shown at the bottom of Kitty window. To change this behaviour, use the following setting:

Use option as alt key#

By default, Option + LETTER will input the corresponding Unicode characters on macOS. So any shortcut starting with Option can not work properly. To use Option as Alt, use the following config:

More documentation here.

How to change color schemes?#

Kitty uses a list of colors for setting the color scheme. Unlike iterm2, we need to manually change the color config inside kitty.conf.

We can find a lot of color schemes or themes for Kitty on GitHub. To use these color themes, just copy the color definition to your Kitty config.

This repo also has a lot of Kitty themes for you to choose.

References#