-
1. Re: Sublime syntax file for Tableau Calculations
Patrick A Van Der HydeFeb 1, 2017 3:47 PM (in response to chia-hua.yu)
whoo hoo. Thanks Chia-Hua.
-
2. Re: Sublime syntax file for Tableau Calculations
Shawn Wallwork Feb 1, 2017 3:59 PM (in response to chia-hua.yu)Thanks Chia-hua.yu. I'll take a look and let you know what I think.
Cheers,
--Shawn
-
3. Re: Sublime syntax file for Tableau Calculations
Mikhail Kachala Mar 8, 2017 4:40 AM (in response to chia-hua.yu)Thanks a lot, Chia-hua.yu!
-
4. Re: Sublime syntax file for Tableau Calculations
Ian Weinstock Jun 29, 2017 12:32 PM (in response to chia-hua.yu)This is awesome, thank you!
-
5. Re: Sublime syntax file for Tableau Calculations
Michael Kim Jul 19, 2017 11:42 AM (in response to chia-hua.yu)As someone who uses Tableau and Sublime Text everyday, thank you very much for creating this package. I did notice one minor bug, though.
Numbers with more than one decimal place where the first decimal place is zero (e.g. 0.05 and 2.07) are not highlighted properly. As far as I can tell, this only happens when the digit in the first decimal place is zero. it doesn't happen when the first decimal place is some other digit. The highlighting error starts from the second decimal.
-
6. Re: Sublime syntax file for Tableau Calculations
chia-hua.yu Jul 19, 2017 2:17 PM (in response to Michael Kim)Hi Michael Kim . Thanks for catching that bug! I tried fixing it, and I put in a new regex snippet to better capture floating point numbers.
However, it's not perfect. If you have a decimal and there's no leading zero, it doesn't highlight the period. Stuff like that. If I find a better regular expression snippet, I'll update again.
-
tableau.sublime-syntax.zip 1.2 KB
-
-
7. Re: Sublime syntax file for Tableau Calculations
Michael Kim Jul 20, 2017 4:17 PM (in response to chia-hua.yu)chia-hua.yu, you're awesome and this is a great tool. I'll keep using it and report back if I find something else.
-
8. Re: Sublime syntax file for Tableau Calculations
Kiran Srinivasan Oct 8, 2017 5:51 PM (in response to chia-hua.yu)Hi Chai-hua,
Thanks for that, this is super helpful! However, I'm having trouble getting this to work. I've placed the file in packages but nothing comes up when I search through ctrl-shift-p. Any ideas why?
-
9. Re: Sublime syntax file for Tableau Calculations
chia-hua.yu Oct 16, 2017 4:45 PM (in response to Kiran Srinivasan)Sorry, I was off at Tableau conference last week. I assume you've tried quitting Sublime and restarting it?
Whenever I install packages, I have it in the "User" package directory.
-
10. Re: Sublime syntax file for Tableau Calculations
Kiran Srinivasan Oct 16, 2017 5:15 PM (in response to chia-hua.yu)No worries. I couldn't get it to work in Sublime 2 for some reason, but had no issues once I upgraded to Sublime 3. Very odd...
-
11. Re: Sublime syntax file for Tableau Calculations
Darren Lewis Feb 12, 2018 3:49 PM (in response to chia-hua.yu)Thank you for creating this! Really helpful.
-
12. Re: Sublime syntax file for Tableau Calculations
chia-hua.yu Jul 23, 2018 3:44 PM (in response to chia-hua.yu)Hey Tableau-sters I was editing some lengthy calc comments in Sublime text. I had auto-wrap turnt on (it automatically creates a hard line break at a width you specify which is handy for lengthy calc comments), and I was getting super annoyed that when the line wrapped, the double slash wouldn't be inserted. Also, for some reason I couldn't press CTRL-/ to comment a bunch of lines like you can in other packages (compare that to say, the python package). Well I downloaded the Package Creator package for Sublime and tweaked the Tableau syntax file. ALSO I created a tmPreferences file to go with the syntax file. Upshot is now if you have auto-wrap on, it will automatically insert the comment characters at the beginning of each line. At least it should, I haven't exhaustively tested this. I plopped both files in my Packages/User directory and it worked for a few of the tests I ran.
If you run into any issues lemme know.
Happy Tableau-ing,
C
-
Comments (tableau).tmPreferences.zip 464 bytes
-
tableau.sublime-syntax.zip 1.6 KB
-