Download: yandex upload.ee

1. Enter text
2. Select text (Ctrl+Shift+Left)
3. Hotkey call (Add a call to this program using a hotkey)
4. The program will copy the selected text and offer to find it in some way (See the menu in the screenshot). Since I'm working with PureBasic files, I chose the "pb" file type. Up/Down arrows to move the cursor through the list.
5. I press Enter and I get a list box that matches the selected text.
6. I click on the list item and it is inserted into the active window. The selected text is replaced. If I selected "files", a code snippet will be inserted.
You can create your own lists and your own code snippets.
Place the folder with lists in ~/.config/GlobalAutoCompletion/.
Place the program in /usr/bin/.
You can make multiple hotkeys using different options (-s, -c, -f, -t) to get the list of items by skipping the selection menu.
You must have xdotool and xsel installed.
You can work with any type of file, but for this you need to create lists of functions yourself.