I use the package dired-narrow (which I have bound to C-x /) together with dired-toggle-read-only (C-x C-q). However, if I press C-c C-c to commit my changes after using dired-toggle-read-only this also makes the dired-narrow view disappear. I would like the dired-narrow view to persist until I press g (which is the default key to undo the dired-narrow view.)

  • 1
    Looking at the source code, this is not easy to do currently because the chosen method of filtering and the provided narrowing string is not stored anywhere or accessible easily with advice. The best solution would be to implement some sort of restore feature in the package itself and then customize dired to call the restore after exit or save of an edit. Hopefully somebody proves me wrong. I don't think this change would be hard to make in the package though. – Jordon Biondo Jan 6 '20 at 21:31
  • 1
    I have not found a solution for this as yet but a workaround. Using dired-filter has enabled me to do much the same as dired-narrow but with added features and without the problem described above. – Raoul Comninos Jan 7 '20 at 14:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.