giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.29k stars 457 forks source link

Regular expression help - dead url #2511

Open Groberen opened 1 month ago

Groberen commented 1 month ago

Is your feature request related to a problem? Please describe. In the search and replace dialog box, there is a link to help with regular expressions. However, this link has being dead for a while.

Describe the solution you'd like

Immediately solution: Replace original (dead) url: https://developer-old.gnome.org/glib/stable/glib-regex-syntax.html with (this is just an example I found by searching) : https://web.mit.edu/barnowl/share/gtk-doc/html/glib/glib-regex-syntax.html

Better solution - local help file in .ctb format

Since any static URL can become obsolete at any time, I suggest the contents of the web pages are to be transferred to a separate .ctb file, and this .ctb file being extracted when installing CT.

NB: Since the user will be able to modify the regexp help file in .ctb format, this file should have some protection from being overwritten when re-installing CT.

gitvectors commented 1 month ago

I observe that many users of CherryTree overlook leveraging built in features such as CodeBoxes.

Create a CodeBox .. Python3

Paste this ..

import webbrowser webbrowser.open("https://duckduckgo.com/")

Then .. Execute

Or simply Insert/Edit Link

And of course you can add your own bookmarks into your browser. Or use a client such as Zotero.

CherryTree has many hidden gems.

Groberen commented 1 month ago

Ah, yes - of course I have my own set of most-used regex syntax in a separate node where applicable, the dead link was just annoying enough make me create a post on that.

giuspen commented 1 month ago

Thanks for reporting this @Groberen I replaced for now with https://www.geany.org/manual/gtk/glib/glib-regex-syntax.html as geany has been my favourite text editor since before cherrytree was started, I will consider in future install that page with cherrytree so it can be visited offline