On 18 Apr 2008, at 14:52, Hans-Joerg Bibiko wrote:
On 18 Apr 2008, at 14:27, Hans-Joerg Bibiko wrote:
But by doing this I have some limitations:
- The size of my suggestions:
Up to now I have to pipe it to DIALOG2 but this size is limited. Maybe it is worth to think about a mechanism to load a file containing the suggestions.
This is wrong. Of course, I can use cat instead of echo. I've just tried out to pipe a 1Mb file with 16500 suggestion to popup in lookup mode, and it works ;)
Yeah, there is an ARG_MAX define which tells the maximum size of environment variables and command arguments. I think it is around 64 KB.
Pipes of course are without such limits. This is also why it is generally preferred to take selection (for TM commands) as input rather than use TM_SELECTED_TEXT, at least for commands where it might be more than a few words/lines.