This collection of keyboard shortcuts enables you to quickly search the selected text on any website (like Google, YouTube, dictionaries, Google Scholar, and more) to enhance productivity. These shortcuts work on both Ubuntu and Windows operating systems.
If you find these search shortcuts helpful, consider giving this repository a ⭐ to show your support and help others discover it.
The repository supports the following websites for instant searches; however, any website can be added easily:
- Google: Search the selected text on Google.
- Dictionary: Look up the selected word in google translate, Longman, and mnemonic dictionaries.
- Google Translate is configured for English to Persian. Customize
search_google_translate.sh
andsearch_google_translate.ahk
files to switch to any language. Feel free to ask for help.
- Google Translate is configured for English to Persian. Customize
- YouTube: Find videos related to the selected text on YouTube.
- Google Scholar: Search a name on Google Scholar profiles.
-
Download AutoHotKey v1.1 from its website and install it
-
Clone this repo or download it manually:
git clone https://github.com/masoudrahimi39/SpeedyShortcuts.git
-
Open the startup folder by pressing the Windows logo key + R, type
shell:startup
, then select OK -
Copy all files in the Shortcuts_for_windows and paste them into the startup folder (by putting them in the startup folder, you don't need to run the files every time you start your system).
-
Select them and run them.
- Open terminal and navigate to
/tmp
directory using the below command:
cd /tmp
- Clone this repo files by:
git clone https://github.com/masoudrahimi39/SpeedyShortcuts.git
- Copy files in the shortcuts_for_ubuntu folder to
/usr/local/bin
directory:
cp -r /tmp/Shortcuts_for_ubuntu /usr/local/bin
- Grant permission to files in
Shortcuts_for_ubuntu
:
sudo chmod -R 764 /usr/local/bin/Shortcuts_for_ubuntu
- install the
xclip
package by running the below command in the terminal:
sudo apt-get install xclip
-
Open Settings -> Click Keyboard in the sidebar to open the panel.
-
In the Keyboard Shortcuts section, select Customize Shortcuts.
-
You should repeat this step for all files in the Shortcuts_for_ubuntu directory. Here, we do it for search-google.sh file
8.1. Click the Add Shortcut button if no custom shortcut is set yet. Otherwise, click the + button. The Add Custom Shortcut window will appear like the below image
8.2 Type a Name to identify the shortcut like
search_google
.8.3 Type the below Command to run an application
sh /usr/local/bin/Shortcuts_for_ubuntu/search_google.sh
8.4 Click the Add Shortcut… button. In the Add Custom Shortcut window, hold down any shortcut you want like
shift
+alt
+g
.8.5 Click Add.
! These shortcuts can be chosen based on your convenience
These shortcuts can be chosen based on your convenience, but first, you must change them in the files in the Shortcuts_for_windows directory.
Select any text, and press `ctrl` + `c` to copy it to the clipboard, then press any shortcut from below: - Google search → `shift` + `alt` + `g` - Google Translate → `shift` + `alt` + `c` - Google Scholar (people) → `shift` + `alt` + `p` - Google Scholar (articles) → `shift` + `alt` + `a` - Youtube search → `shift` + `alt` + `v` - Longman Dictionary → `shift` + `alt` + `l` - Youtube search → `shift` + `alt` + `v` - Mnemonic Dictionary → `shift` + `alt` + `n` -
NOTE: There is a bug with AutoHotkey that prevents the selected text from being copied to the clipboard correctly, so we need to press ctrl
+ c
to do it manually.
Select any text, then press any shortcut you want like below:
- Google search → `shift` + `alt` + `g` - Google Translate → `shift` + `alt` + `c` - Youtube search → `shift` + `alt` + `v` - Longman Dictionary → `shift` + `alt` + `l` - Youtube search → `shift` + `alt` + `v` - Mnemonic Dictionary → `shift` + `alt` + `n`
This repository is licensed under the MIT License. Feel free to use, modify, and share the content as long as you provide appropriate attribution.
Happy searching!