rydesun/.config/kitty/kitty.conf
2025-02-07 18:28:51 +08:00

68 lines
1.8 KiB
INI
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# {{{ 主题
include themes/everforest.conf
font_size 10
background_opacity 0.95
# 关闭响铃声音
enable_audio_bell no
# 不在系统窗口上报警
window_alert_on_bell no
# 下划线位置(偏下)
modify_font underline_position 1
# Unicode PUA使用Nerd font会覆盖来自其他字体的字形
symbol_map U+E000-U+F8FF Symbols Nerd Font
# }}}
# {{{ Scrollback
# 可回滚的行数默认值为2000
scrollback_lines 20000
# 使用nvim作为pager需要搭配neovim配置
# https://github.com/rydesun/neovim-config/blob/master/init.lua#L4
scrollback_pager sh -c "exec nvim 63<&0 </dev/null --cmd 'let termcat=63'"
# }}}
# {{{ 按键
# 查看所有按键
map kitty_mod+f2 kitten scripts/list_keys.py
### ctrl+shift组滚屏(可连续击键)
map kitty_mod+f scroll_page_down
map kitty_mod+b scroll_page_up
### ctrl+t组标签页和窗口
map ctrl+t>ctrl+n new_tab
map ctrl+t>ctrl+d detach_tab
map ctrl+t>ctrl+m detach_tab ask
### ctrl+g组按hints操作文本
kitten_alias hints hints --alphabet ;ajfkdlshgqweruiopzxcvnmtby1230[
#### 插入
map ctrl+g>ctrl+w kitten hints --type=word --program -
map ctrl+g>ctrl+l kitten hints --type=line --program -
#### 复制
map ctrl+g>w kitten hints --type=word --program @
map ctrl+g>l kitten hints --type=line --program @
map ctrl+g>u kitten hints --type=url --program @
#### 打开hyperlink (受open-actions.conf控制)
map ctrl+g>ctrl+o kitten hints --type=hyperlink
#### 打开URL文本
map ctrl+g>ctrl+u kitten hints --type=url
#### NOTE: hyperlink和URL文本是不同的东西
#### 用goldendict查询单词
map ctrl+g>ctrl+q kitten hints --type=word --program goldendict
#### 高亮指定文本
map ctrl+g>ctrl+m create_marker
map ctrl+g>shift+m remove_marker
# 其他hints使用默认的快捷键ctrl+shift+p和ctrl+shift+e
# }}}
# vim: foldmethod=marker