TabularEditor3 icon indicating copy to clipboard operation
TabularEditor3 copied to clipboard

Replace on selection not working on DAX scripts?

Open bernatagulloesbrina opened this issue 4 years ago • 7 comments

I was trying to make a replacement on selected text, but apparently it takes the whole script if you say select all. Am I the only one?

bernatagulloesbrina avatar Nov 10 '21 17:11 bernatagulloesbrina

Could you elaborate or perhaps share a screenshot or a short video to demonstrate this issue?

otykier avatar Nov 17 '21 08:11 otykier

Hi @otykier, here's a short video to reproduce this issue (TE3 v3.6.1). It seems that the text replacement is applied to the whole document instead of the selected text. This behavior applies to all editors, DAXQuery, DAXScript and C#Script.

te3-issue293

albertospelta avatar Nov 25 '21 18:11 albertospelta

Thank you Alberto! I had this in my to do list forever, but not getting to do it. hopefully it will get fixed

El jue, 25 nov 2021 19:31, Alberto Spelta @.***> escribió:

Hi @otykier https://github.com/otykier, here's a short video to reproduce this issue (TE3 v3.6.1). It seems that the text replacement is applied to the whole document instead of the selected text. This behavior applies to all editors, DAXQuery, DAXScript and C#Script.

[image: te3-issue293] https://user-images.githubusercontent.com/1957788/143487442-2b327143-decd-45de-9185-50ea7e37c619.gif

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TabularEditor/TabularEditor3/issues/293#issuecomment-979415714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUUXHPXLHKLZIXL2R7XI3TUNZ6IFANCNFSM5HYOH7FA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bernatagulloesbrina avatar Dec 01 '21 22:12 bernatagulloesbrina

Fixed in 3.4.2. Thanks for reporting, and apologies for the long turnaround.

otykier avatar Feb 09 '23 14:02 otykier

Hello, this seems to not be working yet

https://user-images.githubusercontent.com/40455069/218253467-24197f7f-afa9-4de5-b790-41fa81bd4764.mp4

bernatagulloesbrina avatar Feb 11 '23 10:02 bernatagulloesbrina

Thanks for letting us know. We’ll look into it. As a workaround, try to enable Regular Expressions.

otykier avatar Feb 11 '23 14:02 otykier

hey this is weird, checking "Allow regular Expressions" indeed did the trick, but now it works even if the option is unchecked

bernatagulloesbrina avatar Feb 11 '23 16:02 bernatagulloesbrina