Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Feature Request: Centered code mode (like intellij's distraction free mode) #3203

Closed
ldubos opened this issue Jul 26, 2022 · 4 comments · May be fixed by #9838
Closed

Feature Request: Centered code mode (like intellij's distraction free mode) #3203

ldubos opened this issue Jul 26, 2022 · 4 comments · May be fixed by #9838
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@ldubos
Copy link

ldubos commented Jul 26, 2022

Hi, I find Intellij's "distaction free mode" really interesting, especially the fact of centering the code on the screen. I find it much less tiring than having to constantly look at the left side of the screen, which happens quite often with helix when you have only one window opened, because there is no sidebar which in an editor like VS Code center the code even if it's not the intention at the beginning.

So it could be cool to having an option in config file to allow the user to choose to center his code in the window, maybe with exception like when we are in split-screen.

an example of the feature (in vscode):
image

@ldubos ldubos added the C-enhancement Category: Improvements label Jul 26, 2022
@AceofSpades5757
Copy link
Contributor

I think this usually gets implemented as a plugin, like with goyo.vim for Vim. Different view options, or more control over the view would be nice.

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jul 30, 2022
@archseer
Copy link
Member

Seems like it overlaps #2262

@sicher
Copy link

sicher commented Aug 8, 2023

For now you can do :set gutters.line-numbers.min-width 30 or whatever matches your terminal width, text-width and soft wrap settings.

@gavales
Copy link

gavales commented Dec 8, 2023

For now you can do :set gutters.line-numbers.min-width 30 or whatever matches your terminal width, text-width and soft wrap settings.

TBH this will more than satisfy me for now, the way it behaves is what I desire, especially when combined with soft-wrap.wrap-at-text-width.

When a scripting language is implemented, you could easily write a plugin to calculate the correct gutters.line-numbers.min-width to centre the viewport. As long as the maximum value gutters.line-numbers.min-width doesn't get restricted like it is in vim, that is. :)

@helix-editor helix-editor locked and limited conversation to collaborators Apr 11, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10357 Apr 11, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants