nadrad / h-m-m

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

Going right of terminal width results in messy output #71

Closed wschroeder closed 6 months ago

wschroeder commented 6 months ago

I was experimenting with a map larger than the width of my terminal (iTerm2 on MacOS):

image

If I c center on "blue", I get this:

image

What I expect is this (I created this issue so I could PR my solution, so this screenshot comes from my solution):

image
hashguide commented 6 months ago

Centering the nodes for does this as well. To get out of it, type |
Not sure what the center node is supposed to do, but not really needed imo.

wschroeder commented 6 months ago

Here is my proposed PR fix

nadrad commented 6 months ago

Thanks