#StackBounty: #editors #nano How to expand code snippets in GNU nano?

Bounty: 50

In most text editors, it is possible have "code snippets" you can expand by typing a keyword and pressing the tabulation key.

As an example, a snippet for LaTeX might look like

begin{$1}
    $2
end{$1}

However I found nothing in the nano man page nor on the web. Is there some hacky way to achieve that? One idea might be to have some bash function nano-latex-begin or something taking two arguments and then to ask GNU nano to execute it but the process would be rather slow.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.