Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
krAshwin committed Nov 25, 2020
1 parent 1586acb commit a6113cd
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,25 @@ sudo apt install xclip
sudo apt install xsel
sudo apt install wl-clipboard
```
<br />

And following Python modules are required and must be installed,
* pyperclip - used for accessing the clipboard
```shell
pip3 install pyperclip
```

## Usage
I have migrated this code on Go, and have added some additional functionality.
### Release Notes
1. If a URL is identified in the clipboard or passed along with the tool, it directly navigates to the specified URL.
2. Support for Mac OS.

This tool when binded with the shortcut keys can be very much helpful in order to search stuff on Google. <br> <br>
For efficient use of this script, it is recommended to create keyboard shortcut for running the script.
Copy `Ctrl+C` the text you want to search for and press the specified hotkeys to directly search on Google. <br> <br>
Copy the text you want to search for and press the specified hotkeys to directly search on Google. <br> <br>
This tool searches for the last copied text on internet using Google and is a major time saver.

## Creating Shortcuts
**Windows**
> Create a batch file (MyScript.bat) with `python3 /path/to/search.py` in it
and make a shortcut of the batch file on Desktop and specify the shortcut key in the Properties section.

![picture alt](https://i.stack.imgur.com/eMpiM.png "Bat Shortcut Properties")
> Create a shortcut of the windows' version of tool and make a shortcut of the file on Desktop and specify the shortcut key in the Properties section. And maybe hide it if you don't need to see it often ;)
**Linux**
> Go to Settings → Keyboards and add command `python3 /path/to/search.py` and shortcut key in there.
> Go to Settings → Keyboards and add command `Google-Search-Hotkey` and shortcut key in there.
## Troubleshooting
**Linux**
If `Pyperclip could not find a copy/paste mechanism for your system.` error occurs, then install the following module and re-run the tool.
```shell
sudo apt install xsel
```

## Author
**Kumar Ashwin** <br>
Expand Down

0 comments on commit a6113cd

Please sign in to comment.