Skip to content
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

[Feature]: newest file feature #740

Closed
3fok opened this issue Jun 20, 2024 · 4 comments
Closed

[Feature]: newest file feature #740

3fok opened this issue Jun 20, 2024 · 4 comments

Comments

@3fok
Copy link

3fok commented Jun 20, 2024

I want to update the newest versions of some files to continue working on another PC (e.g., workspace.json, app.json, etc.). Can you add that feature? It should ignore local files and just get the newest files from GitHub.

I don't want to ignore these files because I want to keep the environment I'm working in and continue on another PC.

@3fok 3fok changed the title [Feature]: add git stash feature [Feature]: newest file feature Jun 20, 2024
@Vinzent03
Copy link
Owner

I can't follow you completely. You don't want to ignore the files completely, so you don't want to add them to .gitignore. But when there is a commit with a newer version of e.g. config files, you don't want to merge them or even have merge conflict, but just overwrite them with the new commit? The best way to accomplish this is probably, before pulling locally, to discard the changes via the Source Control View. So that these changes aren't commited locally and are overwritten by the new commit.

@3fok
Copy link
Author

3fok commented Jun 26, 2024

I want to continue working with the same state on another machine. For example, if I open a file on one computer, I want it to remain open when I switch to another computer. Is there any way to do that?

@ridhozhr10
Copy link

I want to continue working with the same state on another machine. For example, if I open a file on one computer, I want it to remain open when I switch to another computer. Is there any way to do that?

It will be nice if we have this, for me to workaround for now i just use "Workspaces" core plugin and make a layout template before pushing latest commit to git remote.
image
image
Screenshot from 2024-06-27 09-01-47
Screenshot from 2024-06-27 09-02-03

@Vinzent03
Copy link
Owner

Yeah saving and then loading the workspace on the other machine is a great idea. If you have your current workspace.json not ignored it gets committed as well. But that causes a high risk of merge conflicts, and you have to restart Obsidian to reload from the updated workspace.json. But I don't plan to implement further features for this use case.

@Vinzent03 Vinzent03 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants