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  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  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"  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" 
  An: "Murat Güven" 

  Cc: "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"  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" 
  An: "Amir Baghban" , "Agustin Lobo"
  
  Cc: "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  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




  --
  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 
# 2017-02-16: patched with date entries by Murat Güven 

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
buttons=gtk.BUTTONS_CLOSE,
defaultwindowsize=(500, 300)
)

self.hbox_from_date = gtk.HBox()
self.label_from_date = gtk.Label("From date: ")
  

Re: [Zim-wiki] Cannot copy images

2017-02-17 Thread Steffen Schuldenzucker

Hi Agustin,

Short answer: It's a design bug. :(

Short workaround: Copy both the page text that contains the images as 
well as the page's attachments to the new location.


Longer, technical answer:

This stems from the fact that images are embedded as special links to 
attached files (use Tools -> Edit Source to see that). Copy'n'pasting 
"the image" AFAIA only copies the link to the image. Now there are a few 
issues related to that:


1. If the link is relative (it usually is), then that link points to
   the wrong place in the new page.
2. The actual file is not copied, so if you move or delete the file in
   the original page later (or rename the original page itself), it's
   gone in the new page, too.

IMHO this should be fixed by teaching ZIM to differentiate between 
"attachment/embedded"-type links like local images, files, or equations 
and "reference"-type links like remote files and anything else.
Also: Can we unify the way we link to attachments vs pages (where very 
similar issues arise, and have partially been fixed)?


Related bugs:
https://bugs.launchpad.net/zim/+bug/1086343
https://bugs.launchpad.net/zim/+bug/330320

Best, Steffen

On 17-Feb-17 12:00, Agustin Lobo wrote:

Why can't I copy pictures from one zim page and paste to another?
Thanks



___
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] Cannot copy images

2017-02-17 Thread Agustin Lobo
Why can't I copy pictures from one zim page and paste to another?
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


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  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  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"  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" 
>>>  An: "Murat Güven" 
>>>
>>>  Cc: "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"  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" 
  An: "Amir Baghban" , "Agustin Lobo"
  
  Cc: "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  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
>>>
>>>
>>>
>>>
>>>  --
>>>  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