DEV Community

Cover image for A New Feature of GitHub
Md. Fahim Bin Amin
Md. Fahim Bin Amin

Posted on • Updated on

A New Feature of GitHub

What is GitHub Command Palette?

GitHub Command Palette is a new feature of GitHub, and it is now available for all users. By using the Command Palette, you can quickly navigate to your organizations and repositories, and use modes to find and jump-to pull requests, issues, projects, files, and more. Not only that, you can also execute commands to optimize your workflows, all from the keyboard.

The command palette is an on-demand way to show suggestions based on your current context and resources you've used recently. You can open the command palette with a keyboard shortcut from anywhere on GitHub, which saves you time and keeps your hands on the keyboard.

How You Can Open The Command Palette?

You can follow the simple procedures mentioned below:

  • Make sure you are on GitHub, but it can be your GitHub homepage, any repo or anywhere of GitHub.
  • Make sure that you are loggin in to your GitHub account, because this process would not work otherwise.
  • If you are using Windows or Linux machine, then press Ctrl + k or Ctrl + Alt + k. If you are using Mac, then press + k or + option + k from your keyboard.
  • When you open the command palette, it shows your location at the top left. It uses it as the scope for suggestions.

  • NOTE

    • If you are editing Markdown text, open the command palette with Ctrl + Alt + k (Windows and Linux) or + option + k (Mac).
    • If you are working on a project (beta), a project-specific command palette is displayed instead. For more information, see "Customizing your project (beta) views."
  • You can narrow down, expand, or completely change the scope for suggestions as you see fit for yourself simply by editing the path in the command palette's text field.

  • If you want to narrow the scopem then use Tab key from your keyboard.

  • If you want to expand the scope, highlight and remove an item in the scope, then you can use Backspace or the Delete key from your keyboard as well.

  • If you want to clear the scope and the text box, then simply click on Clear.

  • Extra

    • You can also use many keystrokes to narrow your search. For more information, you can visit Keystroke functions.
  • You can use the arrow keys to highlight the path you want from the list of the given suggestions.

  • Use Enter key to jump to your desired location. You can also use Ctrl + Enter (for Windows and Linux) or + Enter (for Mac) to open the location in a new tab of your browser.

I uploaded a Shorts video on YouTube as well for this.

For more in-depth information, follow the instructions from GitHub Docs

Thanks for reading the whole article.

You may follow me on GitHub, Twitter, LinkedIn, Facebook, YouTube as well.

Top comments (2)

Collapse
 
grenguar profile image
Igor Soroka

I think it is incredible for improving the productivity. Though, I really like extension for Chrome-based browsers - Vimium

Collapse
 
fahimfba profile image
Md. Fahim Bin Amin • Edited

Yeah! Also, thanks for the information regarding Vimium. I didn't know about it earlier. After checking that out, I think it would be an interesting tool.