I want to rename a number of tracked but unchanged files via
magit. I know that I can use
magit-status does not show me unchanged files.
How can I toggle the visibility of the unchanged files?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
You can add a section with 'tracked-files' to the git status buffer using
(magit-add-section-hook 'magit-status-sections-hook #'magit-insert-tracked-files nil t)
(refresh the git-status buffer after adding the hook function).
Read the docstring of
magit-add-section-hook to find how to control the insert location of the new section.
I guess there is no need to 'toggle' it as you can just fold/unfold the section.
Toggling the section is not supported, you would have to write your own function for that.
B.t.w. there is also the
vc-dir command (
C-x v d), which might be more useful for listing files in a single dir (and there is