Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-09 Thread Jaap Karssenberg
On Fri, Nov 9, 2012 at 3:49 PM, Mirosław Zalewski  wrote:

> Jaap
>
> Thanks for a tip, again! I wouldn't find out that behavior could
> differ depending if there is space between keyword and phrase or not.
>

I can imagine - I only found it once I tried to make the test case fail...


> I understand that you have noted this bug somewhere and there is no
> need for me to report it in Launchpad, right?
>

Normally I would ask for a launchpad report, if only just to remind me, but
for this case I already made the patch, so no need.

Regards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-09 Thread Mirosław Zalewski
Jaap

Thanks for a tip, again! I wouldn't find out that behavior could
differ depending if there is space between keyword and phrase or not.

I understand that you have noted this bug somewhere and there is no
need for me to report it in Launchpad, right?

Best regards
Mirosław Zalewski

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-09 Thread Jaap Karssenberg
On Fri, Nov 9, 2012 at 2:16 PM, Jaap Karssenberg  wrote:

>
> On Fri, Nov 9, 2012 at 1:07 PM, Mirosław Zalewski wrote:
>
>> Hi Jaap
>>
>> Thanks for a tip. I have checked manual before, but I have missed
>> LinksFrom keyword (yes, it's actually LinksFrom, not LinkedBy).
>>
>> But I have problem while searching in namespace with whitespaces in
>> name. My query is as follows:
>>
>> namespace:"1. Do napisania"  AND NOT LinksFrom:"1. Do napisania"
>>
>> but it return no results. If I change main page name to
>> "1.Do-napisania" and rerun query with changed name, then it return few
>> pages.
>>
>> I am using zim 0.56 on Debian testing, amd64.
>> Is this a bug? Has it been fixed in newer version? Or maybe I am
>> missing some optional dependency, or just doing something wrong?
>>
>
> Yup, seems a genuine bug. Will add it to my Todo list. Afraid the test
> suite only includes queries without spaces :(
>

P.S.  the bug affect a query like

  namespace:"foo bar"

but not

  namespace: "foo bar"

(notice the additional space)

So work around is to type the 2nd form of the query.

-- Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-09 Thread Jaap Karssenberg
On Fri, Nov 9, 2012 at 1:07 PM, Mirosław Zalewski  wrote:

> Hi Jaap
>
> Thanks for a tip. I have checked manual before, but I have missed
> LinksFrom keyword (yes, it's actually LinksFrom, not LinkedBy).
>
> But I have problem while searching in namespace with whitespaces in
> name. My query is as follows:
>
> namespace:"1. Do napisania"  AND NOT LinksFrom:"1. Do napisania"
>
> but it return no results. If I change main page name to
> "1.Do-napisania" and rerun query with changed name, then it return few
> pages.
>
> I am using zim 0.56 on Debian testing, amd64.
> Is this a bug? Has it been fixed in newer version? Or maybe I am
> missing some optional dependency, or just doing something wrong?
>

Yup, seems a genuine bug. Will add it to my Todo list. Afraid the test
suite only includes queries without spaces :(

Regards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-09 Thread Mirosław Zalewski
Hi Jaap

Thanks for a tip. I have checked manual before, but I have missed
LinksFrom keyword (yes, it's actually LinksFrom, not LinkedBy).

But I have problem while searching in namespace with whitespaces in
name. My query is as follows:

namespace:"1. Do napisania"  AND NOT LinksFrom:"1. Do napisania"

but it return no results. If I change main page name to
"1.Do-napisania" and rerun query with changed name, then it return few
pages.

I am using zim 0.56 on Debian testing, amd64.
Is this a bug? Has it been fixed in newer version? Or maybe I am
missing some optional dependency, or just doing something wrong?

Thanks again!
Mirosław Zalewski

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Find pages that are not linked to in certain page content

2012-11-08 Thread Jaap Karssenberg
On Thu, Nov 8, 2012 at 4:15 PM, Mirosław Zalewski  wrote:

> I use zim as simple project management tool. I have one page that
> gathers all tasks that has to be done. Each entry contain link to
> subpage with detailed description, notes etc. As time passes, I delete
> older entries from main page. But more often than not, I do not delete
> associated subpage. This leads me to situation, where I have some
> obsolete subpages under main page. I would like to remove them
> automatically or quasi-automatically.
>
> Question is: can Zim provide me a list of all subpages that are not
> linked to in main page? If so, how do I do it?
>

The search dialog can do some advanced queries. E.g. you can find all pages
below the "foo" namespace that are not linked by page "foo" with a query
like:

   namespace:"foo" and not linkedby:"foo"

See the manual for more keywords that are supported.

REgards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


[Zim-wiki] Find pages that are not linked to in certain page content

2012-11-08 Thread Mirosław Zalewski
Hi

I use zim as simple project management tool. I have one page that
gathers all tasks that has to be done. Each entry contain link to
subpage with detailed description, notes etc. As time passes, I delete
older entries from main page. But more often than not, I do not delete
associated subpage. This leads me to situation, where I have some
obsolete subpages under main page. I would like to remove them
automatically or quasi-automatically.

Question is: can Zim provide me a list of all subpages that are not
linked to in main page? If so, how do I do it?

Best regards
Mirosław Zalewski

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp