IDE Macros

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

IDE Macros

Post by remi_meier »

Not sure if that has been requested before, but I'll
simply ask again, because it would be awesome!
I use this feature on a daily basis. :wink:

You may already know Emacs' macros. It's pretty
simple: Just press F3 and Emacs starts to record
all your key presses, press F4 and it will stop
recording. Now everytime you press F4 again,
Emacs will replay the recorded key presses.

Here are some demonstrations:
http://www.youtube.com/watch?v=1YNA-VA77vw  
http://www.youtube.com/watch?v=zropjwVQlWQ
http://www.youtube.com/watch?v=LlMU_KYjXI0 (bit long)

Scintilla supports recording macros, so it shouldn't
be hard to implement. :P

Cheers!
Athlon64 3700+, 1024MB Ram, Radeon X1600
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: IDE Macros

Post by IdeasVacuum »

That is similar functionality to UltraEdit and NotePad++

I think it would take a lot of hard work to add this kind of facility, but it is indeed very useful.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE Macros

Post by skywalk »

As a compromise, could we expose more of the built-in features of Scintilla?
Like we already have the duplicate line function with [Ctrl+D] and column editing.
Why are the others disabled?
I use [Ctrl+Shift+Up] and [Ctrl+Shift+Down] a lot in Notepad++.
And the search functions that go forward and reverse.
And so on...
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: IDE Macros

Post by remi_meier »

Why would you be talking about a compromise
or hard work? As I said, Scintilla supports recording
macros. It's pretty easy:
http://www.scintilla.org/ScintillaDoc.h ... oRecording

Of course you will have to replay the commands,
but that shouldn't be too hard.

But I also understand that Freak already has a huge
ToDo list and it is his decision if he wants to put it
on there. I just want to say that it is really useful
in a lot of cases.
Athlon64 3700+, 1024MB Ram, Radeon X1600
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE Macros

Post by skywalk »

I welcome any IDE enhancements that reduce my development time.
I should have said, in addition to Macros, add the basic editing functions supported by Scintilla.
Just a bit frustrated by the "so close, but so far" feeling I get every time I edit code in an external Scintilla editor like NotePad++ :(
Post Reply