Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Where do you compose your advanced Title Formatting? (Read 1107 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Where do you compose your advanced Title Formatting?

The Title Formatting Sandbox component is invaluable for composing complex Title Formatting, however it hasn't been updated in years and is not compatible with 64-bit setups.

As an alternative, I've been composing in Visual Studio Code because it has rudimentary syntax highlighting that makes it a bit easier to follow complex Title Formatting. Tagger Syntax Script VSC extension for MusicBrainz Picard Tagger Script is somewhat compatible with foobar2000 Title Formatting.

It's a pita when you revisit an old long single-line Title Format snippet and need to manually explode the script into a multiline formatted script to make sense of it. It would be nice if there was at least a VSC extension that could do this automatically. For this reason I miss a subtle feature of foo_simplaylist where you could paste multiline Title Formatting into the component text input fields and it would remain valid, and also allow you to copy the Title Formatting in the same format that you pasted it. Very useful if you write your Title Formatting using syntax formatting (line breaks, tab spacing, commenting).

Where do you compose your complex Title Formatting? How do you easily edit long single line scripts?

Re: Where do you compose your advanced Title Formatting?

Reply #1
I keep my multilined sources in txt files which I edit with notepad++. If the code is ready to be singlelined I copy the whole multilined source in the url part of a browser which effectively makes it single lined. Copy that and paste it where foobar expects a single line.

Bit hard and cumbersome to debug and you cannot use normal comments in your source. All comments need to be in a form like $puts(cmt, BLA BLA BLA).

Re: Where do you compose your advanced Title Formatting?

Reply #2
I just realized that it appears the Title Formatting Sandbox component is open source? --> https://github.com/stengerh/foo_tfsandbox

Would be amazing if someone with the skills could:
  • Update the component making it compatible with foobar2000 v2 (dark mode, x64)
  • Add the ability/option to explode and compact title formatting, where explode automatically adds line breaks and tab spacing, and compact automatically strips line breaks, tab spacing, and commenting. 

Re: Where do you compose your advanced Title Formatting?

Reply #3
I just use Notepad++ and paste it into a Columns UI column to check my work. It's a bit cumbersome, but it gets the job done.
Think millionaire, but with cannons.

Re: Where do you compose your advanced Title Formatting?

Reply #4
I just realized that it appears the Title Formatting Sandbox component is open source? --> https://github.com/stengerh/foo_tfsandbox

I managed to compile it with a minimum amount of fuss which I thought was cool. But it didn't run. I could start fb2k OK but the window wouldn't open.  ;D

I expect someone else who isn't an incompetent buffoon like me will get it working.

Re: Where do you compose your advanced Title Formatting?

Reply #5
I don't claim to be any more competent than marc2k3 but here's an experimental compile with 32/64-bit support.
No dark mode at least yet, just using the built-in hook to set dark mode resulted in the texts being mostly invisible.

I don't know how well this thing works, I had to fix some bad bugs like returning 32-bit int when a 64-bit pointer was needed for a function. There could be more such issues. I think marc2k3's bug was caused by the component failing to load support dlls. There doesn't seem to be any error checks in this thing.

Anyway, here's the build.

Re: Where do you compose your advanced Title Formatting?

Reply #6
No dark mode at least yet, just using the built-in hook to set dark mode resulted in the texts being mostly invisible.

Yeah, the Scintilla styles will need updating by hand. Luckily I inherited a presets system from WSH panel mod so applying dark/light on toggle is super easy....