cherrytree icon indicating copy to clipboard operation
cherrytree copied to clipboard

Regular expression help - dead url

Open Groberen opened this issue 1 year ago • 3 comments

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.

Groberen avatar May 21 '24 20:05 Groberen

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.

gitvectors avatar May 22 '24 14:05 gitvectors

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.

Groberen avatar May 22 '24 19:05 Groberen

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

giuspen avatar May 22 '24 20:05 giuspen