<commit_before>{ pkgs, config, ... }:

{
  xdg.configFile.rangerConfig = {
    target = "ranger/rc.conf";
    text = ''
      map DD shell trash %s
      set vcs_aware true
      set draw_borders true
    '';
  };

  xdg.configFile.rangerRifle = {
    target = "ranger/rifle.conf";
    text = ''
      ext gpg, label editor = "nvim" -- "$@"
      ext pdf, has zathura, X, flag f = zathura -- "$@"
      ext djvu, has zathura, X, flag f = zathura -- "$@"
      ext epub, has zathura, X, flag f = zathura -- "$@"
      ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
      ext txt, label editor = nvim -- "$@"
      ext tex, label editor = nvim -- "$@"
      ext asc, label editor = nvim -- "$@"
      ext md, label editor = nvim -- "$@"
      ext markdown, label editor = nvim -- "$@"
      ext rst, label editor = nvim -- "$@"
      ext x?html?, has firefox, X, flag f = firefox -- "$@"
      mime ^image, has sxiv, X, flag f = sxiv -a -- "$@"
      mime ^video|audio, has vlc, X, flag f = "${pkgs.vlc}/bin/vlc" -- "$@"
      mime ^text, label editor = nvim -- "$@"
      mime ^text, label pager = "$PAGER" -- "$@"
    '';
  };

}<commit_msg>Use atool to extract archives in ranger<commit_after>{ pkgs, config, ... }:

{
  xdg.configFile.rangerConfig = {
    target = "ranger/rc.conf";
    text = ''
      map DD shell trash %s
      set vcs_aware true
      set draw_borders true
    '';
  };

  xdg.configFile.rangerRifle = {
    target = "ranger/rifle.conf";
    text = ''
      ext gpg, label editor = "nvim" -- "$@"
      ext pdf, has zathura, X, flag f = zathura -- "$@"
      ext djvu, has zathura, X, flag f = zathura -- "$@"
      ext epub, has zathura, X, flag f = zathura -- "$@"
      ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
      ext txt, label editor = nvim -- "$@"
      ext tex, label editor = nvim -- "$@"
      ext asc, label editor = nvim -- "$@"
      ext md, label editor = nvim -- "$@"
      ext markdown, label editor = nvim -- "$@"
      ext rst, label editor = nvim -- "$@"
      ext x?html?, has firefox, X, flag f = firefox -- "$@"
      ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,  has atool = atool --extract --each -- "$@"
      ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@"
      mime ^image, has sxiv, X, flag f = sxiv -a -- "$@"
      mime ^video|audio, has vlc, X, flag f = "${pkgs.vlc}/bin/vlc" -- "$@"
      mime ^text, label editor = nvim -- "$@"
      mime ^text, label pager = "$PAGER" -- "$@"
    '';
  };

}
{'fraction_non_alphanumeric': 0.18779527559055118, 'fraction_numerical': 0.0007874015748031496, 'mean_word_length': 2.0762711864406778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2328088', 'n_tokens_mistral': 999, 'n_tokens_neox': 930, 'n_words': 268}