Skip to content

Search link contentΒ #2719

Closed
Closed

Description

@EeyoreTheDonkee

Only the label of a hyperlink seems to be searchable? Is this correct? I hadn't noticed this until I tried introducing the app to a family member. It's a show-stopper for them. Which is a pity since obviously there are work-rounds. But, I was surprised I couldn't do it as it seems like a simple thing. Anyway, an example:

Link label: lxd
Link content: https://canonical.com/blog/topic/lxd

e.g. lxd

No matter what mode + options set in the search feature, CherryTree will not return the link if the search string is "canonical" while it will work if "lxd", "xd", "x", etc. is/are searched for.

Perhaps I'm overlooking something, but, if this feature doesn't already exist somehow, then a checkbox to toggle this on/off is also suggested. Thanks in any case.

Activity

  1. giuspen commented on Jun 5, 2025

    @giuspen
    Owner

    I will have a look

  2. EeyoreTheDonkee commented on Jun 6, 2025

    @EeyoreTheDonkee
    Author

    Yes, my family member has discovered the long term benefits(?) of certain (other) desktop notes apps i.e. Notes in the cloud are not owned by the creator and there is no guarantee that they are even transferable to the next version of the app. There's no (consistent, easy) way to back them up.. or convert them to something non-proprietary. It's an amazing bait and switch that has happened. Anyway, we're looking for alternatives now and I suggested CherryTree.

  3. dbwiz commented on Jun 19, 2025

    @dbwiz

    This is also: [https://github.com//issues/975]
    As a use case: I had a situation where this the path to my "documents" folder was changed to "Onedrive\documents" and all my absolute links were broken. It would have been really useful to be able to allow regexps on path names specifically in links. I did it on the names of the links, I just couldn't do it on the addresses of the links. I now use relative links.

  4. giuspen commented on Jun 19, 2025

    @giuspen
    Owner

    This is implemented I just have to do a little more testing and release a test bundle so you can test as well

  5. EeyoreTheDonkee commented on Jun 19, 2025

    @EeyoreTheDonkee
    Author

    Wow, great ☺️

    (I tried downloading the commits you posted 2 weeks ago and cherrytree built and ran. But, obviously you weren't done)

  6. giuspen commented on Jun 23, 2025

    @giuspen
    Owner

    Please test so called v1.5.0+13 that you can download from https://www.giuspen.net/cherrytree/#testing

  7. EeyoreTheDonkee commented on Jun 24, 2025

    @EeyoreTheDonkee
    Author

    Very nice. I tried the AppImage version under Lubuntu, works. I'll try the Windows version tomorrow, maybe Arch and Debian. I can't imagine I'll find anything though..

    Search for tomshardware (this essentially returns URLs):

    Image

    Search for [SOLVED] - Cooling (this contains URL labels):

    Image

    Same link found two ways.

  8. m1k3s0 commented on Jun 24, 2025

    @m1k3s0
    Collaborator

    I closed this as completed but it appears this does not address the #975 issue.

  9. EeyoreTheDonkee commented on Jun 24, 2025

    @EeyoreTheDonkee
    Author

    I hadn't finished testing?? I also didn't test for regexp, I will (I forgot about 975, but, I inherited this one), but, I hope you did a test before closing out the issue?

  10. EeyoreTheDonkee commented on Jun 24, 2025

    @EeyoreTheDonkee
    Author

    search for tom.hardware returns the exact same output as tomshardware (see my previous post.. 32 Matches), this is the expected result Re: my note book.

    But, @m1k3s0, I see now, that replace doesn't work.

    I tried to search for tom.hardware and replace with tomzhardware and while the search worked, I don't see the replace result.

    I don't see the change, however the notebook change indicator flipped on. Retrying hangs the search/replace dialog popup.

    So, in retrospect your 975 is more complex than 2719, but, 2719 is a subset of 975 and/or is on the critical path of 975 and I understand why 2719 was addressed first even though you posted 975 first.

  11. m1k3s0 commented on Jun 24, 2025

    @m1k3s0
    Collaborator

    Sorry about that, I jumped the gun on closing it. It’s open again.

  12. reopened this on Jun 24, 2025
  13. giuspen commented on Jun 24, 2025

    @giuspen
    Owner

    I will have a look at supporting also replace

  14. EeyoreTheDonkee commented on Jun 25, 2025

    @EeyoreTheDonkee
    Author

    Ok, I ran some tests on the portable Windows version and the AppImage version on debian trixie. Searching (with regexp as well) for link content and/or link label works. Good stuff. Should I close 2719 out now or leave it for the 975 work?

  15. giuspen commented on Jun 25, 2025

    @giuspen
    Owner

    Thanks for your testing @EeyoreTheDonkee let's leave this open for now as I will try to support also replace in link and I will update here on the status.

  16. giuspen commented on Jul 12, 2025

    @giuspen
    Owner

    It is now possible not only to search but also to replace in links. If anybody would like to test that, please try https://www.giuspen.net/cherrytree/#testing (so called v1.5.0+33)

  17. EeyoreTheDonkee commented on Jul 12, 2025

    @EeyoreTheDonkee
    Author

    Ok, on lubuntu 25.04 and Windows portableapps version, find and replace:

    1. tomshardware -> tomzhardware worked.
    2. tom.hardware -> tomzhardware worked (regular expression)

    Excellent.. @m1k3s0 what do you think?

  18. m1k3s0 commented on Jul 13, 2025

    @m1k3s0
    Collaborator

    @EeyoreTheDonkee Thanks for testing. If it meets your needs then we can close the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions