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 Request: Gist -u (update) #204

Open
amadeus opened this issue Mar 21, 2016 · 3 comments
Open

Feature Request: Gist -u (update) #204

amadeus opened this issue Mar 21, 2016 · 3 comments

Comments

@amadeus
Copy link

amadeus commented Mar 21, 2016

I have a file that I like to share between computers using Gist. I have a GistID set up and everything.

As of right now, when I make some updates and switch to that new Gist, I have to re-download that Gist and update the existing file on my computer to have the latest updates.

It would be really nice if instead I could just execute a command like :Gist -u, it would find the GistID in the current file, fetch the latest contents from the server and just replace the contents of the file.

I guess it would be similar to :Gist XXXX command, however not requiring the need to have to type out the address manually.

Perhaps I am an idiot and there's a simple way to do this already that I couldn't get from the docs?

@artamonovdev
Copy link

Yes, this will be super future! 👍

@mattn
Copy link
Owner

mattn commented Apr 23, 2017

:w should work for update.

@amadeus
Copy link
Author

amadeus commented Apr 23, 2017

Not sure I follow? :w would just write the selected buffer to disk.

What I am wanting is say I create file.md, write some markdown in it, save it, then call :Gist on it to create a gist.

Then I will put the GistID in the file, in a comment, I can open the file later and just run :Gist and update the online gist.

If I then goto another computer, download that latest version of the gist, make new updates, and called :Gist again, then it will add new changes to the gist. If I return to my old computer, it will not have these updates. It would be cool to open the outdated file on my computer and do something like :Gist -u and have it replace the current buffer contents with the latest version of the gist specified in the comment in GistID.

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