Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(graph): ignore trailing whitespace and other data #154

Merged
merged 9 commits into from
Dec 19, 2023

Conversation

Juerd
Copy link
Contributor

@Juerd Juerd commented Dec 15, 2023

This adds support for a typical message format where a number is followed by whitespace and a unit, e.g. "550 PPM" or "20.0 °C" or "9000 W", by ignoring the whitespace and everything after it.

This adds support for a typical message format where a number is
followed by whitespace and a unit, e.g. "550 PPM" or "20.0 °C" or
"9000 W", by ignoring the whitespace and everything after it.
@EdJoPaTo
Copy link
Owner

I like the idea! Thank you for suggesting something like this. I hope I can look into it on Sunday (I want to make sure to understand side effects or possible generalization).

Copy link
Owner

@EdJoPaTo EdJoPaTo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Juerd do you have thoughts about my refactoring?

I still think this is a nice feature!

src/interactive/details/history/graph_data.rs Show resolved Hide resolved
@EdJoPaTo EdJoPaTo changed the title feat(tui): for graph, ignore trailing whitespace and other data feat(graph): ignore trailing whitespace and other data Dec 17, 2023
Copy link
Owner

@EdJoPaTo EdJoPaTo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Juerd for the idea and the initial implementation!

@EdJoPaTo EdJoPaTo merged commit 0288652 into EdJoPaTo:main Dec 19, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants