-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
More slots for Save opened, Open Saved Editors #3
Comments
@dmagician Thanks for the review and opening this issue! Currently the "save slot" that is used is per-folder (e.g. project) -- so you don't have to worry about saving the state in one project and it affecting another. From the options available, I'm thinking that having a few well know slots is probably the way to go. While I think it is possible to bind commands with arbitrary arguments now (in code v1.10), I feel like it will be harder to use and you'd really want something with more UI to deal with it appropriately (like I did with Save All the Tabs for Visual Studio). I will look into adding something like this into an upcoming version, but just fyi I am also somewhat hesitant to add too much into this extension at this point, because of how limited it is (because of the vscode api - there is so many things I can't re-open and even finding what is open is extremely fuzzy). I'm hopeful that later versions of the vscode api will offer a supported way to get access to the information I need. |
WOW!!! You are right, I didn't know it works like that. Then it's totally perfect, it just needs to be better explained in the info about this plugin. Just tested, it works!! Thank you! ;-) |
@dmagician thanks -- I'll update the readme with some more details about that |
Is it possible that if I do git pull on the directory that had previously saved editors, the saved editors state will disappear? I somehow can't restore editors now. Maybe that feature with having specific named slots for saving isn't that bad idea at all. |
@dmagician I can't see how those two things could be related, but please let me know if you that is a behavior you can reproduce. |
Ok I will try to observe what leads to loss of saved editors. |
I'd prefer if the saves were just named and you could cycle through them. For instance if you switch branches in git in the same project and some of the files dont exist on other branches |
Just to let everyone here know, that while I am all for extending the functionality here and PRs are certainly very welcome, I've just been hesitant to add too much to it because of the hackery and caveats required by the current implementation. Once vscode adds support for microsoft/vscode#15178 I will be happy to put more features into it :) Eventually I could see it come close in functionality (albeit with different UI) as my VS "proper" extension Save All the Tabs |
Resolved in 1.0 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
re: "eamodio 3/3/2017 Would you mind creating an issue on GitHub for this request with some more details on what you'd like something like that to behave?"
Actually I don't know how exactly the VSC api works so I'm thinking about 2 ways how ti could be used.
Save Opened Editors Projectname
Open Saved Editors Projectname
Save Opened Editors1
Open Saved Editors1
Save Opened Editors2
Open Saved Editors2
Save Opened Editors3
Open Saved Editors3
If it was done like this. It would have one advantage over "1.". It would allow to have custom keyboard binding for every save/open pair. (I'm new to VSC, so I don't know much about keyboard binding, I have just somehow managed to bind save and open on F6/CTRL+F6. ;-)
As I said in review. I like what you did there, I was scanning plugins for something capable of doing something like this, and found nothing. Thank you for doing this.
The text was updated successfully, but these errors were encountered: