Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button to collapse / uncollapse all collapsible headers in a note (not in the outline) #166

Open
edofe99 opened this issue Jul 31, 2023 · 4 comments
Labels
enhancement New feature or request needs planning This feature request is viable but needs revision / discussion before implementation

Comments

@edofe99
Copy link

edofe99 commented Jul 31, 2023

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

On my exported HTML file I would like to have a button or something to fold / unfold all headings at one. I tried inserting two buttons with button plugin inside the note, one button fold all headings and lists, the other unfolds. When I export the html, despite having enabled button plugin, the buttons does not work.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Either having the button plugin work or have the chance to enable in the export setting page an option to insert something in the html file that allow fold/unfold everything.

Thank's :)

@edofe99 edofe99 added the enhancement New feature or request label Jul 31, 2023
@KosmosisDire
Copy link
Owner

The buttons plugin cannot work in exported documents because it is a plugin and requires the presence of obsidian's API. However I will consider adding a feature to collapse / uncollapse all headers in a note itself. I did not add this because afaik this is also not a feature in obsidian itself and there isn't a great spot to put the button without making the interface more cluttered. Let me know if you have any suggestions regarding this. Thanks!

@KosmosisDire KosmosisDire changed the title Make buttons plugin work / allow insert button for fold and unfold everything Button to collapse / uncollapse all collapsible headers in a note (not in the outline) Jul 31, 2023
@edofe99
Copy link
Author

edofe99 commented Jul 31, 2023

Hello, thanks.

Yes, I agree with you regarding too much cluttered , indeed that’s why I suggested making this an optional flag in the plug-in settings.

In my opinion, when enabled, it would make sense to have the “fold/unfold all” button next to “light/dark” mode button or alternatively in the outline column.

Thanks for your time, and thanks for this amazing plug-in :)

@KosmosisDire KosmosisDire added the needs planning This feature request is viable but needs revision / discussion before implementation label Aug 7, 2023
@bedw8
Copy link

bedw8 commented Aug 23, 2023

afaik this is also not a feature in obsidian itself

actually it is an Obsidian feature. The command its called 'Fold all headings and lists', just doesn't have a hotkey by default. hope this can help somehow

i'd love to contribute to this feature but idk html or js :(

@KosmosisDire
Copy link
Owner

@bedw8 Interesting I didn't know that, thanks! I am still thinking about a way to add this cleanly, but I think this will be added eventually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs planning This feature request is viable but needs revision / discussion before implementation
Projects
Development

No branches or pull requests

3 participants