Re: MacOS paste issue

From: Jay <robert.jay.go....at.gmail.com>
Date: Thu, 20 May 2010 23:47:21 -0700 (PDT)

Here is a quick fix I'm using for the issue, a custom paste function:

function paste()
                if textadept.clipboard_text and #textadept.clipboard_text>0 then
                        local next_pos = buffer.current_pos+#textadept.clipboard_text
                        if #buffer:get_sel_text()>0 then
                                buffer:replace_sel(textadept.clipboard_text)
                        else
                                buffer:insert_text(buffer.current_pos,textadept.clipboard_text)
                        end
                        buffer:goto_pos(next_pos)
                end
        end

-Jay

On May 18, 2:17 am, mitchell <mforal.n....at.gmail.com> wrote:
> Jay,
>
> On May 17, 12:29 pm, Jay <robert.jay.go....at.gmail.com> wrote:
>
> > As a test I downloaded TA2.0 and paste works, so I kept trying and it
> > works up until textadept_2.2_beta.osx.zip and stops working in
> > textadept_2.2_beta2.osx.zip.  Apparently some change in between these
> > two releases is the cause.
>
> > Haven't pinpointed it down any further yet as I need to get some
> > sleep.
>
> Ugh, it has to do with the kill-ring removal. You'll notice a
> difference in key_commands.lua from 2.0 to 2.2. I'll have to find some
> way around it.
>
> Mitchell
>
>
>
>
>
>
>
> > -Jay
>
> > On May 18, 12:51 am, Jay <robert.jay.go....at.gmail.com> wrote:
>
> > > Not sure when it happened, since I use TA mostly at work on a Windows
> > > machine, but at home on my Mac I'm having issues with pasting.
> > > Apparently it just doesn't work. No idea what's the cause yet, but I
> > > do know that it doesn't seem to be the key mapping, as pasting from
> > > the toolbar or context menu also fail.
>
> > > Anyone else with the same problem on the Mac?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "textadept" group.
> > > To post to this group, send email to textadept.at.googlegroups.com.
> > > To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups "textadept" group.
> > To post to this group, send email to textadept.at.googlegroups.com.
> > To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Fri 21 May 2010 - 02:47:21 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:46:20 EST