search for modified date

Home Forums cherrytree search for modified date

This topic contains 17 replies, has 3 voices, and was last updated by  Klaas Vaak 3 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #124910

    Klaas Vaak
    Member

    Is it possible to search for nodes that were modified on a certain date?
    Update: apologies for this question,”Search in ALL Nodes” allows for this.
    Update2: the time filter is useful but still needs you to insert a word in the “search for” box.

    What I am after is searching for nodes that were modified between 2 dates without being limited by having to insert that search word.

    • This topic was modified 3 months, 1 week ago by  Klaas Vaak.
    • This topic was modified 3 months, 1 week ago by  Klaas Vaak.
    #124914

    Dragle
    Member

    Where did you find an option to search by modification date? I don’t see that anywhere.

    As for something to put in the search box, if you check ‘Regular Expression’ and Search for * (an asterisk), it would match every node.

    #124915

    Cosmo
    Member

    Yes, if you use the search feature, you need to enter a search expression. But if yo use the feature to search in tags and node names (ctrl-t), no search expression is mandatory. It should do, what you (Klaas) want.

    #124916

    Klaas Vaak
    Member

    @dragle: if you press CTRL+Shift+F you’ll see a time filter section bottom half of dialogue box.

    • This reply was modified 3 months ago by  Klaas Vaak.
    #124918

    Klaas Vaak
    Member

    @cosmo: as usual, you’re a star !! Thanks for your help.
    Couple of other points:
    * if you look for a term/expression the result shows you on which line the expression occurs. When you look for a node modified before or after a date it lists the modified nodes but it does not tell you which lines were modified – actually all the listed nodes are shown as having been modified on line 1. Am I right when I say that?

    * When you click the date button yo get a calendar, and below it there are 2 boxes with a changeable number in each (in my case 6 and 33) – see https://imgur.com/kaHfj6B
    Calendar boxes
    What do those boxes and numbers mean?

    • This reply was modified 3 months ago by  Klaas Vaak.
    • This reply was modified 3 months ago by  Klaas Vaak.
    #124921

    Dragle
    Member

    @klaas: Thanks, I am still on version 0.37.6 so I guess that is a new feature in version 0.38. For some reason no newer version has been added to the PPA.

    I didn’t even realize I wasn’t getting the updates any more and my version is a year and a half behind. Is the PPA no longer supported?

    #124922

    Klaas Vaak
    Member

    @dragle: I have no idea what PAA is – please forgive me my ignorance.
    As for updates: Cherrytree automatically informs you when there is an update, at least with me it does.
    I don’t know if this search feature is new in 0.38, but I doubt it.

    #124923

    Dragle
    Member

    @Klaas: It’s OK, maybe you are on Windows and don’t have to use a PPA like on Linux. Anyway, I found that they had changed to a new one so I’ve switched to it and now I have the latest version, so all is good!

    The boxes below the calendar appear to be the current hour and minute, so you can adjust them to include time as well as date in your search.

    #124924

    Klaas Vaak
    Member

    @dragle: glad you got that sorted out.
    And for the 2 boxes, current hour & minutes seems strange. I just open the search node dialogue (CTRL+T) @ 10:12h my time, and the 2 boxes show 5 and 59 respectively. So compared to my screenshot they have changed, but whatever they represent, the little arrows indicate you can change them, so you can probably narrow down the search to hours and minutes, like you say. That provides for good granularity.

    #124925

    Cosmo
    Member

    @Klaas:

    Regarding marking of modification: CT does not preserve a history of the data, so it cannot know, what has been modified; consequently it cannot mark anything inside of the search result window (without a search expression).

    One hint more regarding the time setting for the searches: If you open the search dialog, you will find, that inside of the date / time buttons the preset time is always the current time of your system. Close the dialog and reopen it 1 or more minutes later and you will find, that the preset time has changed accordingly. – If you now click on the date / time button in the search dialogue to change the values, the time fields at the bottom have the same content as the button, which you clicked.

    Regarding ppa and notification about new versions:
    The old ppa showed already in the past to be rather unreliable and so giuspen added an own ppa 1 or 2 years ago. This ppa has shown to be always up to date (no surprise, as author and maintainer are identical). You can anyway activate in CT to search for new versions in the last section of the preferences; as long as a functioning ppa is present, this does not make much sense for Linux systems, but it is doable. It might be of interest for people, who use CT as well with Linuux and with Windows.

    #124927

    Klaas Vaak
    Member

    @cosmo:
    1. History of data – OK, understood, makes sense.
    2. Time: I don’t see that it is linked to my system time, as explained to Dragle above. Nevertheless, they can be used to set the time as part of the search criteria.
    3. PPA – that is a Linux issue, as Dragle explained so it is not applicable to me on my Windows system.

    #124930

    Dragle
    Member

    I tested the default time issue on the Search dialog Time filter. It appears that the system time is read when you first open CherryTree, and then remains the same until you close and re-open CherryTree.

    Even when I opened a different file, the default time shown remained the same since CT had not been closed and re-opened. I also tried modifying and saving the file, but the default time stayed the same.

    When I chose File | New instance to open another CT window, the time was updated for the new instance, but stayed the same in the original instance.

    Edit to add: I would also suggest putting labels “Hour” and “Minute” on those Time boxes, or maybe just one label in front of both, like
    Time: [ ]:[ ]
    since it is kind of confusing at first to realize what they are for.

    • This reply was modified 3 months ago by  Dragle.
    #124932

    Klaas Vaak
    Member

    @dragle: many thanks for your help.
    Regarding your last para, I agree with that comment, and assume that is a comment for Giuseppe since we as users cannot change anything to the UI.

    #124933

    Cosmo
    Member

    Regarding the labels for hour and minute: I suggested that already a year ago. The problem at that time was the freeze for the language files. I think, that in the meantime it has been forgotten or postponed because of the GTK / python switch.

    • This reply was modified 3 months ago by  Cosmo.
    #124935

    Klaas Vaak
    Member

    @cosmo: yes, I thought it was a developer’s issue. It is not a big issue, but it is still a pity Giuseppe has not been able to do anything about it. The GTK/Python switch (why is he doing that anyway?) and the baby/family life take up a lot of his time, and therefore do not allow for new features or issue resolutions.

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.