Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

This package can now be replaced by dired-omit-mode #8

Closed
ai-oleynikov opened this issue Sep 24, 2023 · 5 comments
Closed

This package can now be replaced by dired-omit-mode #8

ai-oleynikov opened this issue Sep 24, 2023 · 5 comments

Comments

@ai-oleynikov
Copy link

(use-package dired
  :bind
  (:map dired-mode-map ("." . dired-omit-mode))
  :config
  (setq dired-omit-files (rx (seq bol ".")))
  ;; To hide dot-files by default
  :hook
  (dired-mode . dired-omit-mode))
@pprevos
Copy link

pprevos commented Jan 30, 2024

You need to activate dired-x first:

(use-package dired
  :ensure nil
  :bind
  (:map dired-mode-map ("." . dired-omit-mode))
  :custom
  (dired-omit-files (rx (seq bol ".")))
  :hook
  (dired-mode . dired-omit-mode)
  :init
  (with-eval-after-load 'dired (require 'dired-x)))

mattiasb added a commit to mattiasb/.emacs.d that referenced this issue Jan 30, 2024
@mattiasb
Copy link
Owner

Sorry had missed this. I actually switched to using dired-omit-mode with this regex now. Thanks!

@mattiasb mattiasb pinned this issue Feb 7, 2024
@mattiasb
Copy link
Owner

I added a deprecation notice. Will make the repository read-only eventually.

@pprevos
Copy link

pprevos commented Jul 28, 2024

A better regex to use is (dired-omit-files "^\\.[a-zA-Z0-9]+"), which retains the single and double dot entries so you can still move up the tree, but hides any filenames.

@mattiasb
Copy link
Owner

You could argue that, but it's subjective. I personally don't use the .. to move up.

The regex I choose matches what this package does which was the goal.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants