mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
add kitty hyperlinks and shortcuts
This commit is contained in:
parent
362f4a5b8e
commit
da75cf4f71
3 changed files with 21 additions and 1 deletions
|
|
@ -1,3 +1,11 @@
|
|||
kitten_alias hints hints --alphabet [;ajfkdlshgqweruiopzxcvnmbyt12345
|
||||
map ctrl+g>ctrl+g kitten hints --type=hyperlink
|
||||
map ctrl+g>ctrl+n kitten hints --type=linenum nvim +{line} {path}
|
||||
map ctrl+g>ctrl+l kitten hints --type=line --program -
|
||||
map ctrl+g>ctrl+w kitten hints --type=word --program -
|
||||
map ctrl+g>ctrl+u kitten hints --type=url --program -
|
||||
map ctrl+g>ctrl+i kitten hints --type=ip --program -
|
||||
|
||||
font_size 15.0
|
||||
|
||||
symbol_map U+3400-U+4DBF,U+4E00-U+9FFC Noto Sans Mono CJK SC
|
||||
|
|
|
|||
11
.config/kitty/open-actions.conf
Normal file
11
.config/kitty/open-actions.conf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
protocol file
|
||||
mime text/*
|
||||
action launch --type=overlay ${EDITOR} ${FILE_PATH}
|
||||
|
||||
protocol file
|
||||
fragment_matches [0-9]+
|
||||
action launch --type=overlay ${EDITOR} +${FRAGMENT} ${FILE_PATH}
|
||||
|
||||
protocol file
|
||||
mime image/*
|
||||
action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH}
|
||||
|
|
@ -193,7 +193,7 @@ GIT_PS1_DESCRIBE_STYLE="default"
|
|||
# sudo后面的命令可以是别名
|
||||
alias sudo='sudo '
|
||||
# 设置命令默认行为
|
||||
alias ls='ls --color=auto --time-style=iso --human-readable'
|
||||
alias ls='ls --color=auto --time-style=iso --human-readable --hyperlink=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias diff='diff --color=auto'
|
||||
alias mv='mv -i'
|
||||
|
|
@ -217,6 +217,7 @@ alias py='python' && compdef py=python
|
|||
alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' && compdef config=git
|
||||
alias config.edit='GIT_DIR=$HOME/.myconf GIT_WORK_TREE=$HOME nvim' && compdef config.edit=nvim
|
||||
alias ssh='kitty +kitten ssh'
|
||||
alias rg='kitty +kitten hyperlinked_grep'
|
||||
alias mountdisk="mount | grep -E '^(/dev/sd|/dev/nvme|/dev/mmcblk|gvfsd-fuse)' | awk '{print \$1 \"\t\" \$5 \"\t\" \$3 \"\n\t\t\" \$6}'"
|
||||
# >>>-----------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue