[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that c
From: |
Marco Diego Aurélio Mesquita |
Subject: |
Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through |
Date: |
Sun, 5 Apr 2020 19:02:53 -0300 |
On Sun, Apr 5, 2020 at 2:36 PM Benno Schulenberg <address@hidden> wrote:
>
>
> Op 05-04-2020 om 16:20 schreef Marco Diego Aurélio Mesquita:
> > On my Ubuntu 18.04 with a abnt2-like laptop keyboard pressing alt-'
> > alternate
> > between windows of the same app.
>
> Does your keyboard look like this:
>
> https://en.wikipedia.org/wiki/File:KB_Portuguese_Brazil.svg ?
>
Yes.
> When running nano, what is shown when you type: M-V M-' ?
>
^['
> (When I do that here, it shows: ^['. When I type M-V followed by
> Alt+the-key-above-the-Tab-key, it shows: ^[`. My keyboard is:
>
> https://en.wikipedia.org/wiki/File:KB_United_States.svg )
>
> >> My implementation doesn't do that. The third patch then implements a
> >> different behavior: the knot stays near the place where it was placed when
> >> a
> >> knotted line is deleted. What do you think of that behavior?
> >
> > This is a feature a have been waiting for a long time. I'm willing to accept
> > such a compromise to get it accepted.
>
> It has been waiting for such a long time, because you didn't follow through
> a year ago. You stopped sending updates, and I had other things to do.
>
I got no help on how to implement the behavior you asked for. I spent
weeks fixing a great number of corner cases but by the time I had
something working reliably, the changes already amounted to a few
hundred lines and touched many parts of the source code (even
uno-redo). Considering that such big and intrusive changes had zero
chances of getting accepted and that my excitement to contribute to
gnu-nano was weak (reasons of which I will not discuss publicly
because of my big respect for you), I simply did not sent any updates.
If it ever have happens again and you want to ask me about updates
feel free to contact me.
> > When macros were implemented you had the idea, I implemented and you took
> > the
> > credits. Now I had the idea, you implemented and I'm just getting and
> > "Original-idea-by". Sure, your influence on how macros should be implemented
> > was much more detailed than my influence on how bookmarks should work,
> > anyway
> > I still don't think it is fair.
>
> Fine. I will apply your two patches, and afterward change things over to
> my implementation. (Even though for your implementation of bookmarks you
> have had extensive guidance -- it went up to V12.)
>
I fail to see a good reason to change things to your implementation.
> > But there is more: I actually think my code is more obvious. The jump_to
> > function is not a mere "jump to" since it conditionally shows different
> > messages.
>
> If you wish, suggest a better name for the function.
>
> > Calling a mark "knot" instead of "bookmark" seems less obvious to me.
>
> "Bookmark" began to sound too permanent to me: when you make a bookmark in a
> browser, it is still there when you start the browser the next time. In nano,
> like in Geany, the knot/marker does not get saved and is gone the next time
> you
> start the program. I would have called the thing a "marker", like in Geany,
> but that is too similar to "the mark" that we have in nano. At first I used
> the name "nick", because that is what the ' symbol reminds me of. If you
> like it better, we can use that name.
>
I still think bookmark is a better name.
> > My implementation mimics how other similar features are implemented like
> > chop_previous_word and chop_next_word that call another function with a
> > different argument specifying direction.
>
> I don't care much about similarity between different functions, and less when
> they are located in different files.
>
> > I can update my patches to current master and include the changes in your
> > "third patch". That is my preferred approach.
> >
> > Please give me a go-ahead.
>
> As said, I have already rebased your patch set a week ago (and added a small
> improvement that David posted last year). I'll send those patches in a
> minute.
>
I quickly tested the patches you send and I like the behavior. You
have my blessing to commit then. Also, I suggest applying the attached
to make bookmarked lines more visible.
Thanks!
0001-bookmarks-Show-bookmarked-lines.patch
Description: Text Data
- [PATCH 1/3] input: recognize the keystrokes to be used for jumping to bookmarks, Benno Schulenberg, 2020/04/02
- [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Benno Schulenberg, 2020/04/02
- Re: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Marco Diego Aurélio Mesquita, 2020/04/03
- Re: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Benno Schulenberg, 2020/04/05
- Message not available
- Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Marco Diego Aurélio Mesquita, 2020/04/05
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Benno Schulenberg, 2020/04/05
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through,
Marco Diego Aurélio Mesquita <=
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Benno Schulenberg, 2020/04/06
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Brand Huntsman, 2020/04/05
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Benno Schulenberg, 2020/04/06
- Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through, Brand Huntsman, 2020/04/06
[PATCH 3/3] knots: make current line knotted when deleting a knotted line or region, Benno Schulenberg, 2020/04/02