Change shortcut to open Palette

To make it more consistent with command palettes in other websites/applications, maybe you should consider changing the key bind to ⌘+⇧+P?

This is the same as Visual Studio Code and numerous other IDEs and text editors.

1 Like

Yes, please don’t hijack my browser’s shortcut to focus the search bar!


If they would just allow the key binding to be customized, then people could do what they want. I also prefer the idea of Command + Shift + P, to be consistent with all the editors that use this convention.


The entire world uses Cmd/Ctrl-Shift-P, please don’t reinvent this!

GH is exploring key remappings so these shortcuts can be fully customized in the future.

1 Like

As @inkblotty reposted, we did in fact start with command+p and command+shift+p but were unable to consistently override the browser print dialog (which was quite frustrating). We have gotten a lot of feedback on this already and will be discussing as a team how we could improve this experience and/or give users more control / customization.

In the meantime, if overriding the browser search bar command is too frustrating, you can disable the command palette via Feature Preview in your profile dropdown while we work on a solution for you.


Here’s a userland workaround: This userscript remaps Cmd+Shift+P to Cmd+K. Works on Mac only. Maybe someone can create a version of this that also works on Windows/Linux.

// ==UserScript==
// @name         Remap GitHub Command Palette to Cmd+Shift+P
// @namespace
// @version      0.1
// @description  Remap GitHub Command Palette to Cmd+Shift+P. Only works on Mac.
// @author       dtinth
// @match*
// @icon
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener('keydown', (e) => {
        if (e.key.toLowerCase() === 'p' && e.shiftKey && e.metaKey) {
            document.body.dispatchEvent(new KeyboardEvent('keydown', { key: 'k', metaKey: true, bubbles: true }));
    }, { capture: true })
1 Like