[TxMt] Feature Request: Copy the content of a tooltip into the clipboard
Pedro Melo
melo at simplicidade.org
Thu May 29 13:20:41 UTC 2008
Hi,
On May 29, 2008, at 12:15 PM, Hans-Joerg Bibiko wrote:
> On 29 May 2008, at 12:56, Allan Odgaard wrote:
>
>> On 29 May 2008, at 09:46, Hans-Joerg Bibiko wrote:
>>
>>> [ copy contents of tool tip ]
>>> Of course, to find a proper key/mouse event could be a bit
>>> tricky. All key events are bound to text document except for ESC.
>>> Thus my question is: Does anyone have an idea?
>>
>> I think finding a gesture to use, while the tool tip is showing,
>> is difficult because tool tips are very elusive and do not respond
>> to regular events (and if they did, they would often interfere).
>> Perhaps an easier approach is to just have alternative commands.
>>
>> 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.
>
> OK. I know to find an event for this is very difficult.
>
> But how about an option in TM's preference:
> "Write the content of any tool tip to /tmp/TM_tooltip.txt"
Better yet: use a named PasteBoard. See
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSPasteboard_Class/Reference/Reference.html#//
apple_ref/occ/clm/NSPasteboard/pasteboardWithName:
and
http://developer.apple.com/documentation/Cocoa/Conceptual/
CopyandPaste/Articles/pbFundamentals.html#//apple_ref/doc/uid/
TP40004254-DontLinkElementID_2
for more details. TextMate could send the tooltip text to the
com.macromates.textmate.tooltip-pb and then have a Ctrl-Cmd-V or
something to paste it.
Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo at simplicidade.org
Use XMPP!
More information about the textmate
mailing list