Closed nkmathew closed 7 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.
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:
Prosession project-name
Such that the number of session files in ~/vim/session reflects the number of projects/things I'm working on at the time. HTH
Prosession does support this already, but slightly differently.
:Prosession <Tab>
that will complete names of existing sessions by name of the directory, if one didn't exist already, simply start typing the complete path to the directory (which is also tab completed) and press enter in the end to start a new session.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:
Prosession .
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.
Deleting the session files from within VIm? Cause reading percentage signs is hard?
@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.
It's all good then. Thanks for all the help
Np, will work towards the 2 features you requested, will link to this issue as I release them, thanks.
Hey @dhruvasagar, it's been almost a year. Did you get too tied up?
Hey, looks like I have been. I'll have a look again. #2 should be easy, #1 can be tricky.
Should I give up on this?
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.
Haha, thanks man. Been waiting for this for years ... literally
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.
Looks good
Cool i'll close the issue for now then, let me know if there's anything else. And thanks for your patience :).
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.