then select the rectangle ab, de, gh (first to char)
and want to paste it into the pos before 'c', I get:
abab
de
gh
c
def
ghi
but I want:
ababc
dedef
ghghi
is there an easy way to do this?
the second question: for that, I have found a solution:
as part of a plugin:
(section paste)
if sel_is_rectangle:
text = do.GetText() # from clipboard
ind = 0
pos = self.GetCurrentPos()
oldpos = pos
line = self.GetCurrentLine()
col = self.GetColumn(self.GetCurrentPos())
while text.find('\n', ind) != -1:
newind = text.find('\n', ind)
temp = text [ind:newind-1]
self.AddText(temp)
self.GotoPos(pos)
self.CmdKeyExecute (wx.stc.STC_CMD_LINEDOWN)
pos = self.GetCurrentPos()
line += 1
ind = newind+1
self.GotoPos(oldpos)
remains only the first question:
rectangular selection with keyboard only.
···
On Thu, 16 Sep 2004 10:22:10 +0200, Franz Steinhäusler <franz.steinhaeusler@gmx.at> wrote:
--
Franz Steinhäusler