Microsoft/vscode

Search Editor: Add keybinding for double-click action, e.g. to open to the side

Open

#194.044 geöffnet am 25. Sept. 2023

Auf GitHub ansehen
 (6 Kommentare) (3 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
feature-requesthelp wantedsearch

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

In the Search Editor, there are currently keybindings / keyboard shortcuts for opening results in the current editor group, and double-clicking can be configured to open to the side, but there are currently no keybindings for opening to the side:

In the Search Editor, results can be navigated to using Go to Definition actions, such as F12 to open the source location in the current editor group, or ⌘K F12 to open the location in an editor to the side. Additionally, double-clicking can optionally open the source location, configurable with the search.searchEditor.doubleClickBehaviour setting.

  // Configure effect of double-clicking a result in a search editor.
  //  - selectWord: Double-clicking selects the word under the cursor.
  //  - goToLocation: Double-clicking opens the result in the active editor group.
  //  - openLocationToSide: Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist.
  "search.searchEditor.doubleClickBehaviour": "goToLocation",

It'd be great to add a keybinding to do the same action as double-click, which users can already configure to openLocationToSide. (Looks like enter / cmd+enter are currently available.)

Contributor Guide