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

create one-line window / remove local statusline #9731

Open
epheien opened this issue Mar 14, 2019 · 8 comments
Open

create one-line window / remove local statusline #9731

epheien opened this issue Mar 14, 2019 · 8 comments
Labels
enhancement feature request statusline tabline, winbar, statuscolumn ui ui-extensibility UI extensibility, events, protocol
Milestone

Comments

@epheien
Copy link

epheien commented Mar 14, 2019

Some times, I need one line window, such like WinBar of vim8.1 or notebook tabs like gui.
But I found, I can not make one line window, the minimize window has 2 lines, 1 line content and 1 line statusline.
Can nvim provide an option to hide the statusline of the window?

@bfredl
Copy link
Member

bfredl commented Mar 14, 2019

Does set laststatus=0 what you want?

@epheien
Copy link
Author

epheien commented Mar 14, 2019

Does set laststatus=0 what you want?

No
when :sp, even if set laststatus=0, above window always has statusline.

@justinmk
Copy link
Member

justinmk commented Mar 14, 2019

floating windows do not have statuslines, so you can use that to make a "one line window":

:call nvim_open_win(bufnr('%'), v:false, 80, 1, {'relative':'editor', 'row':2, 'col':5})

This requires Nvim 0.4.x (development version).

@justinmk justinmk added closed:question issues that are closed as usage questions ui labels Mar 14, 2019
@justinmk justinmk changed the title Remove local statusline create one-line window / remove local statusline Mar 14, 2019
@justinmk justinmk added this to the 0.4 milestone Mar 14, 2019
@epheien
Copy link
Author

epheien commented Mar 14, 2019

floating windows do not have statuslines, so you can use that to make a "one line window":

:call nvim_open_win(bufnr('%'), v:false, 80, 1, {'relative':'editor', 'row':2, 'col':5})

This requires Nvim 0.4.x (development version).

I known floating window feature, but floating window can not implement one line window.
Because I need a one line window just not overlay any content, such as a local tabline.
Currently, nvim can not implement this. If use floating window in line 1, it cover line 1 content of the current buffer.
I known emacs can simply hide statusline (mode-line).
In general, every window (except floating window) has border, statusline is a horizontal border, and vertical border is '|', I think, if these border can control to hide or show, tui of vim can will be greatly enhanced. of cause include floating window.

@justinmk justinmk reopened this Mar 14, 2019
@justinmk justinmk added enhancement feature request and removed closed:question issues that are closed as usage questions labels Mar 14, 2019
@justinmk justinmk modified the milestones: 0.4, unplanned Mar 14, 2019
@zeertzjq
Copy link
Member

zeertzjq commented Oct 5, 2021

It will also be nice to have multi-line windows without statusline, or maybe multi-line "docked" floating windows like what is mentioned in #12925. That may help solve problems like nvim-treesitter/nvim-treesitter-context#28.

@justinmk justinmk added the statusline tabline, winbar, statuscolumn label Oct 5, 2021
@b0o
Copy link

b0o commented May 7, 2022

"Docked" floating windows would be useful for Incline.nvim.

@justinmk
Copy link
Member

"Docked" floating windows would be useful for Incline.nvim.

#12925

@justinmk
Copy link
Member

There is cmdheight=0 #16251 now, but it's global.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request statusline tabline, winbar, statuscolumn ui ui-extensibility UI extensibility, events, protocol
Projects
None yet
Development

No branches or pull requests

5 participants