[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: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] possible new feature: allow binding a key to a string |
Date: |
Sun, 4 Feb 2018 12:41:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Op 02-02-18 om 01:34 schreef 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.
True, they are a little hard to read.
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
Quite a bit easier to read and copy/paste, and no unrebindable prompt is
needed. But you need to know the function names to do this, which anyone
binding keys would already need to know.
When they want to rebind functions to other keys, yes. But when they just
want to "prerecord a macro" (that is: to make a key produce a string), then
they only need to know which keys to press.
Benno