News for hackers. Stuff that matters.
Re:A text adventure game on TypeScript's type system by lucasmullens on Wednesday September 21, 2022 @04:30PM (#32931101)
git clone, make sure TypeScript is installed, and open src/index.ts

Would be nice if this was exported to some TypeScript playground environment.

Re:A text adventure game on TypeScript's type system by yakkomajuri on Wednesday September 21, 2022 @05:13PM (#32931608)
Easiest is to just press `.` on the GitHub repo to open the GH dev environment
Re:A text adventure game on TypeScript's type system by trevor-e on Wednesday September 21, 2022 @08:21PM (#32933365)
wait... WHAT!? how is such an amazing feature hidden behind some incredibly obscure keyboard shortcut? this completely changes how I'll explore Github.
Re:A text adventure game on TypeScript's type system by ppradhan on Thursday September 22, 2022 @03:27AM (#32935740)
what am I doing wrong. 'press . on the Github repo' ?
Re:A text adventure game on TypeScript's type system by unsafecast on Thursday September 22, 2022 @05:29AM (#32936595)
Just open the repository and type a dot on your keyboard. You don't need to select anything.
Re:A text adventure game on TypeScript's type system by n1c on Thursday September 22, 2022 @06:30AM (#32937011)
With the page open in your browser, press the "." key on your keyboard.
Re:A text adventure game on TypeScript's type system by TillE on Wednesday September 21, 2022 @07:29PM (#32932997)
I'm really surprised I've never even discovered that accidentally. If nothing else, this is a vastly superior way to search a repository.
Re:A text adventure game on TypeScript's type system by culi on Thursday September 22, 2022 @12:16AM (#32934736)
It was added about a year ago so it's fairly recent. Before this another group had made this same thing on a different website (turns out a big advantage of Electron apps is they can be converted to web apps without TOO much difficulty). With that one you'd just replace the domain of the URL with whatever that website was
Re:A text adventure game on TypeScript's type system by auggierose on Thursday September 22, 2022 @02:17AM (#32935325)
Too bad there is no such thing as HN comment of the week, this would be it.
Re:A text adventure game on TypeScript's type system by zander312 on Wednesday September 21, 2022 @05:52PM (#32932027)
wtf! I had no idea this existed!