Planner: The notes part of a task should handle links to websites

Created on 25 Jan 2020  ·  12Comments  ·  Source: alainm23/planner

Help Wanted

All 12 comments

What kind of help would you like to see for this issue?

I would like to know how do it. I haven't found sample code that does this functionality,

Meaning you've thought about it, too?
Do you think popular notes apps or markdown editors located in the AppCenter could be a good inspiration?

Yes, using Markdown is a good solution. However, in order to view a file in Markdown it is necessary to create a web view and I feel that this is a very complicated process.

Couldn't we just use a Gtk.Label formatted with Pango? That would enable us to render links. Most of the Markdown syntax could be mapped to pango. We could just render a label in front of the Gtk.Textview. When someone clicks onto the label, we quickly change to edit mode and render the Textview. Trello implements it the same way.
I would like to implement this as I find it very useful too. But let's start with just the link and without the whole markdown.

Something like this?

image

image

Looks very promising. Thanks a lot!
I also had a try yesterday evening. I think there are some corner cases in the function get_markup_format (). I will soon send you a pull request to make this even better.

Why is it that the link is only recognizable as such if the opened task note has no focus? As soon as I focus the note section of the task that contains the note, the URL formatting disappears again and the link turns black. Until I move the focus away again.

Is there a solution for a persistent rendering?
I have also noticed that the project description can't handle links. Why is there a difference to the task note here?

Because it is a solution that other task managers use as @romixch says, I like the idea of ​​rendering in real time but I'm not sure if Gtk supports it, but for me it works very well.

I think it is better not to handle links when the field is in edit mode. It may otherwise be annoying when you want to change the url, click on it and the browser pops up.

The description may also be "linkified". It is just not yet done.

Btw: we could also render email addresses as clickable.

Thinking the same about email addresses, do you think you could implement this feature? I still feel too silly to understand his incredible algorithm.

I think it is better not to handle links when the field is in edit mode. It may otherwise be annoying when you want to change the url, click on it and the browser pops up.

Thank you for your explanation. I can go along with that.

The description may also be "linkified". It is just not yet done.
Btw: we could also render email addresses as clickable.

Both would be nice improvements!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hedronmx picture Hedronmx  ·  7Comments

4jNsY6fCVqZv picture 4jNsY6fCVqZv  ·  7Comments

naaando picture naaando  ·  7Comments

Philip-Scott picture Philip-Scott  ·  4Comments

gavr123456789 picture gavr123456789  ·  3Comments