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

Add ability to sort sidecar #202

Closed

Conversation

cristeahub
Copy link

@cristeahub cristeahub commented Dec 28, 2024

I initially started a discussion here ghostty-org/ghostty#3397 , however seeing this feature might help with other issues like #155 , I figured I'ld open a PR directly.

This PR adds the ability to alphabetically sort the sidecar on any given view one wants.

This helps me a lot when I am looking for configuration options and I know almost what it's named, or what I believe it should be named.

I also see that this is wanted on the keybinding page.

I opted not to sort the content of these pages, because I do find it useful to be able to show the most common requested config first, regardless of whether this is will be first in a sorted list.

Before (sidecar unsorted):
image
After (sidecar sorted):
image

Now one can sort the sidecar if the alphabeticallySortedSidecar field is
set to true on a page. This is very helpful for things like a reference,
where one is looking up the correct values for a setting.
Copy link

vercel bot commented Dec 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 28, 2024 2:08pm

@BrandonRomano
Copy link
Member

BrandonRomano commented Dec 28, 2024

The right solution here would be to alphabetically sort the content, if we found that was the right sorting for this content.

The sidecar itself is supposed to be in the same order as the content. When you scroll now on these pages, the sidecar jumps erratically.

out.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants