Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PeriscopeNew to Visual Studio Code? Get it now.

Periscope

Josh Mu

|
4 installs
| (0) | Free
ripgrep workspace search with file peek
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Periscope 🫧

Features

Periscope is a Vscode extension for high powered workspace contents search utilising ripgrep with on the fly peek across result suggestions.

Demo

Inspired by nvim's telescope

Instructions

  1. Ideally assign a keybinding such as <super> + p to invoke the periscope.search command. Otherwise you can use the command prompt and search for periscope.
  2. Input your query and move through the suggested results, the editor will reflect the current highlighted suggested item.
  3. Hit enter to open the file or cancel to return to your original active editor

Requirements

Install ripgrep

Extension Settings

This extension contributes the following settings:

  • periscope.search: Enable Periscope Search

Configuration Options

  • rgOptions: Additional options to pass to the 'rg' command, you can view all options in your terminal via 'rg --help'.
  • rgGlobExcludes: Additional glob paths to exclude from the 'rg' search, eg: '/dist/'.
  • addSrcPaths: Additional source paths to include in the rg search. You may want to add this as a workspace specific setting.
  • startFolderDisplayDepth: The folder depth to display in the results before '...'.
  • endFolderDisplayDepth: The folder depth to display in the results after '...'.
  • enableGotoNativeSearch: If true, then swap to native vscode search if the custom suffix is entered using the current query.
  • gotoNativeSearchSuffix: If the query ends with this suffix, then swap to the native search with the query applied.

Todo

  • [ ] Support fuzzy search (fzf)
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft