nadrad / h-m-m

Hackers Mind Map
GNU General Public License v3.0
1.89k stars 53 forks source link

Feature request : image support #51

Closed klownie closed 1 year ago

klownie commented 1 year ago

Hello.

I love your project and i use it all the time when doing art. I was just wondering if it would be possible to implement a terminal an image support. Like Kitty image protocol.

nadrad commented 1 year ago

I'm glad you like it :)

Viewing images inside the mind map sounds like a really complicated task to me, and I don't know whether it's justifiable to do so in a terminal application like h-m-m. Storing the images in plain text files can be challenging as well, if we want the file to stay readable without h-m-m.

Alternatively, it's easy to add a feature to have nodes containing links to local files or those on the Web, and have a key binding in h-m-m to open them in their default applications. Would that be helpful to you?

klownie commented 1 year ago

yes it would be very helpful. thank you

nadrad commented 1 year ago

Done :)

When you press Ctrl+o, it attempts to open the active node with xdg-open. It should work well for files (with absolute or relative paths), as well as URLs.

klownie commented 1 year ago

thanks i can probably figures out a way to open the images in other terminal using kitty +kitten icat