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

Show the index in other views apart from the share link #6876

Open
SamuXzX opened this issue Jan 27, 2025 · 2 comments
Open

Show the index in other views apart from the share link #6876

SamuXzX opened this issue Jan 27, 2025 · 2 comments
Labels
enhancement New feature or request needs info

Comments

@SamuXzX
Copy link

SamuXzX commented Jan 27, 2025

Is your feature request related to a problem? Please describe.
When viewing a Markdown file using a share link generated in Nextcloud, it appears a button to show an index of the file in a sidebar, generated from the headings:

Image
(The button says "Hide index")

I don't get why this does not appear when editing the file from Nextcloud itself:

Image

Another way of viewing the file is opening it directly from the system, with the Nextcloud Desktop Client installed:

Image
(The button says "Open in browser")

Image

Describe the solution you'd like
I would like to be able to see such index in any view in Nextcloud.
One problem seems to be that the toolbar is full, but this seems like an entirely different problem (which I think needs to be solved, as being constrained like this could be a problem for Text).

The button could just appear at the left side of the top bar, just like the buttons for the sidebar are aligned to the right:

Image

There would obviously be a problem with small screens, but maybe both this new "Show index" button and the buttons for the sidebar should receive their own row when in mobile view:

Image
I understand this would take more screen space, but if we want to have all the options in-view, for now I see no other solution.

@SamuXzX SamuXzX added the enhancement New feature or request label Jan 27, 2025
@SamuXzX SamuXzX changed the title Make the index in other views apart from the shared link Make the index in other views apart from the share link Jan 27, 2025
@SamuXzX SamuXzX changed the title Make the index in other views apart from the share link Show the index in other views apart from the share link Jan 28, 2025
@mejo-
Copy link
Member

mejo- commented Jan 28, 2025

Thanks for your report @SamuXzX. What you describe is the read-only mode of the text editor, where the toolbar is hidden and the button to toggle the outline is displayed instead. In read-write mode you find the same option at the bottom of the headings menu in the toolbar ("Show outline"). Does this solve the issue for you?

@SamuXzX
Copy link
Author

SamuXzX commented Jan 29, 2025

Thank you, it does in fact clarify it. I suppose the button is there due to a lack of space in the toolbar, as it is the most obvious place if someone has to fit it into the a submenu. I would like to change the title of the request: maybe we should think of a better place for that button, outside of the toolbarm as it is not an action to format or add something. The same would apply to the three-dot button at the end of the toolbar, which contains the guide and the character count:

Image
They are not buttons to format the text. I think these two other elements could be moved at the bottom of the sidebar which contains the index, and that such sidebar should be made more accesible, for example moving the button to open it and opening it by default when there's space.

Alternatively, we could have a the "Open index" button together with these last two elements in the collapsed three-dot submenu, as it is related to the headings but I do not see it obvious that their submenu would contain the button to show the index:

Image

My original idea was to add a new button which would open a submenu with these kinds of elements (index, guide, character count), which could very well be fitted at the left of the toolbar:

Image

or be aligned to the right together with the button to open the sidebar and the button to save the document:

Image

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 info
Projects
None yet
Development

No branches or pull requests

2 participants