-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fulltext tag values #37
Comments
This is something I have considered. Indeed it's on the TODO list list (under 'low'). It would certainly be possible to do, for values at least. I don't think it would require any special option: the quotes alone should make the intent clear. I'll see if I can squeeze it into the next release. For now you can use '-' or '_' to separate words, as a workaround:
|
Oh, cool! Not sure the quotes will be enough, though. I just tried argv in Python and C (don't have Go installed now but I imagine it'll work the same). Passing I may send you a pull request at some point if you're open to it. In case you are, do you want to just extend values to accept whitespace and punctuation or have the fulltext ones treated separately? |
Yeah, it'll take some care but it should be fairly straightforward. I'm happy for pull requests but please don't be offended if I don't apply them verbatim. I see this as simply handling whitespace rather than new 'fulltext' funcitonality so I wouldn't expect there to be any new option: simply that the following will then be possible:
When I've thought about this in the past it seemed relatively straightforward as the shell should do the parsing for you and put the whole string, spaces and all, into a single ARGV array element. I.e. 'tmsu tag somefile tag=value with spaces' should result in ['tag=', 'value', 'with', 'spaces'] whereas 'tmsu tag somefile tag='value with spaces' should be received as ['tag=value with spaces']. The complications come from other aspects:
|
It would also have to support spaces in the --tags option:
|
There is a tokenizer in tmsu/common/text for tokenising a string into fields with consideration for quotes. |
This is being implemented as part of issue #45. |
Would it be possible to add full text tags? For things like summary of a TV episode, song's lyrics, etc.
The full text values would be different from the existing values in that they're arbitrary long, without character restrictions and usually unique for each file & tag.
It would probably require a new command line option:
which would save the value
Best. Song. Ever.
for filesummer.mp3
and tagcomments
.The text was updated successfully, but these errors were encountered: