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

diff to gist #245

Open
aderchox opened this issue Sep 1, 2021 · 1 comment
Open

diff to gist #245

aderchox opened this issue Sep 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@aderchox
Copy link

aderchox commented Sep 1, 2021

Is your feature request related to a problem? Please describe.
Sometimes I keep a repository that has only a few files in a gist, but I keep the files on local as well for development. Now the problem is whenever I need to check whether the local version has already been pushed to the gist or not, I can't get a diff between the local one and the gist one directly, Instead, I will have to copy the file's content from the gist, create a local file, and then I will be able to use my diff tool to get the diff, which is very slow.

Describe the solution you'd like
Just like there's a VERY convenient option in the context menu for copying a file to gist from the explorer, also allow an option for getting the diff. This option can be configurable from settings.json so that people can enable it only if they need it(which I'd personally prefer as the default state, since I think users will use it a lot).

Describe alternatives you've considered
Make an offline copy and then getting the diff using my diff tool(I use the one by "Fabio Spampinato".

Additional context
None.

@aderchox aderchox added the enhancement New feature or request label Sep 1, 2021
@aderchox
Copy link
Author

aderchox commented Sep 1, 2021

Or instead of adding a whole diff functionality which might be a bit of work, you may (or may not, I'm not familiar with this project) be able to make an offline copy of the file being open from the gistpad in the "current" directory as well (of course using a different name, e.g., maybe adding a prefix to it or etc.) so that the already developed diff tools can do their job. And then when the file from gistpad gets closed, remove the copy in the current directory. Maybe you could make it read-only as well. I'm not sure if this is a possible solution, it can make things a bit clutterish as well, but I'm just trying to give my 2 cents. Thanks a lot for this extension, it's been really useful to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant