Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/profelis/re-search
https://github.com/profelis/re-search
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/profelis/re-search
- Owner: profelis
- License: mit
- Created: 2021-01-24T00:09:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T19:48:44.000Z (almost 4 years ago)
- Last Synced: 2024-04-28T02:19:09.852Z (8 months ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=profelis.re-search
- Size: 140 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# re-search plugin
Preprocess search query by given patterns.
# Pattern examples
```json5
"re-search.patterns": {
// replace any `*` with regexp `.*` and activate regexp search
"*": {
"replacement": ".*",
"isRegex": true, // activate regexp search
"isCaseSensitive": false,
"matchWholeWord": false,
},
// replace xml tag with regexp to match any xml tag with same name
"/<\/{0,1}([A-Za-z][A-Za-z0-9]*)\/{0,1}>/": { // match with regexp
"replacement": "<\/{0,1}$1\/{0,1}>",
"isRegex": true,
"stopMatching": true,
"filesToInclude": "some/path",
}
}
```# Usage
- Execute command `re-search: Search`
- insert search text
- processed text will be pasted in `Search` panelor
- Select any text in editor and execute command `re-search: Search selected` (`ctrl-shift-alt-F`)
- processed text will be pasted in `Search` panel![preview](https://raw.githubusercontent.com/profelis/re-search/master/preview.gif)