Skip to content

It helps you save time and reduce energy consumption in your daily computer interactions

License

Notifications You must be signed in to change notification settings

masoudrahimi39/SpeedyShortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shortcuts to Search the Selected Text

Save TIME!

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.

Table of Contents

Demo

View Full Demo Video

Shortcuts Demo

Supported Websites

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 and search_google_translate.ahk files to switch to any language. Feel free to ask for help.
  • YouTube: Find videos related to the selected text on YouTube.
  • Google Scholar: Search a name on Google Scholar profiles.

Setting Up

Windows

  1. Download AutoHotKey v1.1 from its website and install it

  2. Clone this repo or download it manually:

git clone https://github.com/masoudrahimi39/SpeedyShortcuts.git
  1. Open the startup folder by pressing the Windows logo key + R, type shell:startup, then select OK

  2. 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).

  3. Select them and run them.

Ubuntu

  1. Open terminal and navigate to /tmp directory using the below command:
cd /tmp
  1. Clone this repo files by:
git clone https://github.com/masoudrahimi39/SpeedyShortcuts.git
  1. Copy files in the shortcuts_for_ubuntu folder to /usr/local/bin directory:
cp -r /tmp/Shortcuts_for_ubuntu /usr/local/bin
  1. Grant permission to files in Shortcuts_for_ubuntu:
sudo chmod -R 764 /usr/local/bin/Shortcuts_for_ubuntu
  1. install the xclip package by running the below command in the terminal:
sudo apt-get install xclip
  1. Open Settings -> Click Keyboard in the sidebar to open the panel.

  2. In the Keyboard Shortcuts section, select Customize Shortcuts.

  3. 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

Usage

Windows

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.

Ubuntu

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`

License

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!

About

It helps you save time and reduce energy consumption in your daily computer interactions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published