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

Workaround for making text appear in the middle of the page? #84

Closed
nshern opened this issue Dec 8, 2023 · 5 comments · Fixed by #86
Closed

Workaround for making text appear in the middle of the page? #84

nshern opened this issue Dec 8, 2023 · 5 comments · Fixed by #86

Comments

@nshern
Copy link

nshern commented Dec 8, 2023

Is there a workaround for making text appear in the middle of the page instead of at the top?

@mfontanini
Copy link
Owner

There's no feature for this implemented yet. What we could do is add a comment command like <!-- jump_to_middle --> or something which moves the cursor to the middle. This means the cursor would start there so if you had 10 lines it would look like the first one is at the middle and the rest of them go from there. e.g. it wouldn't mean "vertically center" but more like "start at the vertical center". Would that work?

@nshern
Copy link
Author

nshern commented Dec 8, 2023

There's no feature for this implemented yet. What we could do is add a comment command like <!-- jump_to_middle --> or something which moves the cursor to the middle. This means the cursor would start there so if you had 10 lines it would look like the first one is at the middle and the rest of them go from there. e.g. it wouldn't mean "vertically center" but more like "start at the vertical center". Would that work?

Yes, I think this would work!

@mfontanini
Copy link
Owner

I just created a branch for this. Does this make sense to you?

asciicast

@nshern
Copy link
Author

nshern commented Dec 9, 2023

I think it works great :)

@mfontanini
Copy link
Owner

Sweet, merged then!

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 a pull request may close this issue.

2 participants