nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH v2] docs: give suggestions for alternative key b


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH v2] docs: give suggestions for alternative key bindings in the sample nanorc
Date: Sun, 14 Oct 2018 23:22:00 -0600

On Sun, 14 Oct 2018 12:24:44 +0200
Benno Schulenberg <address@hidden> wrote:

> Op 13-10-18 om 05:03 schreef Brand Huntsman:
> > I don't know about the usefulness of a markfile function but
> > marktofilestart, marktofileend, markblock, marktoblockstart,
> > marktoblockend, markline, marktolinestart and marktolineend could
> > be useful. These can all be done with string macros but the cursor
> > position is lost when undoing, the functions could preserve it.  
> 
> I don't think that being able to restore the cursor position when
> undoing a marking action is enough reason to add these extra
> functions.  For one, I would never use them, wouldn't be able to
> remember their keybindings, and would always just use <Shift+End>,
> <Ctrl+Shift+Down>, and the like. And, when marktolineend and such
> becomes an undoable, it will feel weird that just marking a letter or
> a word is not undoable.

The mark functions wouldn't be undoable. They mark in reverse to keep the 
cursor from being moved, allowing other functions that are undoable to restore 
the cursor position. They are also useful for non-undoable actions such as copy.

  "shift-end copy" - cursor is at end of line
  "marktolineend copy" - cursor doesn't move

  "shift-end cut" - undoing cut puts cursor at end of line
  "marktolineend cut" - undoing cut restores cursor




reply via email to

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