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

Option to pretty format small vectors into a single line. #298

Closed
kapple19 opened this issue Dec 5, 2024 · 2 comments
Closed

Option to pretty format small vectors into a single line. #298

kapple19 opened this issue Dec 5, 2024 · 2 comments

Comments

@kapple19
Copy link

kapple19 commented Dec 5, 2024

Having a vector pretty format as

"bearings": [
    -165,
    -150,
    -135,
    -120,
    -105,
    -90,
    -75,
    -60,
    -45,
    -30,
    -15,
    0,
    15,
    30,
    45,
    60,
    75,
    90,
    105,
    120,
    135,
    150,
    165,
    180
],

would be much nicer if it was

"bearings": [-165, -150, -135, -120, -105, -90, -75, -60, -45, -30, -15, 0, 15, 30, 45, 60, 75, 90, 105, 120, 135, 150, 165, 180],

especially since I have so many of them.

I can somewhat understand if this would be tricky.
Particularly if it had a condition that it was a numeric vector (as opposed to a vector of vectors) with a configurable size limit.

Is there functionality already available that allows me to alter the formatting? I don't see an option for AlignmentContext on this.

@Naunet
Copy link
Contributor

Naunet commented Jan 8, 2025

I think this is a duplicate of #283

@kapple19
Copy link
Author

Ah, I missed that sorry.

@kapple19 kapple19 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2025
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

No branches or pull requests

2 participants