Conversation
|
hi @TimoSavi . After many years, I'm still a loyal user of your tool. I'm unsure whether this will break backwards compatibility, but I'm keen to hear your thoughts. Even if you don't like the syntactic sugar change, I'd love to update the documentation with better examples, which would assist an MCP like Context7 more. |
|
hi @igitur , I sorry for later answer and thanks for your contribution (very rare these days for ffe). About filter: It could be done but I am little bit confused about the this change because It breaks the overall notation and is only for one config item. Making documentation better is always welcomed. |
|
Hi, sorry, I was away on holiday myself. Yes, I realised the same thing shortly after submitting this. I think my issue is that the repeated asterisks for some field definitions feels a bit clumsy and verbose. Currently, to implement a filter (in my use case), I have to define it, e.g.: I'm using variable length fields, hence the first asterisk. I'll postulate that most character delimited files these days have fields with variable length (fixed width fields are increasingly rare, but of course do exist). And I think it's rare that ffe users would want to use more than one of the lookup/output/filter features simultaneously for a single field. Therefore I propose the new alternative syntax (original syntax would still be supported), where fields can be defined as:
So examples: Currently the 3rd parameter ( I don't feel too strongly about this change, so if you're uncomfortable with it, it's OK. It's more for ease of use, because I'm still a heavy ffe user. If this proposal is accepted, I also want to propose support for inline definitions for output and filter, e.g.
So I hope that clarifies the context in which this syntax change is proposed. |
|
Hi,
Like if we have: this could be done alternatively (name is optional too): and for other keywords too. This should be done in parse_option() so that you have list of allowed option names,, their positions and option max count for each keyword in current notation. Options and their count would be returned to caller as they would have been given traditional way. So the rest of the code would be intact. Or something similar. Some logic should be created for identify the notation used (e.g. every given option has "=>", in some cases someone could use current notation with "=>" in actual data for each option, but that is probably rare) |
Simpler Filter Syntax and Documentation Updates
Summary
field name filter filternameinstead offield name * * * filternameChanges
1. Simpler Filter Syntax (e50643c)
src/parserc.cto supportfield name filter filternamesyntaxfield name * * * filternamesyntax2. Documentation Updates (a14bce7, 7b2c2f2)
Benefits