Re: [Zim-wiki] Search by time

2017-02-17 Thread Murat Güven

Hi Agus,

good to hear that. I attach the changed file again as it was not added 
to the zim-wiki list.


Regards,
Murat

On 17.02.2017 11:50, Agustin Lobo wrote:

Works great in 0.65
Thanks
Agus

On Thu, Feb 16, 2017 at 4:28 PM, Murat Güven <mu...@guven.de> wrote:

Hi,

it's within the search menu.. Not sure if it was implemented in 0.62
already.

I used the latest version 0.65. I suggest that you update your version.

Regards,
Murat
Am 16. Feb. 2017, um 16:24, Agustin Lobo <aloboa...@gmail.com> schrieb:

I've done as you say but cannot find the "Recent Changes Dialog" in
the zim menu. I'm using 0.62
Agus

On Thu, Feb 16, 2017 at 3:44 PM, "Murat Güven" <mu...@guven.de> wrote:

  Hi Agus,

  psa the quick patch for this function. You need to replace this with the
py
  file within the zim/gui folder.

  The standard view will display your pages from today - 60 days.
  I also switched the order of the columns to have the date visible right
away
  without the need to scroll the window to the right on large page names.

  I will most probably add a calendar selector for the date. Currently you
  need to type in the desired date in the given format.
  Please let me know if this works.

  Regards,
  Murat

  Gesendet: Dienstag, 14. Februar 2017 um 13:37 Uhr
  Von: "Agustin Lobo" <aloboa...@gmail.com>
  An: "Murat Güven" <mu...@guven.de>

  Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
  Betreff: Re: [Zim-wiki] Search by time
  Murat,
  Yes, being able to set the date range would be great, thanks
  Agus

  On Tue, Feb 14, 2017 at 1:03 PM, "Murat Güven" <mu...@guven.de> wrote:

  Hi,

  I had a look into recentchangesdialog.py and it seems as if the limit
is
  currently set to 50 entries.

  @Augustin:
  Is this what you were looking for? I thought about patching this
dialog,
  but
  I don't know if it makes sense to have
  a from / to field to select the date window?

  Regards,
  Murat



  Gesendet: Donnerstag, 09. Februar 2017 um 10:53 Uhr
  Von: "Jaap Karssenberg" <jaap.karssenb...@gmail.com>
  An: "Amir Baghban" <arbas...@gmail.com>, "Agustin Lobo"
  <aloboa...@gmail.com>
  Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
  Betreff: Re: [Zim-wiki] Search by time
  There is a "recent changes" dialog in the latest version - you can find
it
  in the "Search" menu.

  Currently it is limited to showing the last 20 pages, but I would
suggest
  patching that dialog if you want to add more functionality.

  -- Jaap

  On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban <arbas...@gmail.com> wrote:


  I think this is a missing feature and it would be great sometime to
have
  a
  plugin for it. Such a plugin would sort the pages based on time in a
pane
  next to index pane.

  For now I have written a python script that I run it using "custom
tools"
  feature of zim. This script creates links to the last n page and
prints
  them
  in the open page.
  You can see it here:
  https://github.com/arbasli2/Zim-Scripts
  I have tested it on both Linux and windows.

  Best
  Amir

  On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo <aloboa...@gmail.com>
wrote:


  Can I search my notes by time? For example, listing those notes
  modified in the last 3 months
  Thanks

  --
  Agustin Lobo
  aloboa...@gmail.com



  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




  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



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




  --
  Agustin Lobo
  aloboa...@gmail.com



  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








# -*- coding: utf-8 -*-

# Copyright 2013 Jaap Karssenberg <jaap.karssenb...@gmail.com>
# 2017-02-16: patched with date entries by Murat Güven <mur...@online.de>

import gtk
import gobject
import logging

import zim.datetimetz as datetime

from zim.notebook import Path
from zim.gui.widgets import Dialog, BrowserTreeView, ScrolledWindow


logger = logging.getLogger('zim.gui.dialogs')


class RecentChangesDialog(Dialog):

def __init__(self, ui):
Dialog.__init__(self, ui, _('Recent Changes'), # T: Dialog title
   

Re: [Zim-wiki] Search by time

2017-02-17 Thread Agustin Lobo
Works great in 0.65
Thanks
Agus

On Thu, Feb 16, 2017 at 4:28 PM, Murat Güven <mu...@guven.de> wrote:
> Hi,
>
> it's within the search menu.. Not sure if it was implemented in 0.62
> already.
>
> I used the latest version 0.65. I suggest that you update your version.
>
> Regards,
> Murat
> Am 16. Feb. 2017, um 16:24, Agustin Lobo <aloboa...@gmail.com> schrieb:
>>
>> I've done as you say but cannot find the "Recent Changes Dialog" in
>> the zim menu. I'm using 0.62
>> Agus
>>
>> On Thu, Feb 16, 2017 at 3:44 PM, "Murat Güven" <mu...@guven.de> wrote:
>>>
>>>  Hi Agus,
>>>
>>>  psa the quick patch for this function. You need to replace this with the
>>> py
>>>  file within the zim/gui folder.
>>>
>>>  The standard view will display your pages from today - 60 days.
>>>  I also switched the order of the columns to have the date visible right
>>> away
>>>  without the need to scroll the window to the right on large page names.
>>>
>>>  I will most probably add a calendar selector for the date. Currently you
>>>  need to type in the desired date in the given format.
>>>  Please let me know if this works.
>>>
>>>  Regards,
>>>  Murat
>>>
>>>  Gesendet: Dienstag, 14. Februar 2017 um 13:37 Uhr
>>>  Von: "Agustin Lobo" <aloboa...@gmail.com>
>>>  An: "Murat Güven" <mu...@guven.de>
>>>
>>>  Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
>>>  Betreff: Re: [Zim-wiki] Search by time
>>>  Murat,
>>>  Yes, being able to set the date range would be great, thanks
>>>  Agus
>>>
>>>  On Tue, Feb 14, 2017 at 1:03 PM, "Murat Güven" <mu...@guven.de> wrote:
>>>>
>>>>  Hi,
>>>>
>>>>  I had a look into recentchangesdialog.py and it seems as if the limit
>>>> is
>>>>  currently set to 50 entries.
>>>>
>>>>  @Augustin:
>>>>  Is this what you were looking for? I thought about patching this
>>>> dialog,
>>>>  but
>>>>  I don't know if it makes sense to have
>>>>  a from / to field to select the date window?
>>>>
>>>>  Regards,
>>>>  Murat
>>>>
>>>>
>>>>
>>>>  Gesendet: Donnerstag, 09. Februar 2017 um 10:53 Uhr
>>>>  Von: "Jaap Karssenberg" <jaap.karssenb...@gmail.com>
>>>>  An: "Amir Baghban" <arbas...@gmail.com>, "Agustin Lobo"
>>>>  <aloboa...@gmail.com>
>>>>  Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
>>>>  Betreff: Re: [Zim-wiki] Search by time
>>>>  There is a "recent changes" dialog in the latest version - you can find
>>>> it
>>>>  in the "Search" menu.
>>>>
>>>>  Currently it is limited to showing the last 20 pages, but I would
>>>> suggest
>>>>  patching that dialog if you want to add more functionality.
>>>>
>>>>  -- Jaap
>>>>
>>>>  On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban <arbas...@gmail.com> wrote:
>>>>>
>>>>>
>>>>>  I think this is a missing feature and it would be great sometime to
>>>>> have
>>>>>  a
>>>>>  plugin for it. Such a plugin would sort the pages based on time in a
>>>>> pane
>>>>>  next to index pane.
>>>>>
>>>>>  For now I have written a python script that I run it using "custom
>>>>> tools"
>>>>>  feature of zim. This script creates links to the last n page and
>>>>> prints
>>>>>  them
>>>>>  in the open page.
>>>>>  You can see it here:
>>>>>  https://github.com/arbasli2/Zim-Scripts
>>>>>  I have tested it on both Linux and windows.
>>>>>
>>>>>  Best
>>>>>  Amir
>>>>>
>>>>>  On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo <aloboa...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>  Can I search my notes by time? For example, listing those notes
>>>>>>  modified in the last 3 months
>>>>>>  Thanks
>>>>>>
>>>>>>  --
>>>>>>  Agustin Lobo
>>>>>>  aloboa...@gmail.com
>>>>>>
>>>>>> 
>>>>>>
>>>>>>  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
>>>>>
>>>>>
>>>>> 
>>>>>
>>>>>  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
>>>>
>>>>
>>>> 
>>>> 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
>>>
>>>
>>>
>>>
>>>  --
>>>  Agustin Lobo
>>>  aloboa...@gmail.com
>>>
>>> 
>>>
>>>  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
>>
>>
>>
>



-- 
Agustin Lobo
aloboa...@gmail.com

___
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] Search by time

2017-02-16 Thread Agustin Lobo
I've done as you say but cannot find the "Recent Changes Dialog" in
the zim menu. I'm using 0.62
Agus

On Thu, Feb 16, 2017 at 3:44 PM, "Murat Güven" <mu...@guven.de> wrote:
> Hi Agus,
>
> psa the quick patch for this function. You need to replace this with the py
> file within the zim/gui folder.
>
> The standard view will display your pages from today - 60 days.
> I also switched the order of the columns to have the date visible right away
> without the need to scroll the window to the right on large page names.
>
> I will most probably add a calendar selector for the date. Currently you
> need to type in the desired date in the given format.
> Please let me know if this works.
>
> Regards,
> Murat
>
> Gesendet: Dienstag, 14. Februar 2017 um 13:37 Uhr
> Von: "Agustin Lobo" <aloboa...@gmail.com>
> An: "Murat Güven" <mu...@guven.de>
>
> Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
> Betreff: Re: [Zim-wiki] Search by time
> Murat,
> Yes, being able to set the date range would be great, thanks
> Agus
>
> On Tue, Feb 14, 2017 at 1:03 PM, "Murat Güven" <mu...@guven.de> wrote:
>> Hi,
>>
>> I had a look into recentchangesdialog.py and it seems as if the limit is
>> currently set to 50 entries.
>>
>> @Augustin:
>> Is this what you were looking for? I thought about patching this dialog,
>> but
>> I don't know if it makes sense to have
>> a from / to field to select the date window?
>>
>> Regards,
>> Murat
>>
>>
>>
>> Gesendet: Donnerstag, 09. Februar 2017 um 10:53 Uhr
>> Von: "Jaap Karssenberg" <jaap.karssenb...@gmail.com>
>> An: "Amir Baghban" <arbas...@gmail.com>, "Agustin Lobo"
>> <aloboa...@gmail.com>
>> Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
>> Betreff: Re: [Zim-wiki] Search by time
>> There is a "recent changes" dialog in the latest version - you can find it
>> in the "Search" menu.
>>
>> Currently it is limited to showing the last 20 pages, but I would suggest
>> patching that dialog if you want to add more functionality.
>>
>> -- Jaap
>>
>> On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban <arbas...@gmail.com> wrote:
>>>
>>> I think this is a missing feature and it would be great sometime to have
>>> a
>>> plugin for it. Such a plugin would sort the pages based on time in a pane
>>> next to index pane.
>>>
>>> For now I have written a python script that I run it using "custom tools"
>>> feature of zim. This script creates links to the last n page and prints
>>> them
>>> in the open page.
>>> You can see it here:
>>> https://github.com/arbasli2/Zim-Scripts
>>> I have tested it on both Linux and windows.
>>>
>>> Best
>>> Amir
>>>
>>> On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo <aloboa...@gmail.com> wrote:
>>>>
>>>> Can I search my notes by time? For example, listing those notes
>>>> modified in the last 3 months
>>>> Thanks
>>>>
>>>> --
>>>> Agustin Lobo
>>>> aloboa...@gmail.com
>>>>
>>>> ___
>>>> 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
>>>
>>> ___
>>> 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
>>
>> ___ 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
>
>
>
> --
> Agustin Lobo
> aloboa...@gmail.com
>
> ___
> 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



-- 
Agustin Lobo
aloboa...@gmail.com

___
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] Search by time

2017-02-14 Thread Agustin Lobo
Murat,
Yes, being able to set the date range would be great, thanks
Agus

On Tue, Feb 14, 2017 at 1:03 PM, "Murat Güven" <mu...@guven.de> wrote:
> Hi,
>
> I had a look into recentchangesdialog.py and it seems as if the limit is
> currently set to 50 entries.
>
> @Augustin:
> Is this what you were looking for? I thought about patching this dialog, but
> I don't know if it makes sense to have
> a from / to field to select the date window?
>
> Regards,
> Murat
>
>
>
> Gesendet: Donnerstag, 09. Februar 2017 um 10:53 Uhr
> Von: "Jaap Karssenberg" <jaap.karssenb...@gmail.com>
> An: "Amir Baghban" <arbas...@gmail.com>, "Agustin Lobo"
> <aloboa...@gmail.com>
> Cc: "zim-wiki@lists.launchpad.net" <zim-wiki@lists.launchpad.net>
> Betreff: Re: [Zim-wiki] Search by time
> There is a "recent changes" dialog in the latest version - you can find it
> in the "Search" menu.
>
> Currently it is limited to showing the last 20 pages, but I would suggest
> patching that dialog if you want to add more functionality.
>
> -- Jaap
>
> On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban <arbas...@gmail.com> wrote:
>>
>> I think this is a missing feature and it would be great sometime to have a
>> plugin for it. Such a plugin would sort the pages based on time in a pane
>> next to index pane.
>>
>> For now I have written a python script that I run it using "custom tools"
>> feature of zim. This script creates links to the last n page and prints them
>> in the open page.
>> You can see it here:
>> https://github.com/arbasli2/Zim-Scripts
>> I have tested it on both Linux and windows.
>>
>> Best
>> Amir
>>
>> On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo <aloboa...@gmail.com> wrote:
>>>
>>> Can I search my notes by time? For example, listing those notes
>>> modified in the last 3 months
>>> Thanks
>>>
>>> --
>>> Agustin Lobo
>>> aloboa...@gmail.com
>>>
>>> ___
>>> 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
>>
>> ___
>> 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
>
> ___ 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



-- 
Agustin Lobo
aloboa...@gmail.com

___
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] Search by time

2017-02-09 Thread Jaap Karssenberg
There is a "recent changes" dialog in the latest version - you can find it
in the "Search" menu.

Currently it is limited to showing the last 20 pages, but I would suggest
patching that dialog if you want to add more functionality.

-- Jaap

On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban  wrote:

> I think this is a missing feature and it would be great sometime to have a
> plugin for it. Such a plugin would sort the pages based on time in a pane
> next to index pane.
>
> For now I have written a python script that I run it using "custom tools"
> feature of zim. This script creates links to the last n page and prints
> them in the open page.
> You can see it here:
> https://github.com/arbasli2/Zim-Scripts
> I have tested it on both Linux and windows.
>
> Best
> Amir
>
> On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo  wrote:
>
> Can I search my notes by time? For example, listing those notes
> modified in the last 3 months
> Thanks
>
> --
> Agustin Lobo
> aloboa...@gmail.com
>
> ___
> 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
>
>
> ___
> 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
>
___
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] Search by time

2017-02-09 Thread Amir Baghban
I think this is a missing feature and it would be great sometime to have a
plugin for it. Such a plugin would sort the pages based on time in a pane
next to index pane.

For now I have written a python script that I run it using "custom tools"
feature of zim. This script creates links to the last n page and prints
them in the open page.
You can see it here:
https://github.com/arbasli2/Zim-Scripts
I have tested it on both Linux and windows.

Best
Amir

On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo  wrote:

> Can I search my notes by time? For example, listing those notes
> modified in the last 3 months
> Thanks
>
> --
> Agustin Lobo
> aloboa...@gmail.com
>
> ___
> 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
>
___
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] Search by time

2017-02-08 Thread NorfCran
Hi Agustin,

this is a task for Version Control System (VCS) like GIT, available as a
plugin, which allows you to perform the following queries:

git diff --name-status "@{3 days ago}" "@{2 days ago}"
more details on:
http://stackoverflow.com/questions/8016645/git-list-all-files-added-modified-on-a-day-or-week-month

Hope it will be useful information, I have made some experiments with very
smooth granularity of versions, similarly to http://etherpad.org, but needs
to be tweaked :) The GIT should be still sufficient, since you can set an
interval, which triggers a new revision of changes in the notebook.

All the best,
NorfCran



On 8 February 2017 at 19:44, Karthik Tayur  wrote:

> You could alter the default template to reflect the time of modification?
> In the same way the default template reflects the date of its creation, it
> should be possible to add a line to mention the last modified time. I don't
> know however how easy/difficult it is.
>
> Regards
>
> On 8 February 2017 at 22:55, Agustin Lobo  wrote:
>
>> Can I search my notes by time? For example, listing those notes
>> modified in the last 3 months
>> Thanks
>>
>> --
>> Agustin Lobo
>> aloboa...@gmail.com
>>
>> ___
>> 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
>>
>
>
> ___
> 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
>
>
___
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