create custom search presets for vscode 🔎

Overview

search-presets-logo

VSCode Search Presets

vscode extension to configure search presets

Sometimes you want to search through a specific set of files, you can use vscode's search include/exclude configurations to filter the results. There are some common workflows that are repeated throughout your day, like searching only test files, only source files, only package.json files, etc. This extension lets you configure presets which configure your search by typing a single command.

search presets

Installation

Click Here

How to use it?

Use the command palette and type Search Presets Or use one of the shortcuts:

  • Windows: shift + alt + f
  • Mac: option + alt + f

How does it know what query to take?

It will resolve the query in the following order

  • A query which is configured for the preset.
  • Highlighted text in VSCode.
  • Clipboard text
  • Empty query

Unfortunatly at the moment, there is no API for reading the current query in the search widget

Extension Settings

filesToInclude

Files to include in the search

filesToExclude

Files to exclude from the search

isCaseSensitive

Match Case (Aa)

matchWholeWord

Match Whole Word (ab)

isRegex

Use Regular Expressions (.*)

triggerSearch

Trigger search after selecting a preset

query

Enforce a specific search query

Custom Preset Configuration

null means that the preset will not override the existing search configuration

"search-presets.custom": {
    [PresetName]": {
        "filesToInclude": string | null,
        "filesToExclude": string | null,
        "isCaseSensitive": boolean | null,
        "matchWholeWord": boolean | null,
        "isRegex": boolean | null,
        "triggerSearch": boolean | null,
        "query": string | null
    }
}

Global Configurations

Apply as defaults for all preset configurations

"search-presets.isCaseSensitive": boolean | null,
"search-presets.matchWholeWord": boolean | null,
"search-presets.isRegex": boolean | null,
"search-presets.triggerSearch": boolean | null

Default presets

If you don't configure anything, this are the presets you'll get

"search-presets": {
    "Tests": {
      "filesToInclude": ".test.*, .spec.*, .e2e.*, .driver.*"
    },
    "Source Files": {
      "filesToExclude": "*.test.js, *.driver.*, *.json"
    },
    "package.json": {
        "filesToInclude": "package.json"
    }
}
You might also like...

Soybean's eslint config presets

Soybean's eslint config presets Auto fix for formatting with prettier TypeScript, Vue, React out-of-box Lint also for json, yaml, markdown Sorted impo

Dec 21, 2022

SoybeanJS's eslint config presets with prettier

SoybeanJS's eslint config presets Auto fix for formatting with prettier Mulit config presets: JavaScript, TypeScript, Vue, React, ReactNative, Svelte

Dec 21, 2022

🔎 (Draft!) VSCode extension to show the search results in a tree view

🔎 (Draft!) VSCode extension to show the search results in a tree view

vscode-search-tree 🔎 (Draft!) VSCode extension to show the search results in a tree view The work on this extension is on-pause for now since VSCode

Sep 7, 2022

Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden data on the www

Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden data on the www

Paranoia 💊 Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden dat

Dec 29, 2022

Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback

Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback

Dynamic BS5 Modal Box Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback Insta

Oct 23, 2022

A personal semantic search engine capable of surfacing relevant bookmarks, journal entries, notes, blogs, contacts, and more, built on an efficient document embedding algorithm and Monocle's personal search index.

A personal semantic search engine capable of surfacing relevant bookmarks, journal entries, notes, blogs, contacts, and more, built on an efficient document embedding algorithm and Monocle's personal search index.

Revery 🦅 Revery is a semantic search engine that operates on my Monocle search index. While Revery lets me search through the same database of tens o

Dec 30, 2022

Tesodev-search-app - Personal Search App with React-Hooks

Tesodev-search-app - Personal Search App with React-Hooks

Tesodev-search-app Personal Search App with React-Hooks View on Heroku : [https://tesodev-staff-search-app.herokuapp.com/] Instructions Clone this rep

Nov 10, 2022

Instant spotlight like search and actions in your browser with Sugu Search.

Instant spotlight like search and actions in your browser with Sugu Search.

Sugu Search Instant spotlight like search and actions in your browser with Sugu Search. Developed by Drew Hutton Grab it today for Firefox and Chrome

Oct 12, 2022

An efficient (and the fastest!) way to search the web privately using Brave Search Engine

Brave Search An efficient (and the fastest) way to search the web privately using Brave Search Engine. Not affiliated with Brave Search. Tested on Chr

Jun 2, 2022
Owner
Ran Yitzhaki
Passionate about learning, creating, developer tools & music
Ran Yitzhaki
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
"Jira Search Helper" is a project to search more detail view and support highlight than original jira search

Jira Search Helper What is Jira Search Helper? "Jira Search Helper" is a project to search more detail view and support highlight than original jira s

null 41 Dec 23, 2022
Kuldeep 2 Jun 21, 2022
🍭 search-buddy ultra lightweight javascript plugin that can help you create instant search and/or facilitate navigation between pages.

?? search-buddy search-buddy is an open‑source ultra lightweight javascript plugin (* <1kb). It can help you create instant search and/or facilitate n

Michael 4 Jun 16, 2022
A various color Matrix filters and Presets for pixi.js

Pixi Color Effects A various color Matrix filters for pixi.js with TON of presets! DEMO Install # npm npm install pixi-color-effects # yarn yarn add

null 109 Nov 24, 2022
Web Application for admin of T-quest game to manage presets of questions

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Maruco 5 Jun 30, 2022
LukeZhu's ESLint config presets

@luke358/eslint-config eslint monorepo Usage Install pnpm add -D eslint @luke358/eslint-config Config .eslintrc { "extends": "@luke358" } You don't

Luke Zhu 2 Jun 13, 2022
Utility to generate adwaita presets for use with AdwCustomizer from images using Google's MaterialU color generator.

Adwaita Preset Generator using Material U Color Generation Material U Color generation is done using the material-color-utilities available here: http

Avanish Subbiah 30 Oct 31, 2022