Skip to main content
Topic: New component: Text Tools (Read 46550 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

New component: Text Tools

Download: http://foobar2000.org/components
Recommended for people who use the "copy names" command a lot. The Text Tools component lets you create multiple context menu commands copying information about the selected tracks using different title-formatting patterns. Additionally, the "advanced" dialog lets you produce a report with grouping and group headers/footers, for eg. exporting a list of your albums with full track lists.

New component: Text Tools

Reply #1
Excellent! Just what I've been hoping for! I love this component.

New component: Text Tools

Reply #2
Awesome! Thanks

Question: Is it possible to use this to get the total time of the selected tracks? Can't find a titleformatting function to do this.

New component: Text Tools

Reply #3
I follow that....
but why twice the same one text Tools is already available?
and why never for exactly this function was created the  t %Total_length%

in the basis I do not understand it there it through to select in the status bar is already available

vllcht it can still be facilitated that my greatest wish would be
see text tools pic

sorry for my bad englisch


New component: Text Tools

Reply #4
foo_utils already provides a good Text tools Copy names functionality.

Quote
Provides various general purpose commands:
- Edit inactive playlists
- Sort by multiple fields
- Protect playlists against editing
- Cycle through playback orders
- Format text from track information and copy to clipboard or save to file
- Open foobar2000 profile and component directories in Explorer


Some of these features don't work anymore, so I guess that's why we now get a new text tools component.

Group header/footer item explanation
Group footer pattern is not the same as foo_utils's footer text, so a %total_length% title formatting item would be pointless here. Instead think of it as a footer to a block of text for each item.

Take this example where the field of the Text Tools Advanced dialog is filled in like this:

Track pattern: [%tracknumber%. ][%artist% - ]%title%
Group header pattern (checked): %list_index%: %path%
Group footer pattern (checked): Length: %length%$crlf()

This will yield the following result:
Quote
01: E:\music\diverse\video game music\chrono_cross.rar|Chrono Cross 115 Viper Manor.psf
Yasunori Mitsuda - 115 Viper Manor
Length: 3:04

02: E:\music\diverse\video game music\chrono_cross.rar|Chrono Cross 116 Victory - Spring's Gift.psf
Yasunori Mitsuda - 116 Victory - Spring's Gift
Length: 1:05

03: E:\music\diverse\video game music\chrono_cross.rar|Chrono Cross 117 Lost Child of Time.psf
Yasunori Mitsuda - 117 Lost Child of Time
Length: 3:33

New component: Text Tools

Reply #5
The name and functionality clash with the text tools function from foo_utils is unfortunate and probably confusing; I have talked about this with Peter before he released foo_texttools. Since foo_texttools has support for presets and grouping, which foo_utils does not have, I am going to remove my text tools implementation from foo_utils in a future version. As far as I know, the remaining functionality that is only present in foo_utils - saving the formatted text directly using a menu command, larger scripts (or at least larger edit boxes) - is usually used to generate entire (HTML) documents. I plan to support that use case with a new component.

New component: Text Tools

Reply #6
Hello foosion
Thanks for these words that lets me hope for years
and something would be advantage especially of several layouts
to manage

For that I make a request<A[request|application]> in the hope loves push



Thanks for all the effort<A[effort|trouble]> up to now and weiterso

sorry for my bad englisch

New component: Text Tools

Reply #7
This is awesome. Thank you Peter

New component: Text Tools

Reply #8
Thank you!

New component: Text Tools

Reply #9
thanks

New component: Text Tools

Reply #10
Cool!

Thanks Peter!

New component: Text Tools

Reply #11
I think I found a bug : if you assign a keyboard shortcut to a copy command, and then change the pattern of this command, the keyboard shortcut is broken (it says "Action Not Found (*lots of number and letters*)").

I have also a request : is it possible to have a multi-line editing field for the patterns ? I have some -very- long copy commands and it's not easy to modify them with one single line.

Anyway, thanks for this great component.

New component: Text Tools

Reply #12
It would be great if it was able to save the results directly as a textfile just like foo_utils
Can't wait for a HD-AAC encoder :P

New component: Text Tools

Reply #13
Using previous version foo_utils with Copy Name function, I can do it by two steps only: Utils -> Copy Name.
Now using the new Text Tools component, I have to do it by three steps: Utils -> Text Tools -> Copy.
Is it possible to make it more simple? Thanks.

New component: Text Tools

Reply #14
You can edit the context menu so that Text Tools is available from the root, in Preferences.


New component: Text Tools

Reply #16
Thanks for this useful plugin!
Small request: in the advanced window, would it be possible to remember the state of the Skip duplicate/repeating lines checkbox?

New component: Text Tools

Reply #17
I think I found a bug : if you assign a keyboard shortcut to a copy command, and then change the pattern of this command, the keyboard shortcut is broken (it says "Action Not Found (*lots of number and letters*)").
A new version is up, with a fix for this misbehaviour.
Full-quoting makes you scroll past the same junk over and over.

New component: Text Tools

Reply #18
Thanks! I was looking for something like this.

New component: Text Tools

Reply #19
Thanks for the fix.

 

New component: Text Tools

Reply #20
Thanks for much useful plugin.

However, i have this annoying trouble: in Advanced window, the footer code don't save if i close foobar.
I have to store footer code in header area, which somewhat limiting my options...

also, it is posible to make template with all 3 fileds, so we don't have to go to advanced window all the time and copy by simply clicking menu option?

New component: Text Tools

Reply #21
Is it possible to be able to add brackets to my outputs? having no such luck unfortunately


New component: Text Tools

Reply #23
Ohh nice tyvm

Moderation: Removed unnecessary full quote of the preceding post.

New component: Text Tools

Reply #24
wow, very useful!

i too would like to see the ability to save advanced queries.

here is a code to output simple album listings. it's amazingly fast, even when processing 1000+ albums

Code: [Select]
Track Pattern:
%track% %title% ['['%track artist%']']

Group header pattern:
Artist: $if2(%album artist%,%artist%)$crlf()Album: %album%$crlf()Year: %date%$crlf()Quality: $ifequal($strcmp(%codec_profile%,CBR),1,%bitrate% ,)%codec_profile%$crlf()

Group footer pattern:
$crlf()


Result:

Artist: Blue Foundation
Album: Blue Foundation
Year: 2001
Quality: VBR V0

01 Wiseguy
02 Grand
03 Witch of Trouble
04 Crushed
05 Jabber
06 Hollywood
07 Burgeon
08 Black S
09 Mazda
10 Hide
11 Cutting Me Up
12 J.Hurt
13 Evo


Artist: Blue Foundation
Album: Sweep Of Days
Year: 2004
Quality: 320 CBR

01 History
02 As I Moved On
03 End Of The Day (Silence)
04 Ricochet
05 02.17 Am
06 Embers
07 Bonfires
08 The Yellow Man
09 Shine
10 Save This Town
11 Sweep
12 My Day

 
SimplePortal 1.0.0 RC1 © 2008-2019