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
Option to move a file to project #95
Comments
@Val95240, sorry to mention you, but I have forgotten I have already requested this feature and today came to my mind again. Would this feature be interesting to you? Would you try to implement this please? If not, could you just point me how I could accomplish this? IMHO the project list pop-up is already implemented in PM, therefore it is easy to call up, but how could I simply move a tab to another project? I might be easier to move it to an open project, but what about one that is currently not open (i.e. it is only saved in Thanks for reply! 😉 |
Hey ! In my opinion, the most direct way of implementing that behavior would indeed be to load the JSON of the target workspace into memory and add a sub-object to Sorry for not adding this feature, but don't hesitate to ask me other questions ! |
Thanks, @Val95240, for your comment! 😉
I see. Then I’d like to have a separate plugin with a dependency on Project Manager. 😉
Well, I meant workspaces instead of projects actually. 😉 That is: I’d like to move a tab (be it a file or just an unsaved buffer) to another workspace selected from a list of workspaces.
No problem with not adding the feature, but could at least help me with the basic algorithm implementation? ATM, I have just one big question:
|
I can't see another method than matching the whole content in the case of unsaved buffers, so that's indeed what I'd do.
Unfortunately, Sublime Text is quite opaque with its use of workspace files and I don't think it is possible to access the underlying data in memory.
(that's already what I do in ProjectManager to mark open workspaces). In the case where the target workspace is already open, I think your best chance is to create a new file ( |
I think that this feature request is a bit out of scope of Project Manager, but still it might a be a good idea to implement it.
I’d like to be able to move currently open file to a specific project. Just open the Project Manager, select
Move this file to a project
, a list of projects opens, I select a specific project and that file is closed in the current window, and it is opened (appended) in the selected project, preferably in background [i.e. (1) the file in that project won’t be open in foreground; (2) if the particular project is not open, it should not be open after file is moved].Why this should be implemented in Project Manager? Your package manages projects and already provides the list of projects. 😃
The text was updated successfully, but these errors were encountered: