NicolasPetton / nroam

Org-roam backlinks within org-mode buffers
GNU General Public License v3.0
108 stars 6 forks source link

Feature Request: option to have backlinks appear folded on start #26

Open mediapathic opened 3 years ago

mediapathic commented 3 years ago

Just what the title says. I would like the option for the the initial state of the backlinks to be folded, because I keep opening files and thinking "oh crap this is much bigger than I thought" then realizing why. I'd suggest a variable that could be set by the user. I expect showing up unfolded is probably still a reasonable default for most people.

Whil- commented 3 years ago

I'm using the startup-option 'show2levels in my config. Globally set with the customization org-startup-folded. This requires to use Org mode master branch though, since the option to show certain number of levels is new from version 9.5 (not yet released).

That startup option doens't only apply for the backlinks though. So YMMV ofc. Just hinting at something that might work and not require custom nroam code?

mediapathic commented 3 years ago

That's a reasonable workaround for initial startup eventually (even though it doesn't really do what I want, but it's as close as possible without writing custom code), but there are a few cases it doesn't cover. Most notably, when I save a file, the Backlinks section expands automatically, so I'm pretty constantly wrestling with it.

(Also I'm guessing that #+STARTUP: overview would have a similar effect, even if not on the bleeding edge org branch?)