-
-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent named sessions #1023
Comments
Here's the deal. Currently, when both Lines 7766 to 7772 in 36e1544
Also good to note is that Lines 7189 to 7190 in 36e1544
As a result, if we wanted to, we could have a named persistent session in the form of passing both flags in either order: |
I am already working on it. In the same line so we are good. |
The behavior isn't exactly as desired. There is still an error message when I try to create a session that is nonexistent (I would instead expect for it to be created). |
It is created. The msg comes the first time you load it because it's non-existent. |
Maybe we can get rid of it now that we know we will create it if it doesn't exist. |
Yeah, I was referring to the error message. I agree with removing it since |
On second thoughts, I think we should have it to indicate that the session file doesn't exist. I am not sure why it's confusing. When you are creating the session for the first time, it doesn't exist and that's what the msg says. If you use option |
I see where you are coming from but I think there should be some method of disabling that, especially if the user is not directly controlling the session as in the case with nnn.vim. It would be odd for the user to see "failed!" or other messages when they expect it to be more discreet. |
How about rephrasing the error so that it looks like a simple warning/feedback about the newly created session? |
Sure. My main concern is mostly the 1-second delay that occurs with the error message. So if that could be removed that would be much better already. |
It's necessary information.
I think it's just fine for a 1-time message. Let's not overthink. We can document it if we want. I do not want 3 people to spend time discussing it. |
I'll let you try it out after I'm done with the nnn.vim patch. I personally think its annoying, since a nice part of nnn is its fast startup time. |
OK. |
Closed at 54d760b. |
Is your feature request related to a problem? Please describe.
Right now, you can either have a persistent default
@
session (-S
), or non-persistent named sessions (-s <name>
)Describe the solution you'd like
I want the ability to persist named sessions. This would help where
nnn
is embedded in text editors, for example.Describe alternatives you've considered
I have not considered alternatives to having persistent named sessions as a concept, but there are definitely some options to be weighed when considering how to implement this (details linked in issue below).
Additional context
Please view mcchrish/nnn.vim#43 (comment) to understand the context of this request and the proposed solutions.
Consider contributing
I am more than eager to write this patch, but I need some pointers on how to proceed.
The text was updated successfully, but these errors were encountered: