nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] possible new feature: allow binding a key to a


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] possible new feature: allow binding a key to a string
Date: Thu, 1 Feb 2018 22:58:42 -0600

Responding to three people at once:

Benno Schulenberg:
> If you would like to see this feature get included, say "Yeah!".

Yeah!  With one caveat...

Marco Diego Aurélio Mesquita:
> So, what I propose is that a command prompt should be implemented in
> nano (just like ne's one) and the keybinding to invoke this should be
> unrebindable.

I understand the problem this proposal is trying to fix, but adding
something as complex as an unrebindable prompt for function names seems
like overkill to me.  On the other hand...

Brand Huntsman:
> One problem with these key bind macros is that they are a little hard
> to read, need M-V to write, and can't be copy/pasted to another
> computer. They could use a sigil to write out readable function names.
>
> bind M-1 "^[r    ^M^[v  ^M" main
> bind M-1 "${replace}    ${enter}${verbatim_input}${tab}${enter}" main

Using sigils for readable function names instead of raw key values seems
like a better solution to the problem.



reply via email to

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