-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Nullspace rendering: limiting the text view width #11409
base: master
Are you sure you want to change the base?
Conversation
Is this any different than zen mode? |
Zen mode would remove everything except the code view (if we go by VS Code's excellent example of a Zen mode). This does not do that, but it does introduce a part of the solution for Zen mode; centred views. I wrote this as I work on a 32:9 UWS monitor, and I was getting neck ache from looking 'hard-left' for so long editing single files with Helix. Ideally, I would like to introduce a layout mode that means it 'pulls' content into the centre of the screen, so that if I open a second window, the two pages would sit next to each other in the centre of the screen (this is also different to VS Code's Zen mode). This is not trivial at the moment as the layout pass determines the rendering area, without giving the original available area that was subdivided, so I'm just tinkering with making that available. I also use Tmux to have a Zsh at hand at all times, so this simple solution might not be completely fool proof either, but honestly it would still be a huge improvement for me. In short, there is stuff I want to do that would move this even further away from 'Zen Mode' functionality, and it is already quite far from it as it stands, as it does not remove buffer-line, status-line, etc... |
Allow the text (and gutter) to centre into the view when rendering.
Style
Can be styled with
ui.nullspace
(falls-back toui.linenr
).config.toml
Uses option
text_width
as the limiting-width of the text area.Known Issues
sh
output renders in wrong place initiallyPotential Improvements