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

Support for positioning the lable at the top of output #18

Open
rorourke-iot opened this issue Nov 30, 2023 · 7 comments
Open

Support for positioning the lable at the top of output #18

rorourke-iot opened this issue Nov 30, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@rorourke-iot
Copy link

rorourke-iot commented Nov 30, 2023

In the same way LINQPad will put it's label at the beginning of Dump output.

¦ Heading
¦ ╭───────────────╮
¦ │ "Output Data" │
¦ ╰───────────────╯
@MoaidHathot MoaidHathot self-assigned this Dec 1, 2023
@MoaidHathot MoaidHathot added the enhancement New feature or request label Dec 1, 2023
@MoaidHathot
Copy link
Owner

Hi @rorourke-iot, I'll see what I can do. Maybe I can expose configuration for setting the style of labels.

@rorourke-iot
Copy link
Author

I stepped through the code looking for where the caption is written out. I got as far as console.Write(_renderable); in SpectreConsoleRenderedObject:Output where it became a black box.

@arex388
Copy link

arex388 commented Nov 24, 2024

I too would like to see this done. The label on the bottom is not very intuitive, especially if a large object is being rendered and you have to scroll to its end to know what it's labeled as.

@MoaidHathot
Copy link
Owner

@arex388, @rorourke-iot, I'm working on this for the next release, hoping to finish it during December.

@sqlnew
Copy link

sqlnew commented Jan 16, 2025

I strongly support this suggestion. LinqPad's default label is always at the top, so placing it at the top is more intuitive than at the bottom!

@MoaidHathot
Copy link
Owner

MoaidHathot commented Jan 20, 2025

@rorourke-iot, @arex388, @sqlnew, what do you think about the following examples?
My main issue is the nesting, but assuming this is set in configuration, is this similar to what you were looking for? We can set the alignment of the Label to the Left or Right as well.

Image

Image

@arex388
Copy link

arex388 commented Jan 21, 2025

That looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants