<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Josh Smith</title>
    <description>The latest articles on DEV Community by Josh Smith (@josh_smith).</description>
    <link>https://dev.to/josh_smith</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F890473%2Faa65c343-1434-41b5-bfe2-99639e378fd3.jpg</url>
      <title>DEV Community: Josh Smith</title>
      <link>https://dev.to/josh_smith</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/josh_smith"/>
    <language>en</language>
    <item>
      <title>Learn GitHub's site wide keyboard shortcuts</title>
      <dc:creator>Josh Smith</dc:creator>
      <pubDate>Fri, 15 Jul 2022 18:46:32 +0000</pubDate>
      <link>https://dev.to/josh_smith/learn-githubs-site-wide-keyboard-shortcuts-5980</link>
      <guid>https://dev.to/josh_smith/learn-githubs-site-wide-keyboard-shortcuts-5980</guid>
      <description>&lt;p&gt;Love keyboard shortcuts and love GitHub?&lt;/p&gt;

&lt;p&gt;In this series, you'll learn &lt;strong&gt;ALL&lt;/strong&gt; of GitHub's shortcuts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/XIqCQx02E1U9W/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/XIqCQx02E1U9W/giphy.gif" alt="Kermit the Frog furiously typing on a typewriter" width="500" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Site wide shortcuts
&lt;/h2&gt;

&lt;p&gt;For the first part of this series, we're going to focus on the shortcuts that work across all of GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; If you want to learn these shortcuts in the time it takes to read this, &lt;a href="https://keyhero.io"&gt;check out Keyhero&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Bring up the shortcuts dialog
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;?&lt;/strong&gt; – shows you all the shortcuts available for the current page, which may make &lt;strong&gt;?&lt;/strong&gt; the most important shortcut (especially when you haven't learned them yet!).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--w82BqutP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-help-dialog_faavgq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--w82BqutP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-help-dialog_faavgq.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Go to dashboard
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;G&lt;/strong&gt; then &lt;strong&gt;D&lt;/strong&gt; - goes to your dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p2yNSZ2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-go-to-dashboard_j9jvqm.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p2yNSZ2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-go-to-dashboard_j9jvqm.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, I'm navigating to my dashboard and to my notifications and back again.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Go to notifications
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;G&lt;/strong&gt; then &lt;strong&gt;N&lt;/strong&gt; - goes to your notifications.&lt;/p&gt;

&lt;p&gt;You can refer to the example above, since I'm navigating back and forth from dashboard and notifications.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Focus search bar
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;S&lt;/strong&gt; or &lt;strong&gt;/&lt;/strong&gt; - focuses on the search bar.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hjl-j5Bb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-focus-search_ac4in4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hjl-j5Bb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-focus-search_ac4in4.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Move selection up / Move selection down
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;J&lt;/strong&gt; - moves the selection up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;K&lt;/strong&gt; - moves the selection down.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mM7-QkPd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-move-up-or-down_fybhei.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mM7-QkPd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-move-up-or-down_fybhei.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see that I can navigate in my notifications between each notification in the list. This works in most places where there's a list of items, like in GitHub Issues.&lt;/p&gt;

&lt;p&gt;If you're familiar with Vim, or Gmail's keyboard shortcuts, these will feel natural to you.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Toggle selection
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;X&lt;/strong&gt; - toggles the current selection.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7UgCCBbC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-toggle-selection_go4gsm.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7UgCCBbC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-toggle-selection_go4gsm.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, I'm toggling a notification to select it, and then toggling again to unselect it.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Open selection
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;O&lt;/strong&gt; or &lt;strong&gt;Enter&lt;/strong&gt; - opens the current selection.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HWiC-or2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-open-selection_oldb5m.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HWiC-or2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-open-selection_oldb5m.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, I'm opening the notification that's currently selected (note that it doesn't necessarily need to be toggled to open it). Even cooler, the screen will scroll to and focus on the object you opened (zoom emphasis mine).&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Open command palette
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Ctrl&lt;/strong&gt;/&lt;strong&gt;Cmd&lt;/strong&gt; + &lt;strong&gt;K&lt;/strong&gt; - opens the command palette.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oSB_hMir--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-command-palette_cfh8ld.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oSB_hMir--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910142/tutorials/gifs/github/github-command-palette_cfh8ld.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The command palette may be the second most powerful shortcut on this list, since it lets you navigate or perform actions using a single key. Super useful if you forget a shortcut, or if there's no shortcut for what you want to do.&lt;/p&gt;

&lt;p&gt;If you're editing Markdown text, you need to type &lt;strong&gt;Ctrl&lt;/strong&gt; + &lt;em&gt;Option&lt;/em&gt; + &lt;strong&gt;K&lt;/strong&gt; or &lt;strong&gt;Cmd&lt;/strong&gt; + &lt;strong&gt;Option&lt;/strong&gt; + &lt;strong&gt;K&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Open command palette in command mode
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Ctrl&lt;/strong&gt;/&lt;strong&gt;Cmd&lt;/strong&gt; + &lt;strong&gt;Shift&lt;/strong&gt; + &lt;strong&gt;K&lt;/strong&gt; - opens the command palette in command mode.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wsbduEws--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-command-palette-command_d5pfhu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wsbduEws--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://res.cloudinary.com/dafnkmuyl/image/upload/v1657910141/tutorials/gifs/github/github-command-palette-command_d5pfhu.gif" alt="Demo" width="768" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This allows you to run commands, like creating a Gist in the example here.&lt;/p&gt;

&lt;h3&gt;
  
  
  Coming up: Notifications
&lt;/h3&gt;

&lt;p&gt;In the next article in this series, I'll be teaching you shortcuts for managing your GitHub notifications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Want to learn GitHub shortcuts in 5 minutes a day?
&lt;/h2&gt;

&lt;p&gt;With more than 80 shortcuts for GitHub, you &lt;em&gt;could&lt;/em&gt; read all the articles in this series and hope to remember, practice, and recall them all on your own.&lt;/p&gt;

&lt;p&gt;Or you could &lt;a href="https://keyhero.io"&gt;try Keyhero&lt;/a&gt;, a tool I built to help you learn shortcuts for pretty much anything you use. It's in early access right now and I'm already &lt;a href="https://keyhero.io/u/joshsmith"&gt;using it myself&lt;/a&gt; to learn all of GitHub's shortcuts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://keyhero.io"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n0nBywQG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zpi65j1153w95lnna4iw.png" alt="Keyhero screenshot" width="880" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://keyhero.io"&gt;https://keyhero.io&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>productivity</category>
      <category>github</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
