Fork me on GitHub
#emacs
<
2024-01-07
>
vemv13:01:17

How to have Magit fully expand these sections by default? (untracked, staged, unstaged) It looked like (setq magit-section-initial-visibility-alist '((stashes . hide) (staged . show) (untracked . show) (unstaged . show))) would do the trick but I see no difference even after a restart - maybe it's an unrelated variable?

aisamu13:01:02

I have that set to ((stashes . hide)) and it works think_beret... I'd try clearing the compiled files :woman-shrugging:!

vemv13:01:36

Would you generously try it out for staged? Will check .elc in the meantime (Update: no luck)

👍 1
aisamu13:01:07

Changing it did work, but I had to visit a different project every time, as magit would remember the previous config. The variable indeed says "initial visibility"

vemv13:01:19

Thanks! so it showed the diffs for staged? Which value did you set the defcustom to?

aisamu13:01:50

Staged already shows up for me, so I changed stashed to show

aisamu13:01:00

Value
((stashes . show))

Original Value
((stashes . hide))

aisamu13:01:36

I take back the remembering claim. All it took for a correct update was quitting the magit buffer and reopening (vs just reinvoking it)

vemv13:01:56

Yes, it works for stashes I'm guessing that it staged works in that it displays the list of files, but it doesn't show the diff for each given file?

aisamu13:01:32

Ah! Let me stage something and check that

aisamu13:01:44

Yes. I think this is true for all items - only the top level is expanded

vemv13:01:46

Adding file worked 🎉

'((stashes . show) (staged . show) (unstaged . show) (file . show))
Thanks for your time! A hint always helps :)

🎉 1
aisamu13:01:41

Happy to have been immediately corrected 😂