-
-
Notifications
You must be signed in to change notification settings - Fork 128
-ls not working #183
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
Comments
Do you have |
Yes, I have a key. I can also do many of the other things described in the gist-vim README. |
Could you please try following? (please note that don't paste private contents) apply patch followingdiff --git a/autoload/gist.vim b/autoload/gist.vim
index 0cd0c97..032367c 100644
--- a/autoload/gist.vim
+++ b/autoload/gist.vim
@@ -190,6 +190,7 @@ function! s:GistList(gistls, page) abort
echohl ErrorMsg | echomsg 'Gists not found' | echohl None
return
endif
+ let g:debug = res
let content = webapi#json#decode(res.content)
if type(content) == 4 && has_key(content, 'message') && len(content.message)
bw!
|
Looks like the url is invalid |
What is
should be printed as |
That is indeed the url that is printed |
Hmm, could you please remove |
Yeah I tried doing that a couple times, didn't help |
Did you input password for authentication? |
Yup |
Hi, I know that this is an old issue, but just in case: I fixed this by adding I don't know if this is a bug or not. I noticed that the used URL ended up being https://api.github.com/users/starred/gists (which as far as I can tell is not valid) and then in this part of the code:
it seems like the Hope this helps! |
That fix worked for me @fvictorio ! I actually just checked out mine, and it looks like it's going to this:
instead of this:
Going to look into opening up a PR to fix this |
update @fvictorio: I nailed down that on line 801 it sets gistls to g:github_user, which will default to the output of the command |
Already noted in README.
|
So I'm having this issue where :Gist -ls isn't working at all (It just prints "Not Found"). I have 1 starred gist, so there's definitely at least one, but even so, it would be nice if it said like "No starred Gists" or something instead of "Not Found", since it also says that if the url is broken, which was confusing.
The text was updated successfully, but these errors were encountered: