Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

using dired-narrow changes the keybindings of "s" to dired-narrow-regexp #181

Open
fab6 opened this issue Mar 23, 2021 · 0 comments
Open

Comments

@fab6
Copy link

fab6 commented Mar 23, 2021

Hi,

I am running spacemacs-dev with emacs-git (but experienced similar behavior with emacs 27).

In my setup I use N for dired-narrow and set actually sorting to s

      (kbd "s") nil
      (kbd "ss") '(lambda () "sort by Size" (interactive) (dired-sort-other (concat dired-listing-switches " -S")))
      (kbd "sx") '(lambda () "sort by extension" (interactive) (dired-sort-other (concat dired-listing-switches " -X")))
      (kbd "sd") '(lambda () "sort by time" (interactive) (dired-sort-other (concat dired-listing-switches " -t")))
      (kbd "sn") '(lambda () "sort by name" (interactive) (dired-sort-other (concat dired-listing-switches)))

This works quite nice until I run the first time dired-narrow. Afterwards the keybinding for s is set to dired-narrow-regexp automatically.

How can I avoid this behavior? Do you have an advice? Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants