Hello, I would really like to get the F9 key back for removing the sidebar.
I am aware of this discussion:
and I understand that this is not going to be changed.
My question is, what is the easiest way to do this if I am willing to build myself from source? I have been poking around and I can’t easily find it. I think what I want to do is change the threshold that nautilus uses to decide whether the window is in “narrow” mode. If I can make it always think it is “narrow” then I think the F9 key will do what I want.
I think what I want to do is change the threshold that nautilus uses to decide whether the window is in “narrow” mode. If I can make it always think it is “narrow” then I think the F9 key will do what I want.
No, because it changes many other unrelated variables.
Here’s a patch to have it the collapse button show up all the time and the F9 action always active:
Awesome thank you Khalid! I think I am using an older version (43.2, included with Debian 12), but I was able to get the first part of your patch to work, and now the F9 key does work.
My next question is, how do I get it folded by default when I open nautilus?
It feels like I need to do something around line 45 of this file:
or maybe I somehow have to call action_toggle_sidebar() at some point during window construction… but I can’t quite work out what to do (unfortunately Claude was unable to help…)