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

fix: builtin register picker better sorting #2175

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

tusqasi
Copy link
Contributor

@tusqasi tusqasi commented Sep 21, 2022

Now using :Telescope registers will sort with register content.

Description

Default :Telescope registers does weird stuff like sorting with register names. Change the ordinal to sort on the basis of content of the registers.

This will be much better than the default behaviour I think.

Fixes #(996)
#996

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

😅. I ran it a few times.

Configuration:

  • Neovim version (v0.8.0-dev-1132-g37a71d1f2):
  • Operating system and version: manjaro

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

Now using `:Telescope registers` will sort with register content.
@tusqasi tusqasi marked this pull request as ready for review September 21, 2022 15:51
@tusqasi tusqasi changed the title fix: register builting better sorting fix: builtin register picker better sorting Sep 21, 2022
Copy link
Member

@Conni2461 Conni2461 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

CI failure is unrelated

@Conni2461 Conni2461 merged commit 2428953 into nvim-telescope:master Sep 27, 2022
Conni2461 pushed a commit that referenced this pull request Jan 6, 2023
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