Search:

My Favourite Widget- The Command Palette

  • Emacs

The command palette, is, by far, my favourite widget. And while the concept of having a favourite widget might seem odd- command palettes are just so powerful. Generally, command palettes will have a set keymap that, when pressed, will allow you the type in the name of a command and then run it via enter. More advanced implementations will allow you to Fuzzy Find commands, making discovery easier.

In Programs

Emacs

One of the first ever command palettes that I know of is the one included with Emacs. M-x (or execute-extended-command) is an essential part of Emacs, and while out of the box it doesn't resemble what you'd typically recognise as a command palette, it's still just as powerful- any interactive command and function, right at your fingertips. And this is Emacs of course, so you can customise it however you want for whatever you need- so if you want it to look/function like other command palettes, it can!

Vim

I should probably also mention Vim, as it has another popular implementation of the command palette via it's command mode- did you know you can set configuration options from it? For example, I you wanted to disable relative line numbers just for one session, you could with :set norelativenumer. Can't believe it took me so long to figure that out.

Obsidian

Obsidian also has a great implementation of a command palette. One thing it does that I hope other programs will follow suit with is setting the keymap to C-p, instead of the usual C-S-p. It's a lot easier to press, and that little bit of reduced friction goes a long way.

Others

I wouldn't be surprised if more apps and programs end up adopting a command palette implementation, I would love to see it in apps where discoverability can be difficult, as command palettes can help with this.

Here are a few apps you might not know have command palettes:

  • The GNU Image Manipulation Program (/)
  • Kdenlive (C-M-i)
  • Godot (C-S-p)

On the Web

Recently, I've also seen some websites taking to using command palettes- typically documentation websites. I've thought about implementing one for my own website too, though I'm not sure if I will. We'll see.