How do I setup AutoKey to get the following result?
- I type a word like ubu in a text editor
- A window opens with the suggestion ubuntu
- I can select ubuntu through TAB-key
- ubu gets replaced with ubuntu
How do I setup AutoKey to get the following result?
Note: this may not work in a Wayland session!
Texpander:
Download the
.zip
file and extract the contents.Copy
texpander.sh
over to~/bin
. Make it executable.Use your distro's method to assign Ctrl+Shift+~, for example, to
texpander.sh
. (Note that~/bin
should be in your$PATH
.)Install
xsel
, notxclip
, andxdotool
usingsudo apt install
.Create a folder
~/.texpander
.In that folder, create the following three files:
au.txt
,off-topic.txt
andos.txt
with the following contents:au.txt
off-topic.txt
os.txt
Open a text editor and press the assigned shortcut to launch
texpander.sh
. You'll get a Zenity window like this:If you have a longer list, there'll be a handy scrollbar or just type the first letter of a listed item to jump down the list to that item.
Select the one you want and press Enter or click
OK
.Troubleshooting: If things don't work, try increasing the
sleep
values in lines 45 and 61 oftexpander.sh
.xdotool
on older machines may benefit.