nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [RFC] Re-execute last command


From: Marco Diego Aurélio Mesquita
Subject: Re: [Nano-devel] [RFC] Re-execute last command
Date: Fri, 6 Oct 2017 21:53:01 -0300

On Fri, Oct 6, 2017 at 8:08 PM, Brand Huntsman <address@hidden> wrote:
> On Fri, 6 Oct 2017 12:17:59 -0300
> Marco Diego Aurélio Mesquita <address@hidden> wrote:
>
>> There is a common use case that is not well served by nano right now:
>> sometimes you want to execute a command many times when testing code
>> or when you want different data from a command in many different
>> points of a file.
>>
>> For the use cases mentioned, re-execute last command would suffice. Do
>> you think it is a good feature to add?
>
> A key bind to re-execute? Would the new command history not be enough? You 
> mentioned "different data at different points", you would need to modify the 
> command to do that, command history would allow this.
>

I want to use nano as a small IDE (actually I didn't want to tell it
because it may sound silly). Now, suppose you want to compile and run
a C source file (say test.c); you can do it easily by hitting ^-R-X,
type "gcc test.c && ./a.out" and press Enter. If you modify the code
and want to test it again, you have to hit ^-R-X-Up-Enter. You have to
do it again every single time you want to re-run it. I want to reduce
that to ^-R-R.

Sounds reasonable?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]