On Dec 2, 2009, at 8:42 PM, Matt Cable wrote:
When I do a 'select scope' with the mouse on a comment, it correctly selects the surrounding lines beginning with #. However, if I set up a simple 'cat' command (seen here: http://grab.by/WGt) with the input set to "Selected Text or Scope" and the output set to tooltip, the tooltip is displaying the entire contents of the file (seen here: http://grab.by/WHB)
The “Generate Password” command in the LDIF bundle has the same things listed for input and is working, however, it doesn’t read from STDIN. Instead it acts on the value of TM_CURRENT_WORD. That variable is apparently replaced with the correct thing because the command works.
Does that make sense? Not necessarily. Is it *supposed* to work? I don’t know… but it’s working for now.
Perhaps instead of `cat`-ing STDIN, you can `echo` the values of various TM_ variables and see if any of them consistently and reliably contain the text you’re looking for.