feat: use yazi as file manager
This commit is contained in:
parent
3049173514
commit
2a73c71067
6 changed files with 28 additions and 11 deletions
6
home/config/yazi/keymap.toml
Normal file
6
home/config/yazi/keymap.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
[manager]
|
||||
|
||||
append_keymap = [{ on = ["<C-n>"], run = '''
|
||||
shell 'ripdrag "$@" -x 2>/dev/null &' --confirm
|
||||
''' }]
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
let
|
||||
configDir = ../config;
|
||||
browser = "firefox-nightly.desktop";
|
||||
in
|
||||
{
|
||||
home.file = {
|
||||
|
|
@ -39,4 +40,12 @@ in
|
|||
source = "${configDir}/yazi";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"text/html" = browser;
|
||||
"application/pdf" = browser;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ let
|
|||
browser = "${prefix} ${firefox}";
|
||||
noOffloadBrowser = "${firefox} -P noOffload";
|
||||
terminal = "${prefix} ghostty";
|
||||
filemanager = "nemo";
|
||||
# filemanager = "nemo";
|
||||
filemanager = "${terminal} -e yazi";
|
||||
scripts = "~/.config/scripts";
|
||||
|
||||
# freezeShot = "--freeze";
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@
|
|||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||
{ import = "lazyvim.plugins.extras.linting.eslint" },
|
||||
{ import = "lazyvim.plugins.extras.ui.alpha" },
|
||||
{ import = "lazyvim.plugins.extras.ui.edgy" },
|
||||
-- { import = "lazyvim.plugins.extras.ui.edgy" },
|
||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
{ import = "lazyvim.plugins.extras.ui.mini-indentscope" },
|
||||
{ import = "lazyvim.plugins.extras.ui.smear-cursor" },
|
||||
|
|
@ -270,14 +270,14 @@
|
|||
formatting = {
|
||||
command = { "nixfmt" },
|
||||
},
|
||||
-- options = {
|
||||
options = {
|
||||
-- nixos = {
|
||||
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.${device-name}.options',
|
||||
-- },
|
||||
-- home_manager = {
|
||||
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options',
|
||||
-- }
|
||||
-- }
|
||||
home_manager = {
|
||||
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."${username}@${device-name}".options',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ in
|
|||
# Dev stuff
|
||||
gcc
|
||||
go
|
||||
nodePackages.pnpm
|
||||
(python3.withPackages (python-pkgs: [
|
||||
python-pkgs.pip
|
||||
python-pkgs.requests
|
||||
|
|
@ -46,6 +45,7 @@ in
|
|||
pkgsCross.mingwW64.stdenv.cc
|
||||
pkgsCross.mingwW64.windows.pthreads
|
||||
postman
|
||||
ripdrag
|
||||
|
||||
# Work stuff
|
||||
libreoffice-qt
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@ in
|
|||
programs = {
|
||||
fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting # Disable greeting
|
||||
|
||||
shellInit = ''
|
||||
# Yazi
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
|
|
@ -19,6 +17,9 @@ in
|
|||
rm -f -- "$tmp"
|
||||
end
|
||||
'';
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting # Disable greeting
|
||||
'';
|
||||
plugins = [
|
||||
{
|
||||
name = "grc";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue