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

How to disable GUI tabline? #361

Closed
unclechu opened this issue Nov 18, 2017 · 14 comments
Closed

How to disable GUI tabline? #361

unclechu opened this issue Nov 18, 2017 · 14 comments

Comments

@unclechu
Copy link

How to just use default text-based tabline?

I have tabline set as %!airline#extensions#tabline#get() but see GUI tabs, without any features provided by extension, no window titles, numbers, etc. Just current buffer, kinda expand('%').

@equalsraf
Copy link
Owner

I dont have a method to disable it at the moment, but I'm willing to add something to configure this behaviour. Preferably in the form of an option in ginit.vim

@justinmk
Copy link
Contributor

There is already a showtabline option. Instead of a new option, nvim-qt could listen for changes to that option, and also check it.

au OptionSet showtabline ...

@equalsraf
Copy link
Owner

There is already a showtabline option. Instead of a new option,

:+1 was the option supposed to work for the GUI events too, the docs suggest as much

This is both for the GUI and non-GUI implementation of the tab pages

@unclechu
Copy link
Author

@equalsraf for neovim-gtk it's done by this command:

call rpcnotify(1, 'Gui', 'Option', 'Tabline', 0)

@equalsraf
Copy link
Owner

@unclechu cool I was not aware of that.

Preferably in the form of an option in ginit.vim

I will have to correct myself on this one. UI attachment happens before ginit.vim is sourced i.e. the option in ginit.vim would be too late to have an effect.

@legendre6891
Copy link

Merry xmas/happy holidays!

What is the status of #362 at the moment? It would be great if we could use the 'TUI' tabline instead of Qt's.

@justinmk
Copy link
Contributor

showtabline and other UI related options are sent as UI events in Nvim 0.2.3. so no need for extra options.

@equalsraf
Copy link
Owner

showtabline and other UI related options are sent as UI events in Nvim 0.2.3. so no need for extra options.

showtabline disables the tabline for both the external tabline and the TUI, but they want a way to use the internal TUI tabline in neovim-qt instead of the external one that was added recently.

@RichardWarfield
Copy link

There is a command line option to disable the external tabline:

nvim-qt --no-ext-tabline

@BoltsJ
Copy link
Contributor

BoltsJ commented Jul 31, 2018

You can now use GuiTabline 0 in ginit.vim to go back to the TUI tabline.

@equalsraf
Copy link
Owner

Closing this, thanks @BoltsJ

@justinmk
Copy link
Contributor

justinmk commented Aug 2, 2018

The option_set UI redraw event publishes the showtabline option value whenever it is changed. Why not use that instead of adding another shim command?

This is a lot of code and an unnecessary command, and it fractures what the user must learn ...

@equalsraf
Copy link
Owner

@justinmk the showtabline hides or shows the tabline completely. What they wanted was a way to use the tabline provided by neovim instead of the Qt gui widget tabline.

@justinmk
Copy link
Contributor

justinmk commented Aug 2, 2018

My mistake, Nvim needs to support 'guioptions' to satisfy my comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants