This is a simple extension that allows you to control the open source screenshot tool ShareX right through Raycast.
Note
I've had some issues using the Steam edition of ShareX. If possible, please download ShareX from their website or from Github.
Important
Make sure to make ShareX autostart with Windows. Otherwise, the first command that you run through Raycast will not work and will just start ShareX instead.
Raycast will usually also prompt you to set the path to your ShareX.exe file. Please make sure you set the correct file.
Open Raycast and run the "Capture Region" command.
The "main" Raycast window will now close, and ShareX's region screenshot tool will open.
This works because ShareX allows you to use hotkey actions aswell as workflows as command line arguments. For example, when you go ahead & run the "Image Editor" command with a selected file through Raycast, Raycast will execute the following command:and:
ShareX.exe -ImageEditor "file path"This would open ShareX's image editor with your selected file.
Tip
You can read about all other command line arguments that ShareX supports here!
Install the required dependencies:
npm installRun the extension in development mode
npm run devYou should be able to find the "Hello" command in Raycast!
See the Raycast Developer Documentation for more information!