-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger word is not removed in Thunderbird #529
Comments
Does thunderbird expand tabs into spaces? |
Just tried the GTK front end and it works fine if I use Enter, but leaves the first three characters of my abbreviation if I use tab. Same happens with paste using clipboard or keyboard. So, we're too fast for Thunderbird - at least when using tab as the delimiter. You will either have to not use tab as the delimiter or recode the affected phrases as scripts with some delays added. Another option is to skip using delimiters entirely. I have abbreviations that trigger immediately with trigger phrases like Unsub! . That is extremely unlikely to occur naturally so it's kind of like building the delimiter right into the trigger abbreviation, but !Unsub or anything else "unnatural" would work just as well. |
Thank you for your replies. I have attached my log in case it is of use. AutoKey is excellent and really a very important tool for Linux users. |
AutoKey phrases each consist of two files. For a phrase named myphrase, there will be myphrase.txt which contains the text of the phrase and .myphrase.json which contains all the metadata such as the trigger delimiter. The json file is hidden because it's name starts with a period. That's a Linux thing and the hidden files will be unhidden in 0.96 if and when we manage to release it. The point being that if you are careful, you can easily write a bash script using sed or awk or your favorite tool to mass edit a bunch of the metadata files for you. Similarly, since myphrase.txt is a plain text file, there is nothing preventing you from creating/editing it directly with the tools of your choice (e.g. a text editor with word wrap.) If you do modify these files directly, you should close and restart AutoKey before trying to use them. It does try to detect external changes, but it's not perfect. If any of this leaves backup/work files around, it's a good idea to clean them out when you're done, but AutoKey should ignore them. If this interests you, come over to Gitter and we can help. If you mean the panel where you enter the text for the phrase, that sounds like an easy change (but I am not an AutoKey developer.) However, it's an enhancement request and should be filed as a separate issue. It would probably need to be user configurable or at least make clear the difference between wrapped text and multiline text. |
This started happening to me recently after messing with input methods — namely, switching from "None" to "IBus" in Mint 20.1 Cinnamon. Two things would happen intermittently, sometimes together:
So far as I could tell, this was independent of pasting method and trigger character settings. It also happened with very simple replacements, e.g. one word with only regular letters. It also happened in every application, not specifically Thunderbird. Switching back to "None" as input method seems to have resolved the issue. Hopefully this can help find and fix the root cause. I was hoping to use both Autokey and Ibus-typing-booster, but the latter is causing me grief in too many scenarios so I’ll stick to Autokey for now. |
Classification: UI/Usability
Reproducibility: Always
AutoKey version: 0.95.10
Used GUI (Gtk, Qt, or both): GTK
Installed via: AUR
Linux Distribution: Manjaro Linux 21.0
Summary of the problem.
Phrases created in Autokey pastes into the text frame of a new email in Thunderbird, but the abbreviation is not removed. That is to say when I type "comma1" abbreviation, the expanded text pasted into Thunderbird is:
commSeveral mistakes were made using commas:
Review the useof commas here: http://www.grammarbook.com/punctuation/commas.aspsdfsdfsdfsdfsdfsdf
Note that the abbreviation "comma1" was not completely erased, but rather "comm" remains followed by the content of the phrase.
Steps to Reproduce:
Create phrases in Autokey. Set TRIGGER as TAB, select remove trigger character. In Thunderbird, select "Write new message" and try using the TRIGGER to expand text into the Thunderbird mail.
Expected behavior: The text should appear and the TRIGGER word removed completely.
Actual Results
The TRIGGER word is only partially removed when the text is automatically pasted.
Please see screenshots showing how the TRIGGER word is not completely replaced.
The text was updated successfully, but these errors were encountered: