tmux-plugins / tmux-urlview

Quickly open any url on your terminal window!
MIT License
262 stars 32 forks source link

Multiline URLs in Mutt #31

Open kevr opened 3 years ago

kevr commented 3 years ago

Hi tmux-urlview,

FIrst, thanks for taking the time to write this little plugin.

Second, I've been having one little bit of a problem with tmux-urlview: Multiline URLs in mutt are never picked up as complete URLs (the first line is picked up). I believe this is problematic because mutt/vim itself split the URLs to the next line with \n, causing tmux-urlview's regex to stop.

I worked around it a little bit by removing \ns from the output that urlview parses, but it doesn't work in all cases (...it can still attach following lines even if they aren't part of the URL).

Do you folks have any thoughts about how I should approach this? I'd like to get it to work, but it kind of seems like Mutt+Vim is incompatible with how urlview looks at links. Does anybody else have any experience with this?

Thank you for your time!