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

feat: custom sorting functions #145

Merged
merged 2 commits into from
Jul 16, 2023
Merged

feat: custom sorting functions #145

merged 2 commits into from
Jul 16, 2023

Conversation

willothy
Copy link
Owner

@willothy willothy commented Jul 16, 2023

Closes #144

Note that this is not a final solution and ultimately I'd like to refactor the way sorting is handled so that there are different levels of sort priority that can be determined by multiple providers. That way, you could quickly create different ordering providers and for example keep harpoon marks on the left, but still be able to sort the rest of your open buffers based on some other function.

It would also be very cool if cokeline buffer order could be synced back to harpoon.

However, this was super quick to implement so can't hurt to have for now :)

@willothy willothy merged commit f4e0130 into main Jul 16, 2023
@willothy willothy deleted the custom-sorting branch July 16, 2023 16:17
sashalikesplanes added a commit to sashalikesplanes/nvim-cokeline that referenced this pull request Jul 17, 2023
chore: update readme

- update options for `config.buffers.new_buffers_position`  as it can now also take a function as updated by willothy#145
willothy pushed a commit that referenced this pull request Jul 17, 2023
chore: update readme

- update options for `config.buffers.new_buffers_position`  as it can now also take a function as updated by #145
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.

Custom function for sorting
1 participant