tobe / qgh

Console curses browser for github repo contents
MIT License
2 stars 1 forks source link

Default to EDITOR environment variable #8

Closed johnmaguire closed 9 years ago

johnmaguire commented 9 years ago

This fixed a bug on my machine due to the way I have vim setup. It leaves /usr/bin/vi (symlinked to vim on most distros, and the path exists in almost every default install of a Linux OS) as a sane default.

tobe commented 9 years ago

Heyy! Thanks for mentioning this. This was only temporarily, for testing, until I finish the Config class which would grab configuration from some sort of json config file or something where you can even add your own API key for more than 60requests per IP.

As far as redrawing the screen is concerned, if you check out this thing over here you can see that I call the redraw thing. Same happens with my vim as well, it's messed up until I press ^L to force my terminal to redraw. I don't know how to fix this. I was looking if there was some escape code I could send to fix it or if vim %s && clear would fix it but no luck. If you've got any ideas please let me know.

This does not happen when using something like gvim or sublime_text of course, because they have nothing to do with the terminal.