nano-devel
[Top][All Lists]
Advanced

[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: Benno Schulenberg
Subject: Re: Fwd: [PATCH 2/3] new feature: "knots" -- a kind of bookmarks, that can be cycled through
Date: Mon, 6 Apr 2020 12:22:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

Op 06-04-2020 om 00:16 schreef Brand Huntsman:
> On 19:36 Sun  5-Apr-2020, Benno Schulenberg wrote:
>> "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.
> 
> "Anchor" is better than all of those names.

Yes, I agree.  Any more votes for "anchor"?

> I still don't agree with this method. A commented unique line could be
> inserted into the file and then jumped back and forth to with special
> search functions that don't modify search history. This type of
> bookmark survives a restart of nano, is visible and is more useful when
> working on different sections of code.
> 
> I have been using a simple patch (points shift when adding/removing
> lines) that keeps a ring of cursor return points that can be set
> manually but are always set when searching. After a search, I can go
> back to previous matches or to the point before I started the search.
> It is much nicer than remmebering to set a permanent bookmark or one of
> these temporary anchor/knots.

So, you have both visible bookmarks AND invisible return points?

Jumping back to previous matches is done with M-Q, right?  And jumping back
to the point where the search started with Sh-M-Q?  Or do you place a return
point for every press of M-Q/M-W?

Please post your patches, so other people can try them out and maybe start
using them.

> For key recommendations, I use alt-shift-QWE to go-back/go-forward/set
> bookmarks and alt-shift-BNM to go-back/go-forward/set return points.

Hm.  I would have thought the other way around, as return points are more
closely related to searching.

Anyway, in the default setup, I don't want to have any bindings to shifted
Alt key combos, so that makes having such functions in nano not very useful.

To mimic your return points, we could add an "anchoronsearch" option, or
simply do that always, by default.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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