<commit_before>;;; tool-dired.el --- Directory edit -*- lexical-binding: t; -*-

;;; Commentary:
;; Directory based operations.

;;; Code:

(eval-when-compile
  (require 'base-vars)
  (require 'base-package)
  (require 'base-keybinds))

;;;
;; Packages

(req-package dired :ensure nil
  :hook
  (dired-mode . hl-line-mode)
  (dired-mode . +dired-mode-faces)
  :preface
  (defun +dired-mode-faces ()
    (face-remap-add-relative 'hl-line
                             :background (face-background 'isearch)))
  :general
  (:keymaps 'dired-mode-map
            :major-modes t
            :states 'motion
            "RET" 'dired-find-file
            "/" 'counsel-grep-or-swiper
            "?" 'counsel-grep-or-swiper
            "i" 'dired-toggle-read-only
            "gi" 'dired-maybe-insert-subdir)<commit_msg>tool: hide dired details by default<commit_after>;;; tool-dired.el --- Directory edit -*- lexical-binding: t; -*-

;;; Commentary:
;; Directory based operations.

;;; Code:

(eval-when-compile
  (require 'base-vars)
  (require 'base-package)
  (require 'base-keybinds))

;;;
;; Packages

(req-package dired :ensure nil
  :hook
  (dired-mode . hl-line-mode)
  (dired-mode . +dired-mode-faces)
  (dired-mode . dired-hide-details-mode)
  :preface
  (defun +dired-mode-faces ()
    (face-remap-add-relative 'hl-line
                             :background (face-background 'isearch)))
  :general
  (:keymaps 'dired-mode-map
            :major-modes t
            :states 'motion
            "RET" 'dired-find-file
            "/" 'counsel-grep-or-swiper
            "?" 'counsel-grep-or-swiper
            "i" 'dired-toggle-read-only
            "gi" 'dired-maybe-insert-subdir)
{'fraction_non_alphanumeric': 0.16004742145820983, 'fraction_numerical': 0.0, 'mean_word_length': 2.209125475285171, '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': '187947', 'n_tokens_mistral': 611, 'n_tokens_neox': 589, 'n_words': 108}