[TxMt] Feature Request: Copy the content of a tooltip into the clipboard

Allan Odgaard throw-away-2 at macromates.com
Thu May 29 11:50:36 UTC 2008

On 29 May 2008, at 13:15, Hans-Joerg Bibiko wrote:

>> [...]
>> We already have ⌃⇧P → Show Scope (as tool tip) and ⌃⇧⌘P  
>> → Copy Scope (to clipboard).
>> One could do similar for the statistics command.
> Well, this would work for specific commands, but I asked for a  
> general approach. Sometimes it would be nice to have the message of  
> any command shown as tool tip in the clipboard etc.

I wasn’t necessary proposing we manually go and duplicate all  
commands with tool tip output, just that maybe the decision to run  
them with “capture to clipboard” could be made before the action is  

> [...]
> But how about an option in TM's preference:
> "Write the content of any tool tip to /tmp/TM_tooltip.txt"

I think a log is an excellent idea. So basically all (command) tool  
tip output goes to ~/Library/Logs/ with a date stamp or similar,  
preferably with some newline escaping so a “repeat last tool tip”  
command would just tail -n1 «log», and similarly for a copy.

> [...]
> This also could be done for the HTML output. There are some XXXmate  
> commands which have a button "Copy content". By using such an option  
> one inherits this automatically.

There’s lots of boiler plate in the script runners which you don’t  
want on the clipboard. So wouldn’t really work (and if you want to  
access the raw HTML you can do ⌥⌘U — so I think log should be  
restricted to tool tip / stderr maybe).

More information about the textmate mailing list