Bug 44908 - kate needs a macro system
Summary: kate needs a macro system
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 48030 144632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-09 02:18 UTC by sean
Modified: 2015-10-08 09:03 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sean 2002-07-09 02:12:52 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kate
Version:           2.0 (using KDE 3.0.2 )
Severity:          wishlist
Installed from:    Gentoo
Compiler:          gcc version 3.1
OS:                Linux (i686) release 2.4.19-gentoo-r7
OS/Compiler notes: 

A macro system would be a great addition to Kate. If you've got access to a Windows machine download Textpad (http://www.textpad.com) and try their macro system to get a feel for what I recommend. With Textpad you can select "Record Macro" and it will record your input (cursor movement searches replaces etc). Click "Stop Recording" and you can assign a keystroke to the new macro and indicate if it should be applied once or if it should repeat to the end of the file.

I have found many uses for this feature over the years. Lacking it in KDE has been a bit of a bummer. I can struggle along with Sed but it would be much more elegant integrated with my favorite text editor :).

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 info 2003-06-02 14:30:36 UTC
better would be a general macro system that can be used with any KDE program, not only 
kate. 
Comment 2 Martin Feuersaenger 2005-03-16 10:12:49 UTC
Kate has scripting support through Kscript (a short descripiton at http://kde.geiseri.com/kscript-howto.html). This might be for some of you a workaround for the lack of a macro engine. At least it is for me.
Comment 3 Christoph Cullmann 2005-03-24 12:31:37 UTC
*** Bug 48030 has been marked as a duplicate of this bug. ***
Comment 4 Michel Nolard 2005-04-27 16:33:04 UTC
The interesting things under Textpad and Microsoft Word (which has the same feature) is that it internally translates the keyboard and mouse events into macro code which you can edit later. This frees the user from typing the code himself ! I've used that many many times under Microsoft Visual Studio and it proved very helpful !

First advantage : you can save the macro, assign it a shortcut and reuse it at will
Second advantage : you can share the macro
Third advantage : you can make your macro more generic and even use a dialog so the user can customize some things
Fourth advantage : there is no problem :)

:)
Comment 5 Mathieu Jobin 2005-06-05 18:20:07 UTC
this is more than require... I think KDE should offer an amazing editor for programmer.

here is another astonishing example of an editor TextMate under OSX.

there is nothing you can't do with this, its crazy. and makes it more fun to code.

thanks

Comment 6 Mathieu Jobin 2005-08-08 06:29:00 UTC
isn't this wished already fullfilled with the snippets extension available in kdeaddons ? 
maybe a GUI is require... the snippets extension seems quite hard to use ...

Comment 7 Dominik Haumann 2005-08-19 12:36:08 UTC
> isn't this wish [...] fullfilled with the snippets extension [...] ? 
Snippets acutally have nothing to do with macros.
Comment 8 Maciej Pilichowski 2006-03-22 18:29:08 UTC
I agree with need of macros. Another subwish is to make recorded macro a new item -- in a way I could assign an icon to it, place it on toolbar, menu, add a shortcut for it, etc.

Macro should contain all user actions /I am especially interested in combined "command line"+"sort" as a new item :-)/.
Comment 9 Divan Santana 2007-03-14 11:02:19 UTC
Hopefully someone does this soon.

It can't be too difficult can it?? :)

PFE another text editor on Windows can do it.
Please this is the only thing awesome kate doesn't have.

Anyone??
Comment 10 Graham 2007-04-10 11:42:05 UTC
Of course, you must have missed NEdit.

This is a good example of a simple but powerful text editor.

Alt-K to record
Alt-K to stop
Ctrl-K to repeat what you just recorded.

UNIX only (plus cygwin)

In kate I find myself opening things in NEdit to edit then and using kate as a text browser.
Comment 11 Thomas Friedrichsmeier 2007-12-10 17:21:15 UTC
*** Bug 144632 has been marked as a duplicate of this bug. ***
Comment 12 Andreas Pakulat 2008-06-30 17:51:34 UTC
*** Bug 140967 has been marked as a duplicate of this bug. ***
Comment 13 Dario Ghilardi 2008-10-23 17:52:07 UTC
What's the status of this wish? Macro system is required for Kate, this should be one of the most important features to add imho.
Comment 14 Andreas Pakulat 2008-10-23 20:47:05 UTC
As you can see from the comments here and from the fact that this wishlist hasn't been closed yet, there's still no implementation available.

If you want this feature so badly, jump in and code it yourself. The kate code is pretty easy to understand. The kate devs will eventually get around to doing this if one of them wants to work on this feature.
Comment 15 Dan Beeler 2008-12-14 06:22:56 UTC
Indeed! I think emacs trumps kate only in its macros feature. Of course, I'm just an echo here, but maybe I can try looking at some of the code.
Comment 16 harry bennett 2009-07-06 03:02:37 UTC
(In reply to comment #2)
> Kate has scripting support through Kscript (a short descripiton at
> http://kde.geiseri.com/kscript-howto.html). This might be for some of you a
> workaround for the lack of a macro engine. At least it is for me.

Can I get an update on this link,... all I get is a blank page,... thanks
Comment 17 Graham 2009-07-07 20:01:02 UTC
KScript look like a defunct project.

I like Kate and use it often for it's kioslave linking.

It is quite annoying that this is missing and stops devs using it in preference to Visual Studio :-)
Comment 18 Christoph Cullmann 2015-10-08 09:03:27 UTC
Dear user,

this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is very small and we can just try to keep up with fixing bugs. Therefore wishs that show no activity for two years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.

If you want your feature to be implemented, please step up to provide some patch for it. If you think it is really needed, you can reopen your request, but keep in mind, if no new good arguments are made and no people get attracted to help out to implement it, it will expire in two years again.

We have a nice website kate-editor.org that provides all the information needed to contribute, please make use of it. For highlighting improvements our user manual shows how to write syntax definition files.

Greetings
Christoph