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

feat: added ListGists command #8

Merged
merged 2 commits into from
May 14, 2023
Merged

feat: added ListGists command #8

merged 2 commits into from
May 14, 2023

Conversation

lnc3l0t
Copy link
Contributor

@lnc3l0t lnc3l0t commented May 14, 2023

  • ListGists
  • Choose a gist to edit, the command lists the gists with name, number of files and privacy setting and numbers them to let you choose one
  • If you have a single file in the gist a buffer is open you can modify it, save and then close the buffer :w|bd or quitt the window :wq and the changes will be pushed to the gist
  • If you have multiple files it opens a terminal buffer with gh's output and let you choose which to edit and after closing the buffer with the changes goes back to the terminal buffer and let's you edit another one over and over or submitting all the changes!

lnc3l0t and others added 2 commits May 14, 2023 18:55
With this command one can list all of his gists on github, choose one then edit all of its files in place inside neovim!

I added nvim_unception dependency, it is not strictly necessary but makes things look nicer;
with it the editable gist is in a neovim buffer in the already opened neovim session, not in a nested instance inside a terminal buffer.
Anyway the plugin works if without it
@rawnly rawnly merged commit 94dce26 into rawnly:main May 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants