Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been looking for a decent free text editor, similar to Ultra Edit. I like jEdit a lot but there is one feature I am missing. In Ultra Edit, I can record a macro that edits a given line and then replay that macro so that it runs until the cursor reaches the end of the file. Is there a way to do this in jEdit?

Thanks!

share|improve this question
    
I'm amazed to find out there is no simple answer to this as off today! I couldn't find any. Best thing, as I see it, is going with AHK. –  Cawas Mar 6 at 16:53
add comment

3 Answers

jEdit supports recording and playing back macros; both temporary and saved. Ctrl+m Ctrl+m starts recording a temporary macro, Ctrl+m Ctrl+s stops recording, and Ctrl+m Ctrl+p plays the macro.

Full documentation is available in chapter 8 of the jEdit users guide.

share|improve this answer
    
Thanks James. I know how to record macros. I know how to play macros one at a time. However, I occasionally need to perform an action on 10s or 100s of thousands rows and the keystroke method causes flair ups of the old carpel tunnel syndrome. Ultra edit has the ability to run a given macro until the EOF is hit. I'm thinking that I may need to write a macro that will do this but don't want to re-invent the wheel. –  wcm Sep 11 '10 at 19:33
add comment

You may try the Action Bar for repetition.

share|improve this answer
    
nope, doesn't work. –  Cawas Mar 6 at 16:53
add comment

As mentioned by AhLeung already, the Action Bar will allow you to specify the number of times to repeat a task. I frequently do something similar to this -

Record a temporary macro: C+m C+m, perform task, C+m C+s

Run the macro 200 times: C+Enter (opens action bar at bottom of window), type 200, then C+m C+p

Simplest example, write "x" 300 times: C+Enter, 300x

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.