m5x5 / quick-edits

Edit elements quicker in the browser and find them easier in your code.
https://quick-edits-extension.vercel.app/
GNU General Public License v2.0
3 stars 0 forks source link

Add setup instructions for windows #5

Open m5x5 opened 3 months ago

m5x5 commented 3 months ago

Show new users how to setup the native search module and configure their editor paths on windows.

Here is what the process looks like atm:

Chrome Extension

Install and build Chrome Extension.

  git clone git@github.com:m5x5/quick-edits.git
  cd browser-extension
  npm install --legacy-peer-deps
  npm run build

Native Code Search Module

  cd native-module
  go install
  go build

Here is what the macOS config looks like. It would be awesome if you could let me know how the steps for windows are like in comparison so that we can write them in the README.md.

  cd /Library/Google/Chrome/NativeMessagingHosts
  sudo touch com.quick_edits.native_search.json

Add this as content of com.quick_edits.native_search.json

{
  "name": "com.my_company.my_application",
  "description": "Quick Edits",
  "path": "/absolute/path/to/built/go/module/m",
  "type": "stdio",
  "allowed_origins": ["chrome-extension://yourchromeextensionid/"]
}