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: Fri, 12 Oct 2018 21:03:03 -0600

On Thu, 11 Oct 2018 11:27:27 -0500
David Ramsey <address@hidden> wrote:

> One thing this patch reminded me of: is there any interest in an
> actual function that would mark the entire file?  I've experimentally
> made a quick patch, using Meta-* for the keystroke and "markfile" for
> the binding, against git 8c45642 (attached).

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 know what cutrestoffile is used for, but it could be implemented with a 
"marktofileend cut" string macro.

You could have macro keys that combine marking with actions or just use the 
marking keys followed by whatever action key. Besides cut/nuke/copy, the 
marking keys would be useful when writing out selections or piping selections 
to external commands.

Sure they require a ton of new keys, but I have a working patch that unlocks 
more user bindable keys, such as meta-shift-alpha.

  bind M-A cut main
  bind M-S-A cut main




reply via email to

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