zed and helix theme update, kitty add more actions
This commit is contained in:
parent
d4f463f258
commit
5b5336952d
3 changed files with 35 additions and 5 deletions
2
home.nix
2
home.nix
|
@ -175,7 +175,7 @@
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "tokyonight";
|
theme = "gruvbox_dark_hard";
|
||||||
editor.file-picker.hidden = false;
|
editor.file-picker.hidden = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,9 +2,39 @@
|
||||||
# by the hyperlink-grep kitten and nothing else so far.
|
# by the hyperlink-grep kitten and nothing else so far.
|
||||||
protocol file
|
protocol file
|
||||||
fragment_matches [0-9]+
|
fragment_matches [0-9]+
|
||||||
action launch --type=overlay --cwd=current vim +${FRAGMENT} -- ${FILE_PATH}
|
action launch --type=overlay --cwd=current hx +${FRAGMENT} -- ${FILE_PATH}
|
||||||
|
|
||||||
# Open text files without fragments in the editor
|
# Open text files without fragments in the editor
|
||||||
protocol file
|
protocol file
|
||||||
mime text/*
|
ext txt,md,conf,ini,log,sh,py,js,html,css,xml,json,yaml,yml,scala,sbt,java,go,py,toml,sql,swift,nix,lua
|
||||||
action launch --type=overlay --cwd=current -- ${EDITOR} -- ${FILE_PATH}
|
action launch --type=overlay --cwd=current -- hx -- ${FILE_PATH}
|
||||||
|
|
||||||
|
# Open any image in the full kitty window by clicking on it
|
||||||
|
protocol file
|
||||||
|
mime image/*
|
||||||
|
action launch --type=overlay kitten icat --hold -- ${FILE_PATH}
|
||||||
|
|
||||||
|
# Tail a log file (*.log) in a new OS Window and reduce its font size
|
||||||
|
protocol file
|
||||||
|
ext log
|
||||||
|
action launch --title ${FILE} --type=os-window tail -f -- ${FILE_PATH}
|
||||||
|
action change_font_size current -2
|
||||||
|
|
||||||
|
# Open script files
|
||||||
|
protocol file
|
||||||
|
ext sh,command,tool
|
||||||
|
action launch --hold --type=os-window kitty +shebang $FILE_PATH $SHELL
|
||||||
|
|
||||||
|
# Open shell specific script files
|
||||||
|
protocol file
|
||||||
|
ext fish,bash,zsh
|
||||||
|
action launch --hold --type=os-window kitty +shebang $FILE_PATH __ext__
|
||||||
|
|
||||||
|
# Open directories
|
||||||
|
protocol file
|
||||||
|
mime inode/directory
|
||||||
|
action launch --type=os-window --cwd -- $FILE_PATH
|
||||||
|
|
||||||
|
# Open ssh URLs with ssh command
|
||||||
|
protocol ssh
|
||||||
|
action launch --type=os-window ssh -- $URL
|
||||||
|
|
|
@ -59,7 +59,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
telemetry.metrics = false;
|
telemetry.metrics = false;
|
||||||
theme = "Gruvbox Dark";
|
theme = "Gruvbox Dark Hard";
|
||||||
vim_mode = true;
|
vim_mode = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue