#261 Console add action "Run 2nd Last Command"

closed-rejected
Alan Ezust
None
5
2012-01-29
2011-10-27
Jarek Czekalski
No

Sometimes the command I want to repeat in Console Plugin escapes to the position last before last (arrow up twice). So I have to use several keystrokes to fire it again. I would like a command that does the job, so that I could have a shortcut for it.

It happens for example when I save ant's build file. Then a command "=24" is generated which obscures my last build command (e.g. !jar).
If one executes always 2 commands in a sequence, then the new suggested command would also help him.

3rd Last Command could also be usable, maybe. I doubt if more could be needed.

I guess what I want is not available as a macro. But if it was, then the problem would be solved.

Discussion

  • Alan Ezust
    Alan Ezust
    2012-01-29

    What do you suggest the syntax for this command be?

    I was thinking !2 to signify the 2nd last command and !3 to be the 3rd last command in the history, etc... so !1 would be the most recent command. Does that make sense?

     
  • Alan Ezust
    Alan Ezust
    2012-01-29

    • assigned_to: nobody --> ezust
     
  • Alan Ezust
    Alan Ezust
    2012-01-29

    ignore previous comment, I see you want an action, not a command. nevermind. good idea.

     
  • Alan Ezust
    Alan Ezust
    2012-01-29

    • summary: Console add command Run 2nd Last Command --> Console add action "Run 2nd Last Command"
     
  • After I stopped using ant farm I no longer see the application of this feature request. So I would agree to a minimum priority or even to close it as won't fix. Please decide yourself.

    Anyway if someone repeats frequently 2 commands in a row, he could use such a feature.

     
  • Alan Ezust
    Alan Ezust
    2012-01-29

    Actually, now that we have compile and run project commands, I don't need this either. Closing as "rejected"

     
  • Alan Ezust
    Alan Ezust
    2012-01-29

    • status: open --> closed-rejected