It’d be awesome to have outlines collapsed by default.
Daily notes need to be collapsed every time
In my case I keep I find this specially useful on my daily notes. I keep a lot of structured outlines and I find my self using double tab constantly to close it all.
For instance on returning to an specif page / daily note
this is that view that I’d like to see by default
Collapsed by default (ideal)
Expanded by default (current)
Double tab
pressing tab twice collapses the level 1 outline, but it doesn’t seem to collapse the levels under it
What I mean is that after using double tab and choosing to expand a level 1 outline everything unfolds under it.
Sub-levels also collapsed (ideal)
That way after uncollapsing level 1 things would look like this, instead of every sub-level uncollapsed
Suggestions to adding this feature
One of my favorite things of Logseq is how it uses so many awesome aspects of org-mode.
Collapsed by default but with individual pages expections if needed
What’d be amazing is to be able to choose a default visability, in my case I’d like to have everything collapsed by default.
but there are also ways in org-mode to determine a certain behaviour for specific pages as seen in this following link…
I was just thinking about making the same feature request!
Having the option to collapse outlines by default would be very useful for large outlines. At the moment I either have to scroll down a lot or collapse the outline manually to get an overview
good to know this is in demand! From what I saw mentioned in discord this seems tricky to achieve correctly, so hopefully we’ll be able to do this soon!
Still getting used to Dragon. So while I was dictating this response. I kept getting "post cannot be empty"or something like that. I have to go in and press something on the keyboard just for the website to know I did write something!
I think there’s a use-case for a property that controls collapsed state (per block or even the entire page).
For example for templates - I would want to be able to just control it from the template, so for a specific types of content, the template will always bring in content that is collapsed by default when the note is opened
Is there a way to disable the creation of the collapsed property in org-mode? I find this very annoying since it clutters up my files and I’d much rather have a default behaviour, e.g. everything collapsed as in the #+startup option used in org-mode.
There is a shortcut :editor/toggle-open-blocks (mapped to t o), which can be used to collapse all the blocks in a document. It also sets the collapsed property to true for all the blocks, which makes them collapsed by default even when you open the document again.
:editor/collapse-block-children (mapped to ctrl + up) can be used to collapse a block’s children.
:editor/expand-block-children (mapped to ctrl + down) can be used to expand a block’s children. This also seems to maintain the collapsed state in sublevels or children, as mentioned in this topic. These collapsed sublevels can be expanded further by repeatedly pressing on ctrl + down.
But having tried them, they don’t toggle as simply as the equivalent in org-mode.
In logseq, ctrl + up and ctrl + down expand or collapse only the block the cursor is on; to fully expand a block, you must move the cursor to each child block – and if the child block has children, you have to move the cursor to each of them too. That’s a lot of cursoring.
In org mode, with the cursor on a bullet, you can expand its first level of children with a single tab, and then fully expand all of it with another tab (same key, no cursor movement). You can also use the same key to expand a bullet, take a peek, and then re-collapse it:
tabtake a peektab
It would be nice to have similar in logseq. In fact, if an emacs keybinding option gets implemented, this would be the best use of tab.
You don’t have to move to the respective child blocks to expand them. You can expand the child blocks by repeatedly pressing ctrl + down on the parent block itself, similar to org-mode.
Yes, thanks, I guess repeated ctrl + down does expand the whole thing – if the blocks don’t contain images.
If there are images, ctrl + down still expands the text, but leaves the images collapsed. That was confusing me. Would you consider this a bug, or by design?
No idea. I have just updated to Logseq 0.6.9, and it seems like ctrl + up and ctrl + down don’t collapse and expand sub-levels. Are you facing the same?