Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-05

Start/Stop recording editor macro

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcos Douglas
to Flávio Etrusco

2011/5/3 Fl?vio Etrusco

Show quoted text 14 lines
On Tue, May 3, 2011 at 2:33 PM, Marcos Douglas wrote: > Hi, > Is there in Lazarus a "record editor macro", like Delphi (CTRL+SHIFT+R)? > > See http://delphi.about.com/od/adptips2005/qt/editorshortcuts.htm > > > Marcos Douglas > This is also in my to-do list :-D There's a component in the upstream SynEdit, but I don't know whether it's totally compatible with the Lazarus version.

Fl?vio or someone has something news about "recording editor macro" in Lazarus?

Marcos Douglas

Reply by email

Martin
to Marcos Douglas
Marcos Douglas wrote 15 lines
2011/5/3 Fl?vio Etrusco > On Tue, May 3, 2011 at 2:33 PM, Marcos Douglas wrote: >> Hi, >> Is there in Lazarus a "record editor macro", like Delphi (CTRL+SHIFT+R)? >> >> See http://delphi.about.com/od/adptips2005/qt/editorshortcuts.htm >> >> >> Marcos Douglas >> > This is also in my to-do list :-D > There's a component in the upstream SynEdit, but I don't know whether > it's totally compatible with the Lazarus version. Fl?vio or someone has something news about "recording editor macro" in Lazarus?

Best of my knowledge, there are no changes. Unless someone has unpublished work at home

Reply by email

Martin
to Marcos Douglas: 2011/5/3 Fl?vio Etrusco Fl?vio or someone has something news about "recording editor…
Marcos Douglas wrote 15 lines
2011/5/3 Fl?vio Etrusco > On Tue, May 3, 2011 at 2:33 PM, Marcos Douglas wrote: >> Hi, >> Is there in Lazarus a "record editor macro", like Delphi (CTRL+SHIFT+R)? >> >> See http://delphi.about.com/od/adptips2005/qt/editorshortcuts.htm >> >> >> Marcos Douglas >> > This is also in my to-do list :-D > There's a component in the upstream SynEdit, but I don't know whether > it's totally compatible with the Lazarus version. Fl?vio or someone has something news about "recording editor macro" in Lazarus?

There is now.
Very basic though.

shift ctrl-r record/ stop record
shift ctrl-p play or pause/resume-record

- There is one and only one macro for the entire IDE
- It can be played in any editor (one editor at a time only)
- It can be recorded in any editor (one editor at a time only)

If the editor changes during record, then the old editor stays recording. No other editor can record, until finished. (It does not stop recording, so the user can look at another editor)

If an editor-tab-changing command is recorded, it will be replayed. But the remainder of the macro keeps being played to the initial editor. (In future such commands should not be recorded)

Reply by email

Zaher Dirkey
to Martin
Martin wrote
- There is one and only one macro for the entire IDE - It can be played in any editor (one editor at a time only) - It can be recorded in any editor (one editor at a time only)

Cool, finally :)

Is that available to any TSynEdit?

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120219/33c57c59/attachment.html>

Reply by email

Martin
to Zaher Dirkey
Zaher Dirkey wrote 12 lines
On Sat, Feb 18, 2012 at 7:20 PM, Martin < <mailto:>> wrote: - There is one and only one macro for the entire IDE - It can be played in any editor (one editor at a time only) - It can be recorded in any editor (one editor at a time only) Cool, finally :) Is that available to any TSynEdit?

The component is in the palette, yes.

If you work with more than one synedit and want to share the macro (rather than each edit having a separate macro) you need to do tiny bit of code.

SyncroEdit was also added to palette
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120219/50003948/attachment.html>

Reply by email

Marcos Douglas
to Martin: There is now. Very basic though. shift ctrl-r record/ stop record shift ctrl-p play or…
Martin wrote 39 lines
On 23/01/2012 18:33, Marcos Douglas wrote: > > 2011/5/3 Fl?vio Etrusco >> >> On Tue, May 3, 2011 at 2:33 PM, Marcos Douglas ?wrote: >>> >>> Hi, >>> Is there in Lazarus a "record editor macro", like Delphi (CTRL+SHIFT+R)? >>> >>> See http://delphi.about.com/od/adptips2005/qt/editorshortcuts.htm >>> >>> >>> Marcos Douglas >>> >> This is also in my to-do list :-D >> There's a component in the upstream SynEdit, but I don't know whether >> it's totally compatible with the Lazarus version. > > Fl?vio or someone has something news about "recording editor macro" in > Lazarus? > There is now. Very basic though. shift ctrl-r ?record/ stop record shift ctrl-p ?play or pause/resume-record - There is one and only one macro for the entire IDE - It can be played in any editor (one editor at a time only) - It can be recorded in any editor (one editor at a time only) If the editor changes during record, then the old editor stays recording. No other editor can record, until finished. ?(It does not stop recording, so the user can look at another editor) If an editor-tab-changing command is recorded, it will be replayed. But the remainder of the macro keeps being played to the initial editor. (In future such commands should not be recorded)

Very cool!
I will try, thanks.

Marcos Douglas

Reply by email

Marcos Douglas
to Marcos Douglas
Marcos Douglas wrote 43 lines
On Sat, Feb 18, 2012 at 3:20 PM, Martin wrote: > On 23/01/2012 18:33, Marcos Douglas wrote: >> >> 2011/5/3 Fl?vio Etrusco >>> >>> On Tue, May 3, 2011 at 2:33 PM, Marcos Douglas ?wrote: >>>> >>>> Hi, >>>> Is there in Lazarus a "record editor macro", like Delphi (CTRL+SHIFT+R)? >>>> >>>> See http://delphi.about.com/od/adptips2005/qt/editorshortcuts.htm >>>> >>>> >>>> Marcos Douglas >>>> >>> This is also in my to-do list :-D >>> There's a component in the upstream SynEdit, but I don't know whether >>> it's totally compatible with the Lazarus version. >> >> Fl?vio or someone has something news about "recording editor macro" in >> Lazarus? >> > There is now. > Very basic though. > > shift ctrl-r ?record/ stop record > shift ctrl-p ?play or pause/resume-record > > > - There is one and only one macro for the entire IDE > - It can be played in any editor (one editor at a time only) > - It can be recorded in any editor (one editor at a time only) > > If the editor changes during record, then the old editor stays recording. No > other editor can record, until finished. ?(It does not stop recording, so > the user can look at another editor) > > If an editor-tab-changing command is recorded, it will be replayed. But the > remainder of the macro keeps being played to the initial editor. > (In future such commands should not be recorded) Very cool! I will try, thanks.

Worked perfectly, thanks very much.

Marcos Douglas

Reply by email