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
set cmdheight=0 #1004
Comments
You can comment out the lines that check if command height is <1, and it mostly works, although it occasionally segfaults or corrupts the display (hit ^L to redraw). The command line still pops up in the bottom line, disappears after you're done.
|
@nfultz I can't reproduce a segfualt--that change actually seems to work for me. What do you do to make it happen? |
Actually with scrolloff=10 and laststatus=2, it works perfectly for me. |
@nfultz scrolloff and laststatus set to what? |
I second this. I looked in vain for a way to achieve this result in vanilla Vim. |
👍 it’s been a long time I want to do this… that would be a great feature! |
This looks great! I want be able to do this in neovim!! |
I think this feature is useful for developing GUIs. In this context it would be nice to disable command line, and have some extra notification system in the API to receive the output that is usually sent to the command line. Does it make sense? |
This actually gets pretty close (suggested by @tweekmonster):
|
For posterity, here's an attempt to minimize weirdness: let &lines += 1
function! s:cmdline(key) abort
let &lines += 1 * (a:key ==# ':' ? -1 : 1)
redraw
return a:key
endfunction
nnoremap <expr><silent> : <sid>cmdline(':')
cnoremap <expr><silent> <cr> <sid>cmdline("\<cr>")
cnoremap <expr><silent> <esc> <sid>cmdline("\<esc>") It'll cause the screen to flicker and messages will still overwrite the the last line. Maybe this'll be good enough if there's a PR to skip printing single line messages if there isn't enough room. |
I was struggling to simulate |
Compiled it with the patch @nfultz suggested and it's working very nice. |
Just tried out the patch myself - it does work! But...there are issues:
|
A bold usecase for |
I looked at something similar a while ago: #4382 |
This should really be the default functionality for users new to Vim entirely - it's simply better UI design. There's absolutely no good reason the command line (and temporary/modal messages, such as from |
Would be nice to see a proper solution to this. |
I know it's a small feature but it'd be game changer for me. |
After the introduction of floating windows I don't need this feature anymore, but before that I was simply compiling a patched version of Neovim and it was working very nicely, to do so all you have to do is open |
@sassanh Patching no longer works even when patching the equivalent code in the new file... it causes segfaults. |
@sassanh How's this related to floating windows? It's just better UI generally. |
@kutsan My usecase was to open fzf on the bottom of screen and I didn't want to have codlin below the fzf input line, after floating windows are introduced now I open fzf as a floating window. But I agree that it is generally better UI. |
+1 That this would be a great feature to have, currently using the code provided by tweekmonster but it flashes/is buggy sometimes. |
Would be nice to have this possibility. I want to create a statusline that provides a "omni-line" functionality that transforms itself into a cmdline when needed. Today it's not possible and should be possible to do it. |
i agree with @lucastrvsn, that would be a game changer. Imagine something like airline that integrates with the command line. |
I would love to have that! |
This is not on our list, but we welcome contributions. |
Fix neovim#1004 Limitation: All outputs need hit-enter prompt. Related: neovim#6732 neovim#4382
Fix neovim#1004 Limitation: All outputs need hit-enter prompt. Related: neovim#6732 neovim#4382
Being able to hide the command line and gain an extra line would be nice.
This one is tricky. What do we do when there's output and the height is 0? One thing we could do is just not show any output, except for output that requires interaction (a choice, or tab completion). Another thing we could do is show output like normal and treat it like a multiline output that tells you to press enter to continue, after which the cmdline goes back to it's original height (0). A third thing we could do is give the user a new flag for the
shortmess
option to turn off all non-interactive messages. The flag could beN
for "No output and all other flags are ignored".When
:
is typed the cmdline changes to a height of 1. After the command is executed, the cmdline disappears.A new feature could be to make the status line more customizable so that a portion of the status line could be designated for commands. Commands could appear in the middle of the status line for example, and after executing the command the output appears in the same spot, truncated on the right side with a configurable symbol like
...
or>
.The text was updated successfully, but these errors were encountered: