[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?
- [Nano-devel] [RFC] Re-execute last command, Marco Diego Aurélio Mesquita, 2017/10/06
- Re: [Nano-devel] [RFC] Re-execute last command, Brand Huntsman, 2017/10/06
- Re: [Nano-devel] [RFC] Re-execute last command,
Marco Diego Aurélio Mesquita <=
- Re: [Nano-devel] [RFC] Re-execute last command, Brand Huntsman, 2017/10/06
- Re: [Nano-devel] [RFC] Re-execute last command, Marco Diego Aurélio Mesquita, 2017/10/07
- Re: [Nano-devel] [RFC] Re-execute last command, Brand Huntsman, 2017/10/07
- Re: [Nano-devel] [RFC] Re-execute last command, Marco Diego Aurélio Mesquita, 2017/10/07
- Re: [Nano-devel] [RFC] Re-execute last command, Benno Schulenberg, 2017/10/07
Re: [Nano-devel] [RFC] Re-execute last command, Benno Schulenberg, 2017/10/07