-
Notifications
You must be signed in to change notification settings - Fork 23
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
-pagesInNs not working as expected in "-tree" mode #151
Comments
The documentation says nothing about sorting for Maybe you should try |
I'm afraid I wrote the code for this option years ago and I don't personnally use it, so I don't remember how it's supposed to work... However I just ran the test displayed in the screenshot above, and it gives me the feeling that the pages and namespaces are sorted alphabetically, doesn't it? Do you observe something different on your side? |
Re-reading your message I see that you use Here I see that, as expected with the Does that make sense? Do you observe something different on your side? |
Thanks gturri for your fast answer!
Now the pages are alpahetically "in between" the namespaces. Your Sceenshot shows "Windows Explorer"-like sorting and I would expect macos-finder-sorting :-) Thanks for your great plugin! |
Sorry to nudge in but can you please show us what's macOS finder sorting would be like? |
Windows Explorer (standard setting: grouped folders and files):
Finder (standard setting: alphabetical):
So, at the moment it looks like this (subs of namespaces not included in this example):
And as the documentation says "pages among (in between) namespaces, I would expect this (subs of namespaces not included in this example):
|
This is strange. I'm currently testing with your initial query |
When I look at the code I'm afraid @Trinity503 is correct: The
and the comment at the bottom of the file (https://github.com/gturri/nspages/blob/master/printers/printerTree.php#L206 ) makes it clear that |
I guess it could be possible to propose the other behavior. If we want to do that I think we should:
For the record @Trinity503 , on a scale from 1 to 10 where 10 is "you really want this feature" and 1 is "you were surprised by this behavior but do not really care", how much would you appreciate this feature? :D |
Now I've got it with this example :D |
Well the thing with the "double" entries is a 10 for me. The other one is a 6, which means, I would have to try to do this on my own with my limited programming skills. |
I agree that the double entry behavior is not great. |
I use this to create a tree:
<nspages .:imrs-wiki -tree -r -exclude -subns -pagesInNs -h1 -textNs="">
With -pagesInNs it should sort pages and namespaces alphabetically, or am I wrong. Unfortunatetly it first lists the namespaces and then the pages.
The text was updated successfully, but these errors were encountered: