Page 1 of 1
[Done] Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 10:07 am
by Dude
Solved, due to Josh's explanation below.

Re: Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 10:22 am
by Josh
Close folding and you have to mark only one line
Re: Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 10:51 am
by Dude

Tried that and it didn't work, hence the reason for this request.
Re: Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 11:00 am
by Josh
Which OS?
Needless to say, you have to mark the full line, incl. CrLf
Re: Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 11:08 am
by Dude
Josh wrote:Of course you have to mark the full line, incl. CrLf
So THAT'S the secret! Thanks!

It's not very obvious, though. It makes more sense just to
copy the folded line, rather than also copying a blank line after it.
Re: [Done] Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 11:16 am
by Josh
It makes sense like it is. You don't have to copy the line after that, you have to copy the full procedure head-line and CrLf belongs to this
Re: [Done] Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 11:20 am
by Dude
Well, I'm so used to triple-clicking a line of text to select all that line, like for any other app. Would be awesome if we could do that on a folded procedure (triple-click the line) and then simply press Ctrl+C to copy the whole procedure, instead of also having to drag the mouse down a bit to select the next blank line as well.
Re: [Done] Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 2:25 pm
by skywalk
I use [ctrl+m] until procedure is highlighted, then [ctrl+c].

Re: [Done] Way to copy a procedure easily and quickly
Posted: Tue Jan 10, 2017 7:25 pm
by gurj
PureBasic CodeArchiv :
EditorGadget_GetCursorPosition:
; German forum:
http://www.purebasic.fr/german/archive/ ... highlight=
EditorGadgetCursorX(Gadget)
EditorGadgetCursorY(Gadget)
EditorGadgetCursorPos(Gadget)
EditorGadgetLocate(Gadget,x,y)
============
SelectEditorLine:
http://www.purebasic.fr/english/search. ... mit=Search