dashboard-nvim icon indicating copy to clipboard operation
dashboard-nvim copied to clipboard

show hotkey when have filename too long

Open ghost opened this issue 2 years ago • 6 comments

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

ghost avatar May 10 '23 13:05 ghost

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

glepnir avatar May 10 '23 13:05 glepnir

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

ghost avatar May 10 '23 13:05 ghost

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

glepnir avatar May 10 '23 13:05 glepnir

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!

ghost avatar May 10 '23 13:05 ghost

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

glepnir avatar May 10 '23 13:05 glepnir

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.

PixsaOJ avatar Feb 27 '24 09:02 PixsaOJ