dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Directory does not exist #70

Closed Zeioth closed 7 months ago

Zeioth commented 4 years ago

Let's say I have a session ".vim/sessions/meta.vim"

:Prosession meta

Autocomplete correctly, but when I press enter, I get the error:

Directory meta does not exist

To fix this I have to create the directory "~/meta"

The thing is I don't wanna have "~/meta" I want to have ~/activities/meta. There's some way to bypass the checking to achieve this? Thank you

Zeioth commented 4 years ago

Deleting this block from prosession.vim fixes the issue. It seems that 'throw' is preventing prosession from opening the session unless I put the directory on "~/" for some reason.

if !isdirectory(dir)
  call s:throw('Directory ' . dir . ' does not exist')
endif
dhruvasagar commented 4 years ago

@Zeioth If you want to load a session manually, you might as well source it manually. Prosession follows a naming convention for the session files. Can you elaborate on exactly what you want to achieve ?

Zeioth commented 4 years ago

The issue I was experiencing was that I could not open a session unless there was a directory with the same name as my session in "~/" when using vim-prosession. IDk if was a missconfiguration issue, or a bug.

dhruvasagar commented 7 months ago

Prosession doesn't really require or do anything special with ~/ directory. I am closing this since I am not able to reproduce this.