There are software projects that get posted once in a while on HN that are on a completely different level of quality, whether it's product, UX, or tech. This is one of those posts.
If you like the text editor that powers VS Code (Monaco) and would like to use it for writing Markdown on github, check out my foss chrome/Firefox browser extension [1]! It replaces all text areas with a Monaco editor.<p>[1] <a href="https://github.com/hediet/browser-ext-github-monaco" rel="nofollow">https://github.com/hediet/browser-ext-github-monaco</a>
Feature request: make CMD+P support searching files in the repository. Currently, it shows "No matching results".<p>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:<p><a href="https://data.jsdelivr.com/v1/package/gh/rails/rails@06e8d5c29fa9cce83cd99cefed2d135094584acd/flat" rel="nofollow">https://data.jsdelivr.com/v1/package/gh/rails/rails@06e8d5c2...</a>
This is brilliant.<p>CodeSandbox also has this. For example, you can import this project in CodeSandbox using link <a href="https://githubbox.com/conwnet/github1s" rel="nofollow">https://githubbox.com/conwnet/github1s</a> (adding box between github and .com)<p><a href="https://codesandbox.io/docs/importing" rel="nofollow">https://codesandbox.io/docs/importing</a>
This is really cool, and has inspired the latest function to be added to my zshrc:<p><pre><code> 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}"
}</code></pre>
It’s very impressive how fast this loads. Every time I’ve integrated Monaco (web-based Visual Studio Code), it takes multiple seconds to render. GitHub Codespaces, the official way to open GitHub repos in a web-based Visual Studio Code instance, loads probably 20x slower than this.
This is neat, but search seems to be broken. I loaded one of my repositories and ran global searches for strings I know exist and they came up with no results. After I opened the file in the web editor, the results would appear in subsequent searches.
Cudos! You have motivated more than a few today. This is big push to really do one thing very well.<p>This by far ticks the box for the best project I've seen this year.<p>Perfect UI/UX clone. Search functionality is very close to desktop VS Code.<p>Even mind-blowing is the loading speed. At this age and time where some blogs take 2mins to load.
I enjoyed replicating just now an analogously fast workflow that shallow-clones a git repo and then opens it in my GUI IDE <i>from the terminal</i> without any other clicking around being necessary.<p>So I can `pbpaste | git_clone_and_open_in_ide` and be done.
If folks are interested in browsing (and editing) GitHub repos in VS Code without cloning, the GistPad extension might be worth checking out: <a href="https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs#repositories" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=vsls-con...</a>.<p>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.
Github has Codespaces in early release (<a href="https://github.com/codespaces/" rel="nofollow">https://github.com/codespaces/</a>), but much faster
Brilliant!! Github should make it first class. Most times, I don't need full power of codespace, something leaner(free) just to browse code will be awesome.
This is fabulous. I remember something similar 2 or 3 years ago where you could "log in with github" and create commits using VS Code in the browser. Does anyone remember the name? Is it still alive? Iirc it was a very simple name like "code.org" (but not that).
This made me think that VS Code should really just have a "View Github Repository" option where you paste the URL and it opens something like this, except in the normal desktop app. If you want to be elaborate you could even have support for making changes.
This is absolutely amazing! I frequently reference Github repositories while developing so this helps me a lot. Thanks to whoever made this!<p>(side note: I wonder if someone could/has made a similar tool for vim; that way I can stay in the terminal)
Oh VS is just JavaScript, but how exactly does this work? I couldn't tell by reading the code except that it does have src/vs that has what looks like a subset of the Microsoft code files in it.
This is cool and I hope they don’t run into copyright issues with the domain, which they probably will. Trademark lawyers basically have to go after violations otherwise they risk losing control of the mark. Maybe GitHub could be nice and license it to the project for free.
it'd be interesting to have language servers also working (i wonder if it's possible to run language servers as local service workers on the browser), so that you can also navigate via symbols.
This is similar to the idea of Codespaces from Github <a href="https://github.com/features/codespaces" rel="nofollow">https://github.com/features/codespaces</a>
I'm confused how to use this. Do I need VS Code installed and/or do I need to open the URL through VS Code? The readme doesn't seem to offer much guidance, and any time I visit any 1s repo (even the example <a href="https://github1s.com/microsoft/vscode" rel="nofollow">https://github1s.com/microsoft/vscode</a> link in the readme), I just see a blank, white page.<p>People are talking about loading pages on mobile, so it doesn't seem like VSC is needed...
I was a little bit confused reading what this project was..<p>It's early and was thinking it was some VSCode extension thinking : "Okay, kinda quirky but big deal?"<p>Then it hit me.. This is outstanding!
github1s.com doesn't seem a very fortunate domain name as it's obviously based on github.com - it's well plausible that it will be taken down sooner or later.
I'm trying to reverse engineer how it works..<p>It is a static webpage, hosted on Github Pages
<a href="https://conwnet.github.io/github1s" rel="nofollow">https://conwnet.github.io/github1s</a><p>And, here is the static webpage source-code:
<a href="https://github.com/conwnet/github1s/blob/gh-pages/404.html" rel="nofollow">https://github.com/conwnet/github1s/blob/gh-pages/404.html</a>
This link showed up on /r/programming yesterday. Everyone is freaking out that the domain is registered from China.<p><a href="https://www.reddit.com/r/programming/comments/lfpngg/explore_github_source_code_right_on_the_web/gmodnwk/" rel="nofollow">https://www.reddit.com/r/programming/comments/lfpngg/explore...</a><p>hackernews doesn't seems to care, which is ironic in many levels.
What a nice feature. Octotree[1] is a Chrome extension which does that fantastically. It also supports Enterprise Github in Pro version.<p>[1] <a href="https://www.octotree.io/" rel="nofollow">https://www.octotree.io/</a>
Really cool concept, however language service and file search don't quite work (even for TypeScript projects) due to lazy loading of files and directories.<p>Still, its almost there! Can't wait!
this is great/neat but took me awhile to understand what it was from the name. One second implies time of reading or...I dunno it's just confusing/unclear.
This is incredibly cool!!! I don't know to what extent this is affiliated to GitHub, but if it is not it should be definitely bought/incorporated
how about <a href="https://github.surf/" rel="nofollow">https://github.surf/</a>. ?
This supports also CLI "surf ." and browser extension by default.<p><a href="https://github.com/bridgedxyz/github.surf" rel="nofollow">https://github.com/bridgedxyz/github.surf</a>
I wouldn't get too attached to this tool, folks. Github lawyers are not going to be happy with this domain directly infringing on their copyright and are almost certainly at this very minute sending cease and desists. Even if they like the tool and want to see it succeed, the domain is a bit of a fishing and spam risk for them. Best case Github tells them to knock it off and suggests a different domain they use.<p>Gitpod has been around for a few years and offers the exact same service but on a more distinct gitpod.io domain: <a href="https://www.gitpod.io/docs/getting-started/#prefixed-url" rel="nofollow">https://www.gitpod.io/docs/getting-started/#prefixed-url</a>