361: Forks in a New Tab

CodePen Radio

Episode | Podcast

Date: Thu, 31 Mar 2022 00:43:47 +0000

<p>If you Command (Mac) or Control (PC) click the <strong>Fork</strong> button, it will open the newly forked Pen in a new tab in your browser. That's <em>new</em> behavior. Before, it would open the fork in the same tab, no matter how you click. That was unfortunate, as Cassie called out:</p> <p>Why didn't it work like this before? Well, that's what Shaw and I get into in this podcast. It's a smidge complicated. The root of it is that that Fork button isn't a hyperlink. It's a button handled by JavaScript because of the nature of how it works (a fork might have data that only the client knows about: unsaved code changes). But Shaw found a way to make it work anyway, by essentially passing the metaKey information through all the forking process until that moment we had an opportunity to open that new tab. </p> <h3 id="h-time-jumps">Time Jumps</h3> <h3 id="h-sponsor-notion"><a href="https://www.notion.so/">Sponsor: Notion</a></h3> <p><a href="https://www.notion.so/">Notion</a> is an incredible organizational tool. Individuals can get a ton out of it, but I find the most benefit in making it a home base for teams. It can replace so many separate tools (documents, meeting notes, todos, kanbans, calendars, etc) that it really becomes the hub of doing work, and everything stays far more organized than disparate tools ever could.</p>