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 none sort_type #693

Closed
hidroto opened this issue Feb 15, 2023 · 2 comments
Closed

add none sort_type #693

hidroto opened this issue Feb 15, 2023 · 2 comments
Labels

Comments

@hidroto
Copy link

hidroto commented Feb 15, 2023

I would like to suggest that we add a feature keep the images in the same order as they are given on the command line or from the --filelist option.

@hidroto
Copy link
Author

hidroto commented Feb 15, 2023

this small patch would be engough

diff --git a/src/options.c b/src/options.c
index d3524f7..80f13b6 100644
--- a/src/options.c
+++ b/src/options.c
@@ -537,6 +537,8 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
                case OPTION_sort:
                        if (!strcasecmp(optarg, "name"))
                                opt.sort = SORT_NAME;
+                       else if (!strcasecmp(optarg, "none"))
+                               opt.sort = SORT_NONE;
                        else if (!strcasecmp(optarg, "filename"))
                                opt.sort = SORT_FILENAME;
                        else if (!strcasecmp(optarg, "dirname"))

@derf
Copy link
Owner

derf commented Feb 15, 2023

Indeed. Added in 421273d, thanks for the suggestion

@derf derf closed this as completed Feb 15, 2023
@derf derf added the feature label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants