[TxMt] Feature Request: Copy the content of a tooltip into the clipboard
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Thu May 29 11:15:53 UTC 2008
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"
Then one could have a command à la "Get/Insert/Copy the content of the
last tooltip".
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.
But firstly, this is a question how often that functionality will be
used by other users.
Thanks,
--Hans
More information about the textmate
mailing list