parent
44e64ef028
commit
73e71df821
@ -1,70 +1,72 @@ |
|||||||
{pkgs, ...}: |
{ pkgs, ... }: |
||||||
{ |
{ |
||||||
# stolen from: https://github.com/leoperegrino/.files/blob/d996b31a0b1843f05d0f27123196bfa6d0980caa/home-manager/modules/ranger.nix |
# stolen from: https://github.com/leoperegrino/.files/blob/d996b31a0b1843f05d0f27123196bfa6d0980caa/home-manager/modules/ranger.nix |
||||||
programs.ranger = { |
programs.ranger = { |
||||||
enable = true; |
enable = true; |
||||||
extraPackages = [ |
extraPackages = [ |
||||||
pkgs.ueberzugpp |
pkgs.ueberzugpp |
||||||
]; |
]; |
||||||
extraConfig = "default_linemode devicons"; |
extraConfig = "default_linemode devicons"; |
||||||
plugins = [{ |
plugins = [ |
||||||
name = "devicons"; |
{ |
||||||
src = builtins.fetchGit { |
name = "devicons"; |
||||||
url = "https://github.com/alexanderjeurissen/ranger_devicons.git"; |
src = builtins.fetchGit { |
||||||
rev = "a8d626485ca83719e1d8d5e32289cd96a097c861"; |
url = "https://github.com/alexanderjeurissen/ranger_devicons.git"; |
||||||
}; |
rev = "a8d626485ca83719e1d8d5e32289cd96a097c861"; |
||||||
}]; |
}; |
||||||
settings = { |
} |
||||||
preview_images_method = "ueberzug"; |
]; |
||||||
show_hidden = true; |
settings = { |
||||||
use_preview_script = true; |
preview_images_method = "ueberzug"; |
||||||
preview_images = true; |
show_hidden = true; |
||||||
preview_files = true; |
use_preview_script = true; |
||||||
open_all_images = true; |
preview_images = true; |
||||||
draw_borders = true; |
preview_files = true; |
||||||
hidden_filter = ''^\.|\.(bak|swp)$|^lost\+found$|^__pycache__$''; |
open_all_images = true; |
||||||
nested_ranger_warning = true; |
draw_borders = true; |
||||||
colorscheme = "jungle"; |
hidden_filter = ''^\.|\.(bak|swp)$|^lost\+found$|^__pycache__$''; |
||||||
}; |
nested_ranger_warning = true; |
||||||
# mappings = { |
colorscheme = "jungle"; |
||||||
# "gu" = "cd ~/.local/share"; |
}; |
||||||
# "gs" = "cd ~/.local/state"; |
# mappings = { |
||||||
# "gf" = "cd ~/.files"; |
# "gu" = "cd ~/.local/share"; |
||||||
# "gV" = "cd ~/.files/nvim/lua/user/"; |
# "gs" = "cd ~/.local/state"; |
||||||
# "gc" = "cd ~/.config"; |
# "gf" = "cd ~/.files"; |
||||||
# "gC" = "cd ~/.cache"; |
# "gV" = "cd ~/.files/nvim/lua/user/"; |
||||||
# "gb" = "cd ~/bin"; |
# "gc" = "cd ~/.config"; |
||||||
# "gD" = "cd ~/desktop"; |
# "gC" = "cd ~/.cache"; |
||||||
# "gd" = "cd ~/documents"; |
# "gb" = "cd ~/bin"; |
||||||
# "gm" = "cd ~/music"; |
# "gD" = "cd ~/desktop"; |
||||||
# "gp" = "cd ~/pictures"; |
# "gd" = "cd ~/documents"; |
||||||
# "gv" = "cd ~/videos"; |
# "gm" = "cd ~/music"; |
||||||
# "gU" = "cd /usr/share/"; |
# "gp" = "cd ~/pictures"; |
||||||
# "gr" = "cd /"; |
# "gv" = "cd ~/videos"; |
||||||
# "gt" = "cd /tmp"; |
# "gU" = "cd /usr/share/"; |
||||||
# "g/r" = "shell sudo ranger ."; |
# "gr" = "cd /"; |
||||||
|
# "gt" = "cd /tmp"; |
||||||
|
# "g/r" = "shell sudo ranger ."; |
||||||
|
|
||||||
# "ev" = ''shell "''${EDITOR}" -- %s''; |
# "ev" = ''shell "''${EDITOR}" -- %s''; |
||||||
# "eV" = ''console shell "''${EDITOR}" --%space''; |
# "eV" = ''console shell "''${EDITOR}" --%space''; |
||||||
# "et" = ''shell "''${EDITOR}" -p -- %s''; |
# "et" = ''shell "''${EDITOR}" -p -- %s''; |
||||||
# "eT" = ''console shell "''${EDITOR}" -p -- %s%space''; |
# "eT" = ''console shell "''${EDITOR}" -p -- %s%space''; |
||||||
# "es" = ''shell "''${EDITOR}" -O -- %s''; |
# "es" = ''shell "''${EDITOR}" -O -- %s''; |
||||||
# "eS" = ''console shell "''${EDITOR}" -O -- %s%space''; |
# "eS" = ''console shell "''${EDITOR}" -O -- %s%space''; |
||||||
# "EV" = ''shell sudo "''${EDITOR}" -- %s''; |
# "EV" = ''shell sudo "''${EDITOR}" -- %s''; |
||||||
# "V" = ''shell setsid -f alacritty -e zsh -ic "''${EDITOR} -- %s"''; |
# "V" = ''shell setsid -f alacritty -e zsh -ic "''${EDITOR} -- %s"''; |
||||||
# "B" = ''shell setsid -f alacritty -e zsh -ic "''${PAGER} -- %s"''; |
# "B" = ''shell setsid -f alacritty -e zsh -ic "''${PAGER} -- %s"''; |
||||||
# "<c-o>" = "console touch%space"; |
# "<c-o>" = "console touch%space"; |
||||||
|
|
||||||
# "CC" = "get_cumulative_size"; |
# "CC" = "get_cumulative_size"; |
||||||
# "md" = "console mkdir%space"; |
# "md" = "console mkdir%space"; |
||||||
# "cW" = "bulkrename"; |
# "cW" = "bulkrename"; |
||||||
# "i" = ''shell "''${PAGER}" -- %f''; |
# "i" = ''shell "''${PAGER}" -- %f''; |
||||||
# "v" = "mark_files all=True toggle=True"; |
# "v" = "mark_files all=True toggle=True"; |
||||||
# "n" = "tab_new"; |
# "n" = "tab_new"; |
||||||
# "b" = ''shell setsid -f "''${TERM}"''; |
# "b" = ''shell setsid -f "''${TERM}"''; |
||||||
# "f" = "console scout -ftse%space"; |
# "f" = "console scout -ftse%space"; |
||||||
# "<c-j>" = "scroll_preview 1"; |
# "<c-j>" = "scroll_preview 1"; |
||||||
# "<c-k>" = "scroll_preview -1"; |
# "<c-k>" = "scroll_preview -1"; |
||||||
# }; |
# }; |
||||||
}; |
}; |
||||||
} |
} |
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue