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...

🔎 (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

Sep 18, 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

Sep 18, 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

Jan 22, 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

May 20, 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

Node starter kit for semantic-search. Uses Mighty Inference Server with Qdrant vector search.

Node starter kit for semantic-search.  Uses Mighty Inference Server with Qdrant vector search.

Mighty Starter This project provides a complete and working semantic search application, using Mighty Inference Server, Qdrant Vector Search, and an e

Jul 26, 2022

Allows users to quickly search highlighted items on Wikipedia. Inspired by the "search Wikipedia" function on the kindle mobile app.

Allows users to quickly search highlighted items on Wikipedia. Inspired by the

wikipedia-search Allows users to quickly search highlighted items on Wikipedia. Inspired by the "search Wikipedia" function on the kindle mobile app.

Aug 15, 2022

A plugin for Obsidian (https://obsidian.md) that adds a button to its search view for copying the Obsidian search URL.

A plugin for Obsidian (https://obsidian.md) that adds a button to its search view for copying the Obsidian search URL.

Copy Search URL This plugin adds a button to Obsidian's search view. Clicking it will copy the Obsidian URL for the current search to the clipboard. T

Sep 20, 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 13 Jul 1, 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 105 Sep 18, 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 Aug 24, 2022
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

Soybean 10 Aug 29, 2022