1692 points · by tardismechanic · 5y ago · 214 comments
I find the project a really cool concept, but am genuinely curious what real value this is adding in it's current incarnation? Navigating the folder structure is kinda nice, but I don't see much else.
Am I missing something obvious?
Ctrl+Shift+F works. I've forgotten how many repos I clone off github just to be able to search all through the code.
Works for me. CTRL+P on Linux though.
Better search, find definition, ...
Shift+CMD+P does not but without Shift it works
Flawless execution on all fronts. I’ve always wanted an easy way to preview a repo in VS Code and this is it.
I think Codespaces is able to pull it off because the language servers, and vscode itself, is really running on Github's backends. They've set up the frontend to connect to a remote host.
Would be cool to tie it into this.
How nice it would be for great work to be compensated more fairly.
if dev.strong_financial_background():
return False
return TrueOf course, the rate will be a lot lower for small companies, but with something like this you'd have perfect targeting. And you don't even need any invasive privacy tracking for targeting: Just let people buy ads on specific repos.
Also, at least in my personal experience, people really don't mind job ads. Job ads are the only ads I regularly click on, because I'm curious what companies are looking for (even though I'm not looking for a job)
Reminds me of the GhostText[1] extension I used to use for Sublime to sync an input field with my editor.
To implement this quickly client-side, one easy way would be to use jsdelivr's data api. For example, to get the directory tree for Ruby on Rails:
https://data.jsdelivr.com/v1/package/gh/rails/rails@06e8d5c2...
I quickly did ctrl + shift + f to search as well and it worked well
CodeSandbox also has this. For example, you can import this project in CodeSandbox using link https://githubbox.com/conwnet/github1s (adding box between github and .com)
vscodetmp () {
local repo=$1
[[ ! $repo =~ "https://*" ]] && repo="https://github.com/${repo}"
local temp="$(mktemp -d)"
git clone "${repo}" "${temp}"
code --wait -n "${temp}"
rm -rf "${temp}"
}For example, I can Cmd+Click on a function usage and it takes me to its definition. If I hover my mouse over it it displays information about the variables/function/data structure/etc. If I'm running docker containers I can attach a shell, view its logs, start/stop/restart it with the click of a button. There are thousands of extensions that allow me to augment the user experience – a Terraform extension that allows me to open resource documentation with the click of a button, running diffs on code, running code formatters, etc.
Yes, all of this is possible with vim/emacs plugins but its not out of the box and the UX is not the same (and you're lying to yourself if you claim this isn't true). Installing and managing all of these plugins (in vim at least) is a lot more painful.
As for the RAM consumption, it's honestly minimal. Running Chrome is more of a resource hog than VS Code.
An actual checkout would exceed 1s ;-)
This by far ticks the box for the best project I've seen this year.
Perfect UI/UX clone. Search functionality is very close to desktop VS Code.
Even mind-blowing is the loading speed. At this age and time where some blogs take 2mins to load.
So I can `pbpaste | git_clone_and_open_in_ide` and be done.
It’s not necessarily as convenient as a web client, but it lets you work from your existing/customized editor setup (e.g. theme, keybindings), and it supports editing, branches, commenting, etc.
Accessing https://github1s.com/pytorch/pytorch is _much_ faster than accessing PyTorch through Codespaces (because former is a read-only IDE), so this site is useful beyond Codespaces.
I think it has changed a bit and it's not as easy to get started with their service, but you can still host the server yourself:
> No. Coder Enterprise is not SaaS. It is software that you must deploy and run it on your own infrastructure, either a public or private cloud.
That's unfortunate. Very excited to see a SaaS solution by someone soon.
Edit: This seems to be what I'm looking for https://visualstudio.microsoft.com/services/github-codespace...
And coder.com using code-server
Root, Docker and VS Code - https://www.gitpod.io/blog/root-docker-and-vscode/#vs-code
- Eclipse Theia: https://github.com/eclipse-theia/theia
- Coder: https://github.com/cdr/code-server
I'm sure there are countless versions for mobile that are hasty Cordova-based versions of the VS Code core too.
(side note: I wonder if someone could/has made a similar tool for vim; that way I can stay in the terminal)
After this was correctly configured, the "Status" indicator on the welcome page turned green and now says "Authorized" (instead of the yellow "Unauthorized" that I initially saw)
javascript:window.location.host = "github1s.com";
I'm not sure what it would take to make that happen.
This tool is to quickly investigate a codebase you've never seen through the façade of a familiar tool.
A "personal private repository" isn't code that you've never seen or are unfamiliar with.
Kivubg ut
People are talking about loading pages on mobile, so it doesn't seem like VSC is needed...
Did you check the debug console of your browser for errors? Also check you have Javascript enabled.
https://i.imgur.com/19gU4tl.png
On Chrome 80 / Ubuntu, FWIW. Was under the impression optional chaining was valid JS without transpiling, but who knows. Either way, loaded it up just fine on my Windows box to check out -- looks super useful!
It's early and was thinking it was some VSCode extension thinking : "Okay, kinda quirky but big deal?"
Then it hit me.. This is outstanding!
It is a static webpage, hosted on Github Pages https://conwnet.github.io/github1s
And, here is the static webpage source-code: https://github.com/conwnet/github1s/blob/gh-pages/404.html
It's basically all custom scripts to replace extra code to origin vscode repo.
https://www.reddit.com/r/programming/comments/lfpngg/explore...
hackernews doesn't seems to care, which is ironic in many levels.
Still, its almost there! Can't wait!
Also goes to show how GitHub's simple but well thought out url structure continues to pay dividends in unexpected ways.
github.surf this works same as github1s, but i like it more for no reason lol.
e.g. github.surf/matchabot/matcha-bot
Very cool project !
Gitpod has been around for a few years and offers the exact same service but on a more distinct gitpod.io domain: https://www.gitpod.io/docs/getting-started/#prefixed-url
I am super excited about a usable mobile code editing experience, and am really surprised how much monaco has languished and failed to deliver here.