kitty terminal的新功能,有点好用 (点击grep搜索结果,直接跳转到编辑器里打开)

调用了ripgrep进行搜索,搜索的结果可以点击(ctrl+shift+鼠标左键), 直接用编辑器 打开文件,并跳转到结果所在行

 ➜ test kitty +kitten hyperlinked_grep flowtable 

m.nft                    //
4: flowtable ff {    //这 2 行是搜索结果

 

   # 点击后,vim打开,cursor在第4行

  

 


配置:创建open-action.conf配置文件,写入以下内容

➜  ~ cat .config/kitty/open-actions.conf 
protocol file
has_fragment yes
action launch --type=overlay vim +$FRAGMENT $FILE_PATH

  

 


 

 

posted @ 2020-09-23 20:50  drelo  阅读(700)  评论(0编辑  收藏  举报