yazi and lots of stuff
This commit is contained in:
parent
7b26c73b59
commit
995a7247ed
72 changed files with 8598 additions and 71 deletions
|
@ -6,14 +6,71 @@
|
|||
package = inputs.yazi.packages.x86_64-linux.default;
|
||||
initLua = ../../homes/emenel/dotfiles/dot_config/yazi/init.lua;
|
||||
keymap = {
|
||||
input.prepend_keymap = [
|
||||
{ on = "<C-d>"; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; }
|
||||
manager.prepend_keymap = [
|
||||
{ on = ["c" "d"]; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; desc = "drag selection";}
|
||||
{ on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; }
|
||||
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; }
|
||||
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; desc = "go to top of git repo"; }
|
||||
{ on = ["t" "p"]; run = "plugin toggle-view parent"; desc = "Toggle parent"; }
|
||||
{ on = ["t" "c"]; run = "plugin toggle-view current"; desc = "Toggle current"; }
|
||||
{ on = ["t" "r"]; run = "plugin toggle-view preview"; desc = "Toggle preview"; }
|
||||
{ on = "<C-t>"; run ="tab_create"; }
|
||||
{ on = "<C-w>"; run ="tab_close"; }
|
||||
{ on = "<C-A-right>"; run ="tab_switch 1 --relative"; }
|
||||
{ on = "<C-A-left>"; run ="tab_switch -1 --relative"; }
|
||||
{ on = "<Tab>"; run = "spot"; desc = "Spot hovered file"; }
|
||||
{ on = "M"; run = "plugin mount"; }
|
||||
{ on = "p"; run = "plugin smart-paste"; desc = "Paste into the hovered directory or CWD"; }
|
||||
{ on = "<Esc>"; run = "close"; desc = "cancel input"; }
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
manager = {
|
||||
sort_dir_first = false;
|
||||
};
|
||||
opener = {
|
||||
edit = [
|
||||
{ run = "em \"$@\""; }
|
||||
];
|
||||
extract = [
|
||||
{ run = "ouch d -y \"%*\""; desc = "Extract here with ouch"; for = "windows"; }
|
||||
{ run = "ouch d -y \"$@\""; desc = "Extract here with ouch"; for = "unix"; }
|
||||
];
|
||||
};
|
||||
plugin = {
|
||||
append_previewers = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
{ name = "*.md"; run = "glow"; }
|
||||
{ mime = "{image,audio,video}/*"; run = "mediainfo";}
|
||||
{ mime = "application/x-subrip"; run = "mediainfo";}
|
||||
|
||||
# Archive previewer
|
||||
{ mime = "application/*zip"; run = "ouch"; }
|
||||
{ mime = "application/x-tar"; run = "ouch"; }
|
||||
{ mime = "application/x-bzip2"; run = "ouch"; }
|
||||
{ mime = "application/x-7z-compressed"; run = "ouch"; }
|
||||
{ mime = "application/x-rar"; run = "ouch"; }
|
||||
{ mime = "application/x-xz"; run = "ouch"; }
|
||||
];
|
||||
append_spotters = [
|
||||
{ name = "*"; run = "file-extra-metadata"; }
|
||||
];
|
||||
prepend_fetchers = [
|
||||
{
|
||||
id = "git";
|
||||
name = "*";
|
||||
run = "git";
|
||||
}
|
||||
{
|
||||
id = "git";
|
||||
name = "*/";
|
||||
run = "git";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile."yazi/theme.toml".source = ../../homes/emenel/dotfiles/dot_config/yazi/theme.toml;
|
||||
xdg.configFile."yazi/flavors".source = ../../homes/emenel/dotfiles/dot_config/yazi/flavors;
|
||||
xdg.configFile."yazi/plugins".source = ../../homes/emenel/dotfiles/dot_config/yazi/plugins;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue