mirror of
https://github.com/rydesun/dotfiles.git
synced 2026-07-16 22:16:11 +08:00
Update kitty config
This commit is contained in:
parent
75ae9af916
commit
9860cd648e
2 changed files with 16 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ allow_remote_control socket-only
|
|||
listen_on unix:/tmp/kitty
|
||||
|
||||
# {{{ 主题
|
||||
font_size 10
|
||||
font_size 15
|
||||
background_opacity 0.95
|
||||
|
||||
# 关闭响铃声音
|
||||
|
|
|
|||
|
|
@ -1,19 +1,22 @@
|
|||
# 新窗口打开目录
|
||||
protocol file
|
||||
mime inode/directory
|
||||
action launch --type=os-window --cwd "$FILE_PATH"
|
||||
|
||||
protocol file
|
||||
mime image/*
|
||||
action launch --type=overlay kitten icat --hold "$FILE_PATH"
|
||||
|
||||
# 用桌面应用打开
|
||||
protocol file
|
||||
mime video/*, audio/*, application/*, text/html
|
||||
action launch --type=background kde-open "$FILE_PATH"
|
||||
|
||||
# 编辑带行号的文件
|
||||
protocol file
|
||||
fragment_matches [0-9]+
|
||||
action launch --type=overlay $EDITOR +$FRAGMENT "$FILE_PATH"
|
||||
|
||||
# 在浏览器中打开html
|
||||
# 编辑任意文件
|
||||
protocol file
|
||||
mime text/html
|
||||
action launch --type=background xdg-open "$FILE_PATH"
|
||||
|
||||
# 编辑文本文件
|
||||
protocol file
|
||||
mime text/*
|
||||
action launch --type=overlay $EDITOR "$FILE_PATH"
|
||||
|
||||
# 在tab中查看图片
|
||||
protocol file
|
||||
mime image/*
|
||||
action launch --type=tab kitty +kitten icat --hold "$FILE_PATH"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue