Skip to content

Keep line order in non fuzzy mode #85

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

Closed
wants to merge 1 commit into from
Closed

Keep line order in non fuzzy mode #85

wants to merge 1 commit into from

Conversation

darkangel-ua
Copy link

When we set fuzzy = false it's would be great to keep lines in orders they are appear in file/buffer/source.
This will mimic grep like behavior.

@Conni2461
Copy link
Member

I would not always enable it for fuzzy=false, i would implement it as separate option.

We could improve performance by swapping out functions, which would remove 1 if.

And i even think we can implement this on telescope.nvim sorter level.

Its a good idea thought, thanks :) If you are interested in trying the last point, feel free to say so, we could do a guided PR over there.

@Conni2461
Copy link
Member

this is solved on telescope level, latest master

require("telescope.builtin").oldfiles {
  tiebreak = function(current_entry, existing_entry, _)
    return current_entry.index < existing_entry.index
  end
}

i prefer not to implement this here

@Conni2461 Conni2461 closed this May 25, 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