Skip to content
Versora

Manual

Customization

Command palette

6 min read

On this page

The palette is a search box that finds anything in Versora by name: commands (fetch, push, stash, preferences, insight screens…), Home repositories, local and remote branches and the open repository's tags. You type a few letters, choose the result with the arrows and press Enter. It's the quickest path to an action whose menu you don't remember.

Every page of this manual gives, under Where to find it, the exact name of the command in the palette.

Open and use the palette

Where to find it

  • Shortcut: Ctrl+P. With the palette open, the same key closes it.
  • Shortcut: Ctrl+Shift+P opens it already in commands-only mode.
  • Tab bar: the search button (tooltip "Search commands, repositories or branches (Ctrl+P)").

Both keys can be changed in Keyboard shortcuts. They also work with the focus in a text field and in the integrated terminal.

Step by step

  1. Press Ctrl+P. The field shows "Search commands, repositories, branches or tags".
  2. Type part of the name. The letters only need to appear in order, not together: psh finds "Push", ftlogin finds feature/login. Case and accents don't matter: PUSH finds "Push", and relatorio finds a branch named feature/relatório.
  3. Move through the results with ↑ and ↓ (the list wraps around) or with PageUp and PageDown (8 items at a time). The mouse also selects.
  4. Press Enter (or click) to run it.
  5. To close without doing anything, press Esc or click outside.

The footer reminds you of the keys: "↑↓ navigate · Enter run · Esc close". The focus doesn't leave the field with Tab.

Tip

The palette learns from you: the items you use often, and the ones you used recently, move up the list. With nothing typed, they appear first.

What appears in the palette

Each row shows the name, a detail (the path, the description or the reason it's unavailable), a badge, the shortcut key in effect (if any) and the type:

TypeWhat it isWhat happens when you choose it
CommandAn app action.Runs the action. Some open a dialog or change the search text.
RepositoryA Home project. The detail is the path.Opens the repository in a tab (or activates the tab, if it's already open).
Local branchA branch of the active tab's repository.Checks out the branch.
Remote branchA branch on a remote (without origin/HEAD).Checks out the remote branch. See Checkout.
TagA tag of the active tab's repository.Selects the tag's commit in the graph.

Badges:

  • "current tab": the repository of the tab you're on;
  • "open": a repository that's already open in another tab;
  • "current": the checked-out branch.

Branches, tags and the repository commands only appear with a repository tab active. On Home, the palette lists the general commands and the repositories.

When a name matches, the letters found are highlighted. A name that matches in the title ranks higher than one that matches only in the detail (the path) or in the command's hidden keywords.

Filter by type (prefixes)

Start the search with a prefix and a space to list only one type of item. The prefix becomes a label to the left of the field, and the example text changes.

PrefixShows onlyExample text in the field
>Commands"Command name"
checkout or co Local and remote branches"Branch name (local or remote)"
repo or open Repositories"Repository name or path"
tag Tags"Tag name"
  • The prefixes are the same in every language.
  • With the field empty inside a mode, Backspace goes back to the general search ("Backspace returns to the general search").
  • Outside a mode, the footer reminds you: "Type checkout, repo or tag and a space to filter; > for commands only".
  • Choosing the "Check out branch…" command ("Lists local and remote branches") or "Open repository from the list…" ("Lists the projects on Home") doesn't open a dialog: the palette goes straight into checkout or repo mode.

To check out release/2.4, type co rel24 and press Enter on the result.

Unavailable commands

A command that exists but can't run right now appears grayed out, after the available ones, with the reason in place of the detail. Choosing it shows a notice with the name and the reason, for example "Pop the latest stash: there is no stash.". The reasons are:

ReasonWhen
"the repository is still loading"Right after opening the tab.
"the repository has no commits yet"A newly created repository, with no commits (for example, in "Create branch…").
"there are no changes to stash"No local changes.
"there is no stash"No stash saved.
"there are no files to stage"Nothing unstaged.
"there are no staged files"Nothing staged.
"there are no changes"Clean working directory.
"there are still conflicts""Continue …" with conflicted files.
"Gitflow isn't set up in this repository""Gitflow: start …" without Gitflow initialized.
"there is no active filter""Show all branches in the graph" with no hidden or solo branch.
"no tab was closed this session""Reopen closed tab".
"already the checked-out branch"A local branch that's already the current one.
"the commit is beyond the loaded history"A tag whose commit isn't among the commits loaded in the graph. Increase Commits loaded in the graph or use "load more".

Many results

The palette shows up to 60 rows. When there are more, the footer says "Showing 60 of N — keep typing to narrow it down". With no results, "No results for "…"." appears.

Repository commands that come built into the palette

With a repository open, these commands are always in the palette (besides the ones each feature adds, described on each feature's page):

CommandDetail or note
Fetch"Fetch all remotes"
PullShows the default mode. Each mode also appears on its own: "Pull (fast-forward if possible)", "Pull (fast-forward only)" and "Pull (rebase)", with "Pulls in this mode and makes it the default".
Push"Pushes ‹branch› to the remote"
Force push…"Overwrites the remote branch (--force-with-lease), with confirmation"
Create branch…"From the current commit (HEAD)"
Check out branch…Goes into checkout mode.
Stash changes…
Pop the latest stash
Stage all changes / Unstage all changesCtrl+Shift+S / Ctrl+Shift+U
Discard all changes…"Asks for confirmation"
Continue … / Skip this commit in … / Abort …Only during a stopped merge, rebase, cherry-pick or revert. "Skip" doesn't exist for merge.
Add remote…
Gitflow: initialize… (or Gitflow: configure…)Also "Gitflow: start …" and, on a Gitflow branch, "Gitflow: finish …". See Gitflow.
Show all branches in the graph"Clears hidden and solo branches"
RefreshF5
Open in external editor / Open terminal here / Show in file explorerCtrl+Shift+E / Alt+T / Alt+O
Copy repository pathThe notice says "Path copied".
Close tabCtrl+W

And, anywhere: "Open repository…" (Ctrl+O), "Open repository from the list…", "Clone repository…", "New repository (init)…", "Go to Home" (Ctrl+T), "Reopen closed tab" (Ctrl+Shift+T), "Git servers (credentials)", "New project group…", "Export settings…", "Import settings…", "Preferences", "Keyboard shortcuts", the themes ("Theme: Dark", "Theme: Light"…) and your custom commands ("My command: …", "Team command: …").

What Versora does in git

The palette has no git command of its own: each item does exactly the same as the equivalent button or menu. That's why the same confirmations, checks and Ctrl+Z apply.

  • The palette doesn't open on top of a dialog that's waiting for an answer. Answer or close the dialog first.
  • Opening the palette closes Preferences and any open menu.
  • A shortcut given to a palette command runs with the same rules as clicking: if the command is unavailable, the same notice with the reason appears.
  • The palette's usage count is kept in Versora (up to 300 items) and is included in exporting and importing settings.
  • Any palette command can get a shortcut in Preferences › Keyboard shortcuts.
  • The palette has no policy key of its own. The commands it shows respect each feature's rules: for example, with team_commands: deny the team commands disappear. See Policy keys.

See also