Skip to content

update more than 1 Gist from same file #219

Open
@pinggit

Description

@pinggit

this is my daily tool that I heavily used. great tool!
one issue I found regarding work flow, and visual selection.

  1. I published whole file, put GistID: xxx in the beginning of my file
  2. I then want to share a small piece of my file to someone, so I visual selected that piece, and hit :Gist! -p. I put the new GistID: yyy just in the visual selected snippet, so later I may keep updating the same Gist yyy, without changing the first Gist xxx.
  3. now if I want to update somewhere (not in the content of Gist yyy) else in the file and update my Gist xxx, it looks there is no good way to accomplish this. what i tried:
    a. Gist -p , this will continue to use Gist yyy and update that one
    b. Gist! -p, this will generate a third Gist zzz, which duplicated with Gist xxx. not what I waned.

currently the 2 workarounds I found, is:

  1. to close the buffer, reopen it, then:
    to update Gist xxx, :Gist -p.
    close the buffer and reopen it, then:
    to update Gist yyy, visual select the content (including the GistID): Gist -p

  2. create a new buffer for the 2nd Gist.
    is there a way to update more than 1 Gist from same file, without reopen the buffer or create a new buffer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions