GNU nano - Bugs: bug #62653, [Wish] "snippets" --...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62653: [Wish] "snippets" -- allow binding macros to sequences of text
Submitter: | Marco Diego Aurélio Mesquita <marcodiego> | ||
Submitted: | Sun 19 Jun 2022 06:53:19 PM UTC | ||
Severity: | 1 - Wish | Status: | Wont Fix |
Assigned to: | None | Open/Closed: | Closed |
Thu 23 Jun 2022 07:47:40 AM UTC, comment #3: |
Benno Schulenberg <bens> |
Wed 22 Jun 2022 04:10:22 PM UTC, comment #2: Dear Marco,
|
Tasos Papastylianou <tpapastylianou> |
Wed 22 Jun 2022 07:13:55 AM UTC, comment #1: This is horrendous. For every keystroke nano would have to check whether the character is the same as the last one in any of the stored "snippets", and if so, check the preceding characters, and if all match, replace the matched characters with something else. In addition it would require a new "snippet" nanorc command. Jesus! This is what string binds are for:
|
Benno Schulenberg <bens> |
Sun 19 Jun 2022 06:53:19 PM UTC, original submission:
It would be a simple (I think) modification for nano to keep a list of macros which instead of bound to a key combo could be bound to a sequence. This would allow the implementation of snippets allowing me to, for examples, typing:
|
Marco Diego Aurélio Mesquita <marcodiego> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2022-07-04 | bens | Open/Closed | Open | Closed | |
2022-06-22 | bens | Severity | 3 - Normal | 1 - Wish | |
Status | None | Wont Fix | |||
Summary | [Wish] Snippets: allow binding macros to sequences of text | [Wish] "snippets" -- allow binding macros to sequences of text |
Powered by Savane 3.13-3230.
Corresponding source code
@Tasos: It's fine what you do. I like your style. :)
As for the nanosnippet script: it takes one more keystroke because one would have to type [Enter] at the end. And needing to type a key combo like [Alt+S] instead of a plain slash (or whatever symbol the snippet uses) I would count as at least a key-and-a-half. So it's definitely more typing. But the script idea is cool.