akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.36k stars 59 forks source link

welcome screen skipped #470

Open gmankab opened 1 year ago

gmankab commented 1 year ago

hello

goneovim creates new empty file, and shows it instead of noevim's welcome screen

how can i see welcome screen on startup?

shiena commented 1 year ago

:help :intro

gmankab commented 1 year ago

:help :intro

oh, why after i opened :help :intro, the welcome screen stopped skipping?

i think it's weird

shiena commented 1 year ago

Please read the explanation in the intro carefully.

When Vim starts without a file name, an introductory message is displayed. It is removed as soon as the display is redrawn. To see the message again, use the ":intro" command. To avoid the intro message on startup, add the "I" flag to 'shortmess'.

gmankab commented 1 year ago

i never touched the shortmess flag

i was confused by the fact that when i just ran nvim, the welcome message was shown, but when i ran goneovim it didn't

now after i open :help :intro the message is shown as it should

i think it should always be shown, out of the box, without having to open :help :intro

shiena commented 1 year ago

is this the message you saw? https://github.com/flathub/io.neovim.nvim/blob/master/neovim-first-run.txt In this case, it is a message that is displayed only for the first time due to the mechanism unique to the flatpak package.

akiyosi commented 1 year ago

@gmankab @shiena Hi :)

This is a specification of Neovim's multigrid architecture.

The multigrid architecture controls Neovim's buffers and windows in logical units called grids. In this situation, status lines, border lines between windows, etc. are drawn on a special grid called the global grid, and regular buffers cover the global grid.

In my previous investigation, I observed that the Welcome content at startup is drawn in the global grid, and then the grid that draws the default buffer covers the global grid, making the Welcome content invisible to the user view.

Fixing this will require a fix on the Neovim mainframe side.

gmankab commented 1 year ago

is this the message you saw?

no, i mean this (pic from google)

IMG_20230512_110711_285

gmankab commented 1 year ago

Fixing this will require a fix on the Neovim mainframe side.

@akiyosi, but why now i can see welcome message in goneovim after i open :help :intro

akiyosi commented 1 year ago

@akiyosi, but why now i can see welcome message in goneovim after i open :help :intro

This is because the Welcome content is drawn on the "normal" grid, not on the global grid, when the user explicitly executes the command to display it.

gmankab commented 1 year ago

it's weird but ok

akiyosi commented 1 year ago

I would like to keep this issue open, as it is possible that there are others who care about this issue and it would be better to have it fixed.

akiyosi commented 1 year ago

It seems that the Neovim core supports that feature.

Related: