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 user option to preserve the order of imenu candidates #1864

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

pacastega
Copy link
Contributor

This commit adds a new user option haskell-decl-scan-sort-imenu to decide whether to sort the candidates in imenu (done in function haskell-ds-create-imenu-index).

When t (the default), sort the candidates alphabetically as before. When nil, present them in the same order as they appear in the file (note that this requires reversing the list of candidates, since it is built in such a way that the canditates appearing later in the file are appended to the front of the list).

@purcell purcell merged commit 7f452cc into haskell:master Feb 10, 2025
11 checks passed
@purcell
Copy link
Member

purcell commented Feb 10, 2025

Makes sense, merging, thanks.

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