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

ideas on syncing deleted gists #7

Closed
weakish opened this issue Nov 4, 2013 · 4 comments
Closed

ideas on syncing deleted gists #7

weakish opened this issue Nov 4, 2013 · 4 comments
Labels

Comments

@weakish
Copy link
Owner

weakish commented Nov 4, 2013

Currently, if you've deleted your gist at gist.github.com, gister sync will not delete your local copy.

I have a plan to change this.

If you have deleted your gist at gist.github.com:

  1. You just don't need it and want to get rid of it.
  2. You may still use the gist later. You just don't want to publish it on gist.github.com.

For 1, deleting it is fine.

For 2, it should not be deleted.

Thus sync should not delete your local copy, just need to move it to special directory, for example, local-only.

Is this design O.K.?

@wenLiangcan
Copy link

I think I would like this design.

@weakish
Copy link
Owner Author

weakish commented Nov 9, 2013

Another approach just occured to me. Use _ as a prefix.
For example, _123.

The advantages of using a separate local-only directory is that we preserve the current storage structure.

And users are free to label these gists further, e.g. Local_123, Trash_123, Moved_123, etc.

Going to implement it now.

@weakish weakish closed this as completed in 5042134 Nov 9, 2013
@weakish
Copy link
Owner Author

weakish commented Nov 9, 2013

There is a serious bug! I'll fix it ASAP.

@weakish weakish reopened this Nov 9, 2013
@weakish weakish closed this as completed in 46b5d31 Nov 9, 2013
@weakish
Copy link
Owner Author

weakish commented Nov 9, 2013

Need to document about this feature in README.md and manpages.

@weakish weakish reopened this Nov 9, 2013
@weakish weakish closed this as completed in a7fd76c Nov 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants