You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to collapse each match into a single line, for further filtering with tools like grep.
For example, when matching table rows, each row often span multiple lines, due to how the html was formatted.
My current workaround is to minify the html before passing it to htmlq (cat myfile.html | sd '\n' ' ' | tr -s ' ' | htmlq ...), but a simple switch in htmlq would make this way easier.
Not sure how this would be handled in tags like pre tough...
The text was updated successfully, but these errors were encountered:
It would be nice to be able to collapse each match into a single line, for further filtering with tools like
grep
.For example, when matching table rows, each row often span multiple lines, due to how the html was formatted.
My current workaround is to minify the html before passing it to
htmlq
(cat myfile.html | sd '\n' ' ' | tr -s ' ' | htmlq ...
), but a simple switch inhtmlq
would make this way easier.Not sure how this would be handled in tags like
pre
tough...The text was updated successfully, but these errors were encountered: