[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [RFC] Quick switch between open buffers
From: |
Marco Diego Aurélio Mesquita |
Subject: |
Re: [Nano-devel] [RFC] Quick switch between open buffers |
Date: |
Fri, 10 Nov 2017 19:29:21 -0200 |
On Mon, Nov 6, 2017 at 6:01 PM, Benno Schulenberg <address@hidden> wrote:
>
> Op 02-11-17 om 07:38 schreef Marco Diego Aurélio Mesquita:
>>
>> When using nano to edit more than just a few files, switching linearly
>> between
>> them soon becomes boring.
>>
>> The attached patch implements a fast way to switch between open buffers.
>> Hit
>> ^R ^O to use it. It opens the browser showing only current open buffers.
>> This
>> way you can easily and quickly choose which of the current open buffers
>> you
>> want to switch to.
>
>
> Interesting. But... I don't want to make nano into an aspiring IDE.
>
This feature is interesting even for something that is not an IDE.
This is needed for anything that requires changes to more than just a
few files.
I still want to implement something like "close all" or "save all" to
improve working with multiple buffers.
> The choice of ^R ^O is odd, since the user does not want to *read* or
> insert anything, but instead wants to jump. So it would be better to
> bind the function directly to a key. But as we're running out of keys,
> maybe simply provide a bindable function and let the needy user do the
> binding.
>
How about something on the goto menu?
> Your patch will be much more maintainable if you don't change any lines
> that don't *need* to be changed. Meaning: don't change any indentation.
> Look at the output of 'git log -p -w' for your commit. That is what
> your patch should look like.
>
I'm nesting code inside a new if clause, I think the change in
indentation is needed here. I currently generate my patches with "git
format-patch -1" would using "git format-patch -1 -w" be enough?