Re: Alt+Insert does not work, and nohelp gives too little help

Benno Schulenberg <[email protected]> Sun, 16 Aug 2020 19:39:21 +0200
Newsgroups gmane.editors.nano.general
Message-ID <[email protected]>
Op 16-08-2020 om 15:50 schreef Seb:
> If I want to process the entire file, I'll go ahead and select the
> entire file before typing ^T.

Selecting the entire file is cumbersome in nano, as it doesn't have
a "Select All" command.  Because piping nothing into a command makes
no sense, the «nothing is selected» is a shorthand for «everything is
selected and should be piped into the command» when using |command.

> Let's say I use Nano from within Mutt and I want to send the result of a command
> line.

You mean you compose an email in nano (from within mutt) and you want
to insert the output of some shell command into your email?  Then you
just type ^T command <Enter> *without* using the pipe symbol.

>> The purpose of the |command construct is to filter / process / format /
>> manipulate / knead the selected text (or entire buffer) into a different shape,
>> replacing the original.
> 
> Isn't it the case with the example I gave above? A string is processed and gives
> another string...

I don't follow...  The essence of the |command construct is that it
*replaces* whatever was selected (or the entire buffer if nothing was
selected).  If you need to have both the original and the processed text,
then you will have to shuffle with things to get it.  Sorry.  That is not
what |command was designed to do.
> "Normal" ISO-8859-1 characters show up just fine inside Nano: ±²³´µ¶· etc.

It required me to build nano with --disable-utf8 before those ISO-8859
characters showed up.

Benno
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEv9AJBh5TUFKtDfIVDSjU0qCs6IQFAl85b0kACgkQDSjU0qCs
6ITBWA//VzHwHV1sYvaaCVKVnJPOTT8Td92I7jfgTT0E6A8iDxVx1wHc+xC1F+9w
LAHRffoERvMBU4NABlk9pIUOQ3YZLq6HU+FYi2USCUr23vvn7AXJ2L9kbIAkJLnp
24a63/6Z6g2FtL6vwZwuPsDcqL2hxr4goTcluNbWaRKVxbnNg/FuUSu00OTMH7zH
X9mt4lgaCQkTb80M5Ence5WPV9akgh/h6jjkwR1aQs3zf1IYB5c+8MnRnM1VkOjk
/qFCAwMlmFvRALej6BnjnAfMnDeO86Gr8q8iRuduucX6RuWw9xuxvnil2Sd4SKNL
n5ng1r6E/JA/f62aoogiDq4I5jeNC3ra3r3aU5QIC7iKEmr6iyjbCoW8srPhLKqk
HIb+/aCbU3y1m41t5kKBd5f7ZRJ9SuUSaUY+xS/C0yDjda/xfaG0NmBP0CtNOudd
i2Eh3zhV8v1iH4Av3KYzMkUr03xzUEbbgi8eUBGRrx4ZMRx8tf4DrDe3CsjJpNmu
7m+z/JXELUOrdbg9zmGPzngo9JyPkEkJdlx0QtLNgR3v9kdDVPCqzK4Z7ZPYL+HK
CTHwTteh4PvIGCOLDgLv1gtU5nz11IYHAHRx7KqcWjp+W8Osmlwgo2R0o0bPibqK
yZ3uMusUYE/pVPQSfRV4BGkEc4UTqDFJ/m/fJMeSF7SPyIAp3+A=
=goq2
-----END PGP SIGNATURE-----