Editor-Feature: Duplicate current line

12 views
Skip to first unread message

wiech...@gmail.com

unread,
Sep 3, 2015, 1:27:47 PM9/3/15
to Interactive Editor for Python
Hi,

I really like the feature in "kate" or "geany" to duplicate the current line by pressing some shortcut (like e.g. STR+D in kate). I think this would be rather easy to implement in IEP as well. Someone else who would like to have this feature?

Best regards,
Peter

mana...@gmail.com

unread,
Sep 7, 2015, 3:52:05 AM9/7/15
to Interactive Editor for Python, wiech...@gmail.com
me ;-)
as a SciTE user ;-)

mana...@gmail.com

unread,
Sep 7, 2015, 7:22:00 AM9/7/15
to Interactive Editor for Python, wiech...@gmail.com
I've got mine ;-)

File "editor.py", I'd replaced the "deleteLines()" method by this one :

def deleteLines(self):
cursor = self.textCursor()
text = cursor.block().text()
start = cursor.selectionStart()
cursor.setPosition(start)
cursor.movePosition(cursor.StartOfBlock)
cursor.insertText( text+"\n")


It's an horrible hack, but it works
and nobodies use the deleteLines() features


Le jeudi 3 septembre 2015 19:27:47 UTC+2, wiech...@gmail.com a écrit :
Reply all
Reply to author
Forward
0 new messages