helix icon indicating copy to clipboard operation
helix copied to clipboard

feat: new `statusline.merge-with-commandline` option

Open nik-rev opened this issue 1 year ago • 3 comments

Having the command line and the statusline each take 2 rows may not be desirable to all.

Kakoune and Neovim both offer the option to merge these two lines into a single line.

The biggest problem is that since the status message is almost always empty, it takes up an entire line at the bottom of the screen which could be used by actual text instead.

I added a config option that merges the statusline and the command line into a single one. if there is an editor message, it is simply overlaid on top of the statusline.


To enable it, run :toggle statusline.merge-with-commandline or add this into config.toml:

[editor.statusline]
merge-with-commandline = true
Before vs After

Before

image

After

image

Closes https://github.com/helix-editor/helix/issues/1662

nik-rev avatar Dec 06 '24 14:12 nik-rev

This made me think; what about swapping the command line and status line, and having the command line be "transparent" to the buffer/window by default? Then if you start typing a command, it pops up above the status line? Seems like the best of both worlds since you would still be able to see the status line when typing a command

rockboynton avatar Dec 12 '24 18:12 rockboynton

This made me think; what about swapping the command line and status line, and having the command line be "transparent" to the buffer/window by default? Then if you start typing a command, it pops up above the status line? Seems like the best of both worlds since you would still be able to see the status line when typing a command

I think there's still value in having 1 line vs 2 lines at the bottom. I agree swapping them would be a better default (out of scope of this PR), but imo there should still be an option to merge them for those who want it

nik-rev avatar Dec 12 '24 18:12 nik-rev

Being able to hide everything except the code is really valuable for both screen real-estate and non-distracting "zen" modes.

I think all options are valid here:

  • swapping with command line
  • completely hiding it
  • toggle via button

My personal favorite would be to auto-hide the command line and status line and then show them both if ":" is typed in normal mode.

zveinn avatar Mar 20 '25 14:03 zveinn

Thanks for this PR, I also don't like the extra space taken. One small cosmetic issue I have, it looks like the background of mode (NOR,SEL) stays underneath and unnecessarily highlights part of the status message.

Here's the screenshot.

Capture

I see in the code that you're trying to avoid this. Is it somehow related to the theme I use (catppuccin_latte)?

yerlaser avatar Aug 12 '25 10:08 yerlaser

When I open the command line, a pop-up menu appears, obscuring the status bar. In reality, only one command or the status bar can be displayed at a time. It would be better to combine them into one line.

fj0r avatar Nov 04 '25 08:11 fj0r