[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: |
Fri, 2 Feb 2018 11:40:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Op 01-02-18 om 21:41 schreef Marco Diego Aurélio Mesquita:
But, there are things that I think should be discussed now.
First, I'd like to have something like abbreviations in nano. By abbreviation
I mean "type a few chars and it gets replaced by something else".
That is a whole new feature, will require a lot of new code, and
makes nano compare for every keystroke whether the last typed
fragment in the buffer matches any of the defined abbreviations.
Not a good fit for a simple editor.
Second, this feature is very very similar to pre-recorded macros. Now,
suppose I create a macro to select the char under the cursor and perform a
search. Now, suppose that some days later I change some of my keybidings. The
result: the pre-recorded macro no longer works.
Yes, can't be helped. How often do you revise your keybindings?
How many of these "prerecorded macros" are you going to make?
But... I've been thinking on a solution for this problem: a command prompt
for nano;
You are seeking solutions for far-fetched problems.
So, what I propose is that a command prompt should be implemented in nano
(just like ne's one) and the keybiding to invoke this should be unrebindable.
*If* it were implemented, it should darn well be rebindable.
Benno