goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.84k stars 109 forks source link

Adding a listing to see sessions or 3 last used files? #72

Open thepenguinthatwants opened 2 years ago

thepenguinthatwants commented 2 years ago

Also recent used sessions or seeing 3 final files that has being used could be cool. Is this possible with alpha?

Like

g.startify_custom_indices = {'a', 's', 'd', 'f', 'g', 'h', 'i'} g.startify_bookmarks g.startify_session_dir = '~/.config/nvim/session'

I've actually gotten attached to use dashboard view, but some tools from startify has being itching to get.

goolord commented 2 years ago

yeah, the startify theme actually exports the 'mru' buttons that you're describing

https://github.com/goolord/alpha-nvim/blob/main/lua/alpha/themes/startify.lua#L241

you might have to write a little code to make it look how you want

sessions support is a WIP

rockyzhang24 commented 2 years ago

At least it would be enough to have a list showing all sessions and select one of them to load a session. Then it will be a company with other session management plugin. That is, use the session management plugin to save, load and delete sessions and use this plugin to display available sessions. Thanks.