DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: bug? if $$1 contains \t then it is expanded to TAB (please disable this)  (Read 4,346 times)

wjamoe

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 99
    • Participated in NANY Challenge Once
    • Plugin Coding Medal
I think I finally found the cause
why some aliases containing '$$1' to the left or the right of the '|'  in the results window
not always work as expected.

Apparently \t and similar characters combinations like \n are expanded to tab and newline respectively.

However these character combinations can be part of a path like c:\tiddlywiki\newversion\last

test case using the paste command (inserts text in last active window) this is the only command that shows the strange effect all other commands do not give any output.

Create an alias with the following result

demo  | paste "$$1"

and the regular expression

^==(.+)

Save the alias.

Now open a new notepad (needed for the paste command to work)

THEN reopen(!) FARR and type

==c:\tiddlywiki\newversion\last

Which matches the regular expression ^==(.+)

Go to the demo alias in the results window using your mouse or cursorkeys.
In the information bar it shows

paste "c:\tiddlywiki\newversion\last"

expected result in Notepad window

"c:\tiddlywiki\newversion\last"

However result in Notepad looks like

"c: iddlywiki
ewversion\last"


Feature request: Can you please disable expansion of the character combinations when they are part of $$1, $$c .
#filecontents has the same problem, I assume this uses the same programcode.

BTW $$u# work as expected, so no change there ;-)

Original address: https://www.donationcoder.com/forum/index.php?topic=43513.0