nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

show hotkey when have filename too long #355

Open ghost opened 1 year ago

ghost commented 1 year ago

Prior to updating, when using tmux and vertical splitting.. The dashboard would re-center itself in the window. It no longer centers, and the text is off the screen. I cannot see which hotkeys are assigned to the recent files to quick pick.

Reproduce: Use vertical tmux split pane.

Implemented code:

    theme = 'hyper',
    config = {
        week_header = {
            enable = true,
        },
        project = {
            enable = true,
        },
        packages = {
            enable = false,
        };
        footer = {},
        disable_move = true,
        },
    })

Expected to re-center itself.

Dashboard centered on full screen terminal:

image

Dashboard no longer centered with vertical tmux split:

image

glepnir commented 1 year ago

why you think it's not centered ? it's centered. header shorcuts etc. about center you have a file too long. that indent file

ghost commented 1 year ago

It used to cut the filename off for me and still show the hotkeys. Double checking

glepnir commented 1 year ago

never cut filename before. but it should cut name or set hotkey in head instead of tail when it's too long.

ghost commented 1 year ago

You're totally right. Cleared out the history and the hotkeys show now with the filename not being too long. Sorry for the bother but thanks for the quick reply!

glepnir commented 1 year ago

should handle this situation .so I reopened this . maybe improve later or next version when i have time ;)

PixsaOJ commented 6 months ago

Can confirm, same issue. When filename is too long they are not shown and it takes whole screen.

For me, its not about vertical splitting the terminal. It happens when opening any project in single terminal window.