nvimdev / dbsession.nvim

a simple small powerful session for neovim
MIT License
31 stars 2 forks source link

How to enter/close session? #8

Closed joelpeapen closed 1 year ago

joelpeapen commented 1 year ago

I'm migrating from startify and so far it's good, but is there a way to enter a session/workspace directly without bringing up telescope, like startify does, and is there a command to close a session, like SClose? Thanks.

glepnir commented 1 year ago

just use command ? SessionLoad name ?

joelpeapen commented 1 year ago

yes i only saw that now. the Session commands don't show up, only DbProjectDelete is there. Dashboard doesn't bring up the dash either.

glepnir commented 1 year ago

this is another plugin so not relate dashboard. prefix is SessionXXX

joelpeapen commented 1 year ago

there are no session commands.

glepnir commented 1 year ago

what you mean no SeesionLoad SessionSave ? how you load dbsession ?

joelpeapen commented 1 year ago

ah, yes, the setup was wrong. thanks!

also, is there a way to quit a session without closing all the buffers? Can i use dbsession with dashboard? Right now it doesn't detect the file sessions in stdpath("cache")/nvim/session and display it under projects. i have nvim.vim session but only file paths show up.

Dash ![dash.jpg](https://github.com/nvimdev/dbsession.nvim/assets/67512946/20cc8c14-0c2b-4d2f-8864-1df3fea1e661)
glepnir commented 1 year ago

Can i use dbsession with dashboard?

yes .

Right now it doesn't detect the file sessions in stdpath("cache")/nvim/session and display it under projects.

it will read the session dir and you can use tab to see it . I create test file by touch command unser .cache/nvim/session folder and I can see it in complete list

image

joelpeapen commented 1 year ago

will sessions show up under projects in dashboard like it does in startify?

startify

glepnir commented 1 year ago

oh you mean show in dashboard buffer. in new version dashboard support fully custom and provide standard interface to write own theme . also you can do it in new version hyper . maybe after one week will release .