-
Notifications
You must be signed in to change notification settings - Fork 6
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
Items appear in reverse alphabetical order #21
Comments
This behavior was clearly a personal choice (but could be change by the user). The main reason is :
Having multiple columns to display the results will be better but fzf is not open to use the full width to display multi columns. Anyway, it is not well documented yet and have a lack in CI tests, but you could override the default sort function, have a sort function by command, or have a sort function by completion function. So, if you would like to have for all commands sort without be case sensitive, and in the "normal" order, you could override the default function by the one bellow.
If for some reason you would like to change the sort function only for
Hope it will help you. |
With the new configuration in place, all you have to do to change the sort order now is to use something as below For example, if you'd like to have hidden files first (default at the end), and the sort not to be case sensitive :
|
I was trying out the default.cfg with std_sort_opts set to either '' or '-Vd'. |
Hi, All configuration should reside in ~/.config/fzf-obc/ as stated in #21 (comment) and in the doc For the case-sensitive behavior (this issue was for reverse order), add the sort '-f' option and you will be good.
Regards |
Thanks. I didn't pay enough attention to the proper location of the config file. |
Was just a little tired ^^
Hummm weird.
Yep, one problem -> one issue and don't forget to provide a reproducible case or eventually a screenshot please :) And thanks for your time :) |
Right, I thought so. |
OS: macOS 10.15.1
Something is wrong with the sort order of the results displayed by fzf-obc.
Without fzf-obc,
ls /[TAB][TAB]
:With fzf-obc enabled:
Note that the order of the result is reverse alphabetic, and case seems to be ignored.
Original sort order is alphabetic, with all uppercase letters before all lowercase ones.
The text was updated successfully, but these errors were encountered: