dhruvasagar / vim-prosession

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

Prosession does not create the session files as indicated in the command line in Windows #18

Closed nkmathew closed 7 years ago

nkmathew commented 9 years ago

I can run it with this Prosession cats on startup and it'll name the session file %Windows%system32.vim which when auto-completed at a later time becomes /Windows/system32.

All supplied session names are ignored and a percentage-escaped version of the current working directory used.

dhruvasagar commented 9 years ago

Hi, what's cats supposed to be ? As long as cats the argument to Procession is either an existing session or a valid path on the system it should work fine, if you want to just create named sessions, that's not something Prosession allows at the moment, you could very well just use :Obsession for that.

Kindly provide a slightly more detailed explanation of your expectation here, perhaps I could help you better / add it as a feature in Prosession.

nkmathew commented 9 years ago

Yes, I want named sessions. Obsession could do the work I guess, I just don't like the way it litters project folders with the session files and also its lack of completion.

I wanted something like:

Such that the number of session files in ~/vim/session reflects the number of projects/things I'm working on at the time. HTH

dhruvasagar commented 9 years ago

Prosession does support this already, but slightly differently.

nkmathew commented 9 years ago

That'll do. I've been using it for quite some time and never realized it worked that way. I used to create the session files manually in the session folder every time I did a new project.

If it's okay with you I'd like to present some feature requests:

dhruvasagar commented 9 years ago

The first 2 actually make sense, I am not entirely sure what ProsessionDelete command should be doing though.

Edit: with regards to #1, I will instead prefer (on the same lines as Obsession), that when you call just Prosession it is implied you want to start / continue a session for the current working directory.

nkmathew commented 9 years ago

Deleting the session files from within VIm? Cause reading percentage signs is hard?

dhruvasagar commented 9 years ago

@nkmathew btw with Prosession ideally you would never have to actually look up the session files, that's one of the goals of Prosession. The completion with Prosession command shouldn't have any % signs.

And you can already just call :Obsession! to end the current session (and delete the session file), so I feel that isn't something that's required from Prosesion's perspective.

nkmathew commented 9 years ago

It's all good then. Thanks for all the help

dhruvasagar commented 9 years ago

Np, will work towards the 2 features you requested, will link to this issue as I release them, thanks.

nkmathew commented 8 years ago

Hey @dhruvasagar, it's been almost a year. Did you get too tied up?

dhruvasagar commented 8 years ago

Hey, looks like I have been. I'll have a look again. #2 should be easy, #1 can be tricky.

nkmathew commented 7 years ago

Should I give up on this?

dhruvasagar commented 7 years ago

Hi, never give up :). Sorry for the delay, sometimes it's hard to keep track of 'pending' action items when there's too much to do.

The above referenced commit adds support for 1.

nkmathew commented 7 years ago

Haha, thanks man. Been waiting for this for years ... literally

dhruvasagar commented 7 years ago

The above commit reports an error if the argument supplied to :Prosession command is not an existing directory. Let me know if this is what you were looking for.

nkmathew commented 7 years ago

Looks good

dhruvasagar commented 7 years ago

Cool i'll close the issue for now then, let me know if there's anything else. And thanks for your patience :).