[TxMt] DIALOG2 popup Summary + Suggestion

Hans-Joerg Bibiko bibiko at eva.mpg.de
Mon Apr 21 16:10:29 UTC 2008

On 21 Apr 2008, at 17:39, Allan Odgaard wrote:

> 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:
>>> 1) 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.

But there is still the question, whether it's worth to implement such  
lookup mode in popup?
See http://www.bibiko.de/TM_DIALOG2_popup_lookup.mov (1M)


More information about the textmate mailing list