-
space triggers are discarded
scottkillen > 2020-12-07 15:22
Jean,
QAP does not preserve spaces that are hot string triggers, per the new functionality.
I thought it was an issue with white space, but tabs are preserved just fine.
Scott
Using v 11.1 -
RE: space triggers are discarded
Jean Lalonde > 2020-12-07 15:24
Hi Scott,
Just to make sure I get you well, could you give an example?
Jean -
RE: space triggers are discarded
scottkillen > 2020-12-07 15:45
Update: Apparently, this has to do with how MS Word pastes strings from the clipboard. It trims spaces, I guess.
Here's the case:
If I define a text mode hotstring 'zzirs' as 'Internal Revenue Service' and use it in 'text mode', when I type 'zzirs ' it replaces it with 'Internal Revenue Service' but consumes the triggering space. If I trigger the hot string with a period, the period is not consumed: I get 'Internal Revenue Service.'
I tried switching the hot string to 'macro mode' but *no* triggers are preserved in this mode. Thee doesn't seem to be a solution that bypasses the clipboard.
Curiously, if I trigger QAP hotstrings in VS Code, I sometimes get the current contents of the clipboard, rather than the hot string text.
If I set a hotstring to "macro mode" and trigger it in VS Code, I always get some partial substitution like this: 'zzirInternal Revenue Servic' -
RE: space triggers are discarded
Jean Lalonde > 2020-12-08 16:36
Hi Scott,
> Update: Apparently, this has to do with how MS Word pastes strings from the clipboard. It trims spaces, I guess.
Same results and conclusion on my side. If used in Notepad, the ending character is preserved. This is a MS Word issue.
> I tried switching the hot string to 'macro mode' but *no* triggers are preserved in this mode. Thee doesn't seem to be a solution that bypasses the clipboard.
The end character option is supported only in Text mode at this time. I'll investigate to see if keeping the end char in Macro mode can be an option to bypass the Clipboard issue.
> If I set a hotstring to "macro mode" and trigger it in VS Code, I always get some partial substitution like this: 'zzirInternal Revenue Servic'
I could not test it in VS Code. Unfortunately, there must be some particular functionalities/automation of this editor interfering with the hotstring replacement.
> Curiously, if I trigger QAP hotstrings in VS Code, I sometimes get the current contents of the clipboard, rather than the hot string text.
This was reported once but was intermittent. I added a configurable delay in the Hostrings options (Various Advanced Options). Try increasing the 4th delay to give more time before the original Clipboard is restored.
-
RE: space triggers are discarded
Jean Lalonde > 2020-12-08 16:43
>> I tried switching the hot string to 'macro mode' but *no* triggers are preserved in this mode. Thee doesn't seem to be a solution that bypasses the clipboard.
>
> The end character option is supported only in Text mode at this time. I'll investigate to see if keeping the end char in Macro mode can be an option to bypass the Clipboard issue.
Results of first test in Macro mode is positive. This should be available in the next release. -
RE: space triggers are discarded
Isaias Baez > 2020-12-15 08:16
(2020-12-07 15:45)scottkillen Wrote: Curiously, if I trigger QAP hotstrings in VS Code, I sometimes get the current contents of the clipboard, rather than the hot string text.
I have also had many issues with VSCode and hotstrings, I think some VSCode options are to blame: for example automatic indenting might cause hotstring tabs to be doubled, parenthesis, brackets and anything that gets auto-closed might get you funny results too. -
RE: space triggers are discarded
Jean Lalonde > 2021-02-02 09:51
This has been solved in v11.2. -
RE: space triggers are discarded
scottkillen > 2021-02-02 14:49
Thanks!