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

Exclude a page with a namespace prefix excludes whole namespace #156

Open
dregad opened this issue Sep 18, 2023 · 2 comments
Open

Exclude a page with a namespace prefix excludes whole namespace #156

dregad opened this issue Sep 18, 2023 · 2 comments

Comments

@dregad
Copy link
Contributor

dregad commented Sep 18, 2023

Using nspages in the wiki's start page, I wanted to exclude a single page from a specific namespace, considering that a page with the same name could exist in another namespace.

I tried

  • <nspages -r -numberedList -exclude:ns1:mypage> excludes the whole ns1 namespace.
  • <nspages -r -numberedList -exclude:mypage> works, but it also excludes ns2:mypage
@gturri
Copy link
Owner

gturri commented Sep 19, 2023

ah, the exclude options are indeed a bit tricky when they are used along with -r... :-/

IIRC the 2nd behavior you describe, with <nspages -r -numberedList -exclude:mypage>, is the intended behavior, since it was suggested by #88 (comment) .
The 1st one however, seems unexpected. I'll try to look into it when I can dedicate some time to that (not sure when though).

@dregad
Copy link
Contributor Author

dregad commented Sep 19, 2023

IIRC the 2nd behavior you describe, with <nspages -r -numberedList -exclude:mypage>, is the intended behavior, since it was suggested by #88 (comment) .

I agree. actually.

The 1st one however, seems unexpected. I'll try to look into it when I can dedicate some time to that (not sure when though).

Thanks. If I have time I'll check the code too and report back, but I'm kind of busy too...

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

No branches or pull requests

2 participants