INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4]   Go Down

Author Topic: ZELDA v1.0 released (Expression Language editor)  (Read 21922 times)

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #150 on: March 25, 2023, 02:45:15 pm »

it returns the content of the playlist
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #151 on: March 25, 2023, 02:46:35 pm »

I edited my reply, sorry. Can you please check the logfile to see if there's an Exception logged?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #152 on: March 25, 2023, 02:50:19 pm »

UI proof...  ;D
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #153 on: March 25, 2023, 02:56:04 pm »

No errors in the log

21.53.02.333  Detected MC install folder: D:\audio\MC30\
21.53.25.024  Connecting to JRiver
21.53.25.025  Checking connection
21.53.25.025  Connect: getting existing MediaCenter instance
21.53.25.027  Checking connection
21.53.25.029  MediaCenter version 30.0.87, APILevel=2
21.53.25.029  MediaCenter library is 'Main Library', path=C:\Users\xxxxxxx\AppData\Roaming\J River\Media Center 30\Library\
21.53.25.030  getFields: loading 707 fields
21.53.25.705  getPlaylists: loading 260 playlists
21.53.25.832  getPlaylists: finished
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #154 on: March 25, 2023, 03:00:45 pm »

Do you have something in Settings -> Preferences -> Playlist Filter ?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #155 on: March 25, 2023, 03:06:42 pm »

attached
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #156 on: March 25, 2023, 03:11:52 pm »

I'm going to walk the dog now, see if I can think of something...
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #157 on: March 25, 2023, 03:54:36 pm »

No worries. I can use automation object just fine. Just thought I report my finding
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #158 on: March 25, 2023, 04:18:45 pm »

Version 1.5.2 is now published with a fix. Thanks Lepa for testing it!
The issue was caused by negative playlists IDs, which I forgot existed.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #159 on: March 26, 2023, 08:12:41 am »

there seems to be some refresh issues though. If I remove/add some items to my test playlist it confuses Zelda and reloading doesn't solve the issue
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #160 on: March 26, 2023, 10:26:08 am »

Can't reproduce that. It works for me both with Automation and MCWS - I added files to a playlist, hit reload, and the files showed up on the list.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 695
  • Hi
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #161 on: May 10, 2023, 10:02:16 am »

I really love Zelda, it's made my life so much easier when creating complex expressions.

That said, there is one feature I would like.  I would love to be able to copy and paste from the wiki preview.  I am not sure if it's possible, but it would be a huge QOL improvement for me as I've lost count the number of times that I've tried to do it  ;D

Thanks
Logged

markf2748

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 628
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #162 on: July 08, 2023, 08:40:22 am »

I really love Zelda, it's made my life so much easier when creating complex expressions.

That said, there is one feature I would like...
Agreed nice to have, but even more important for me is to add copy/paste from the right hand output window.
Use case:  Documentation, especially for posting MC error reports to the Interact forum.  Currently I have to hand copy the error output, which can be painful and error prone itself.

Update:  I just discovered Copy/Paste is in fact available from the Text output window.  It is only not available in the Rendered Output window, even though Zelda highlights mouse selections there, as if for copy.  So a little misleading.

Another documentation-related, ease-of-use issue:  closed parenthesis within a comment line cause Zelda to omit the word from its right-side output window.
Example:
!* broken swap() *!  ==> !* broken *!

As always, thanks for a really great utility.

Win 11 64-bit  MC 31.0.32  Zelda v1.5.2
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #163 on: August 04, 2023, 07:45:23 am »

Sadly I can't try Zelda because it only runs on Windows.  I have no Windows machines in my inventory at home or at work.

That said, this is an exciting project.  Years ago I talked about the idea of developing a "toolbox" of expressions.  Things you would use for various purposes inside of MC and be able to share with others.

Does Zelda allow you to save your expressions locally?  Is there a concept of developing libraries of MC expressions, or at least "modules" which you could share with others?

MC's saved views has some of what I'm discussing, but the mechanics of saving and sharing views are very difficult for those that are not deeply familiar with MC.  I'm hoping that Zelda might fill some of the functionality of collaborating and sharing MC expressions.

There's a tiny possibility that I might get an x86 emulator working on one of my Macs just to try this.  Maybe....

Really neat project Zybex.  :)
Brian.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #164 on: November 04, 2023, 11:38:16 am »

Agreed nice to have, but even more important for me is to add copy/paste from the right hand output window.
(...) It is only not available in the Rendered Output window, even though Zelda highlights mouse selections there, as if for copy.  So a little misleading.

I'll enable copy/paste in the documentation and rendered output panels.

Quote
Another documentation-related, ease-of-use issue:  closed parenthesis within a comment line cause Zelda to omit the word from its right-side output window.
Example:
!* broken swap() *!  ==> !* broken *!

AFAIK, MC does not have a way to comment out an expression line. Where is this !* escaping from?
What's happening there is that the swap() is a valid function, so it gets executed and replaced with its blank output (so swap() is removed from the output). This is done by MC, not Zelda.

I could add these type of comment lines in MC, but they would need to be stripped before using in MC. There's actually a silly workaround to add comments to MC that is recognized by Zelda:
I forgot I had added a way to comment lines in Zelda - just start a line with ##. Commented lines are ignored, not shown on the output.
## this is a comment, and is highlighted by Zelda

Quote
As always, thanks for a really great utility.
You're welcome.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #165 on: November 04, 2023, 11:49:46 am »

Sadly I can't try Zelda because it only runs on Windows.  I have no Windows machines in my inventory at home or at work.

Have you tried running it with Mono under KDE or Gnome?
I'll look into porting it to .Net7 + MAUI which should run on Linux, but that may be too much work.

Quote
That said, this is an exciting project.  Years ago I talked about the idea of developing a "toolbox" of expressions.  Things you would use for various purposes inside of MC and be able to share with others.

Does Zelda allow you to save your expressions locally?  Is there a concept of developing libraries of MC expressions, or at least "modules" which you could share with others?

I proposed this Modules feature to MC team, but there's no traction:
https://yabb.jriver.com/interact/index.php/topic,124543.msg877195.html#msg877195

Update: That was an old proposal, I've since updated it with a simpler solution (Beta members only):
https://yabb.jriver.com/interact/index.php/topic,135200.0.html

Zelda saves the expressions locally only. I've thought several times of using some MC forum thread to collect snippets and functions, but what would really work was that solution I highlighted on that thread.

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #166 on: November 04, 2023, 03:55:42 pm »

Published Zelda v1.5.5 (04.11.2023):
- Allow CTRL+C and ContextMenu in Wiki and Rendered output panels
- Detect and highlight saved variable names
- Tweak color scheme
- minor bug fixes

https://github.com/zybexXL/Zelda/releases/tag/v1.5.5

Reminder: Zelda has an auto-upgrade feature, just click the red "new version" notification on the lower-left corner.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #167 on: February 11, 2024, 01:42:24 pm »

Hi zybex,
If could suggest couple keyboard shortcuts:
- ctrl-w to close tab
 - perhaps also some shortcut to create new tab

- ctrl-shift-z to undo in addition to ctrl-y
  - background for this that I sometimes mess up my undo history when going for ctrl-shift-z which many programs support
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #168 on: February 11, 2024, 04:07:51 pm »

Sure. Ctrl+W to close, CTRL+N to open.

Ctrl+Z iand Ctrl+Y are already there - do you want Ctrl+Shift+Z to do the same as Ctrl+Z ?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #169 on: February 11, 2024, 04:39:25 pm »

do you want Ctrl+Shift+Z to do the same as Ctrl+Z ?
Ctrl+Shift+Z is redo like ctrl-y in many apps so i have it on my muscle memory.

so ctrl-z undo and ctrl-shift-z/ctrl-y redo

E: made it bit more clear  ;D
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #170 on: February 11, 2024, 05:41:19 pm »

Published Zelda v1.6.0:
- Fix: Shift+Click on the wiki browser opens a link on the default browser
- Added FileExtension function
- Added several keyboard shortcuts:
  - Ctrl+N to open new tab, Ctrl+W to close tab
  - Ctrl+B/I/U to insert bold/italic/underline tag
  - Ctrl+Shift+Z for Redo (same as Ctrl+Y)
  - F1 for Help/About
  - F2 to rename a tab
  - F3/F4 to open the Insert Field/Function dialogs
  - F5 to pause/resume automatic execution
  - F9 to open settings
  - F11 to toggle Maximized window

https://github.com/zybexXL/Zelda/releases/tag/v1.6.0
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #171 on: February 12, 2024, 08:40:48 am »

My muscles thank you  :)
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #172 on: February 15, 2024, 04:34:41 pm »

Published Zelda v1.7.0:
- New: Linked Fields - load/save directly to MC calculated field 8)
- New: Highlight all instances of selected word (double-click)
- New: Drag expression tabs to reorder them

- New: keyboard shortcuts for linked tabs (CTRL+L/S/R)
- New: keyboard shortcuts to change current file (ALT+Left/Right)
- New: Colorize tab headers to indicate status
- Change: Enlarge toolbar buttons, use new icons
- Change: Tweak highlight colors
- Fix: Apply current Wrap/EOL setting to new tabs
- Fix: prevent scroll position jumps when word-wrap enabled

https://github.com/zybexXL/Zelda/releases/tag/v1.7.0


Finally linked Zelda directly to MC Fields :)
This works only with MC 32.0.18 and above, and it must be connected with MCWS, not Automation mode (change in Settings). You must provide a valid user/password to be able to save the field back to MC.



Logged

mvandyke

  • World Citizen
  • ***
  • Posts: 153
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #173 on: February 15, 2024, 04:53:22 pm »

Thanks for all of your hard work on this project.  It really does help out a lot !

Will install over the weekend and look forward to using it.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #174 on: February 16, 2024, 02:56:54 am »

Very nice update, thanks zybex
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #175 on: February 16, 2024, 04:02:34 pm »

Thanks guys, enjoy.
Minor cosmetic update:

Published Zelda v1.7.2:
- Fix cropped toolbar icons with some DPI settings
- Sharper icons, no resizing
- Add CTRL+1 to 9 shortcuts to change tabs
- Don't open same field multiple times (unless CTRL pressed)
- Workaround for text-wrap bugs causing occasional full color lines
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #176 on: February 21, 2024, 12:24:05 pm »

If it is possible could you try to update align zelda's vertical spacing rendering with MC32?
https://yabb.jriver.com/interact/index.php/topic,135179.msg958746.html#msg958746

Thanks for consideration
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #177 on: February 21, 2024, 01:08:39 pm »

Hi Lepa,
I was following that discussion and thinking about it. The problem so far is that there's no clear ruleset of how valign is applied, it depends on context. What rules should it follow then? Zelda basically converts the code into standard HTML tags. It was difficult to get it (sort of) right the first time, because MC does NOT follow standard HTML/CSS rules.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #178 on: February 21, 2024, 01:33:02 pm »

Yeah understood, no worries. It is still close enough
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #179 on: February 21, 2024, 01:47:32 pm »

Send me the code you used here and I'll try to reproduce it in Zelda. Or even a simpler example.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #180 on: February 21, 2024, 02:01:10 pm »

Images are actually quite fine. only scaling sometimes reveals tears. it is the font thingy MC 31 (upper image) vs MC32 (below image) here https://yabb.jriver.com/interact/index.php/topic,135179.msg958488.html#msg958488
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #181 on: February 21, 2024, 02:04:59 pm »

hmm.. i can't reproduce it anymore even with text...
<font bgcolor="DD00DD">test<//font>
<font bgcolor="DDDDDD">test<//font>

looks like MC32 to me
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1947
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #182 on: February 22, 2024, 03:05:48 pm »

altgr+8, altgr+9 has started to do some strange things for me. Zelda will insert [ or ] but also jumps to different tab.... :o
E: It stopped doing that when I closed some tabs
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #183 on: February 22, 2024, 03:31:38 pm »

That's due to the new Ctrl+Number shortcuts that switch directly to a given tab number. Because AltGr = CTRL+ALT, it's being wrongly captured. If you have less than 8 tabs then AltGr+8 works fine :)

Fixed here, will publish in the weekend. Thanks for the report.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #184 on: February 23, 2024, 03:00:50 am »

Published v1.7.4 with the fix for AltGr+Digit triggering the tab switch:
https://github.com/zybexXL/Zelda/releases/tag/v1.7.4
Logged

comox

  • Galactic Citizen
  • ****
  • Posts: 379
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #185 on: February 23, 2024, 12:42:42 pm »

Windows 11 reports serious security threat in 1.7.4.  Warning is strong enough that I would not override. Prior Zelda versions were ok.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #186 on: February 23, 2024, 01:24:54 pm »

Hi comox,
I don't really care anymore. Even MC is having trouble lately:
https://yabb.jriver.com/interact/index.php/topic,138245.msg958966.html#msg958966

It's an industry wide problem at this point, and there are no good solutions. I can't force you to trust me. You can always pull the code from Github and compile yourself, that's what open source is for.

For what it's worth, here's the online scan for v1.7.4 - it's [still] relatively clean:
https://www.virustotal.com/gui/file/c7c68073ac181f8cdf015e21580e4c35e76b8ca188b95ee4a866c15b283cd2ba

Here's ZRatings - I got Microsoft to declare it clean, but I'm not about to contact all other 46 vendors...
https://www.virustotal.com/gui/file/645227677ef4a20c16071f94ee1145a9909c79f1585a2018679977d7121c5ddb
Logged

comox

  • Galactic Citizen
  • ****
  • Posts: 379
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #187 on: February 23, 2024, 01:36:21 pm »

Sorry, I did not mean to imply I did not trust you.
I see a lot of these warnings and usually override them.
Just wanted to let you know this one was a little unusual.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #188 on: February 23, 2024, 01:37:31 pm »

My answer came off a bit strong, please don't take it personally. It's just that there's not much we can do anymore :-/
PS: and in my opinion, you should be wary of trusting strangers on the internet. Better safe than sorry. There's a whole reputation problem that no one has figured out yet how to solve.
Logged

comox

  • Galactic Citizen
  • ****
  • Posts: 379
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #189 on: February 23, 2024, 01:42:06 pm »

Yes, and I suppose it's possible but not likely that you were deceived by an unsafe library you are using.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2231
Re: ZELDA v1.0 released (Expression Language editor)
« Reply #190 on: February 23, 2024, 01:42:35 pm »

Yes, that can happen. Though it's rare, as most libs come from nuget (microsoft hosted) or compiled from source (peer reviewed). Still happens occasionally, more in the Linux world.
Logged
Pages: 1 2 3 [4]   Go Up