This is the README for the Visual Studio Code extension named "Regex Show Go".
When hovering a line in Visual Studio Code, the line is matched against one or several regex patterns. If a match is found, a hover box is shown with a link which is created from a match-prefix and the actual match and a match-postfix. See Extension Settings section for configuration.
To use the extension, you must configure a regex match pattern, match prefix, and match postfix. Note, for backward compatibility, if "search_at" is not defined, the default value is "false".
Configuration example:
"regex_show_go.config.match": [
{
"match_pattern": "TEST[0-9-]+",
"prefix": "https://www.google.com/search?q=",
"postfix": "-test",
"search_at": false
},
{
"match_pattern": "WIKI",
"prefix": "https://en.wikipedia.org/wiki/",
"postfix": "",
"search_at": true
}]
Example 1: Hovering a line containing the text "TEST-1234", will generate the following link "https://www.google.com/search?q=TEST-1234-test".
Example 2: Hovering a line containing the text "WIKI#test#", will generate the following link "https://en.wikipedia.org/wiki/test". Note, "match_pattern" is not included in the generated URL.
First install required packages
npm install
You can now build the extension
vsce package
And to release on Visual Code Marketplace
vsce publish
The latter requires a valid access token for the Marketplace.
- Fix vulnerbilities
- Fix vulnerbility, bump Terser to 5.14.2
- Updated minimist, https://github.com/advisories/GHSA-xvch-5gv4-984h
- Fix vulnerabilities.
- Fix vulnerability: Bump lodash from 4.17.19 to 4.17.21
- Fix underscore.sting vulnerability: https://github.com/advisories/GHSA-v2p6-4mp7-3r9v
- Fix SSRI vulnerability: https://github.com/advisories/GHSA-vx3p-948g-6vhq
- Security fixes. No functional changes.
- [Feature] Possibility to leave match out of the generated URL. See the section "Extension Settings".
- [breaking change] Added 'postfix' string. Update extension configuration with 'postfix' field
- Added icon.
- Fix version numbering.
- Updated README.md
- Updated extension to meet Marketplace requirements.
- Initial version with basic regex search, match and generate url link.
None
Icons made by xnimrodx from www.flaticon.com