nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] how should piping through an external command work?


From: Marco Diego Aurélio Mesquita
Subject: Re: [Nano-devel] how should piping through an external command work?
Date: Sun, 18 Feb 2018 10:42:03 -0300

On Sun, Feb 18, 2018 at 9:35 AM, Benno Schulenberg <address@hidden> wrote:
> Another advantage of having the piping toggle is that we could get
> rid of the 'formatter' command.  If we allow syntaxes to contain
> also 'bind' commands, a syntax could bind a keystroke to a desired
> filter program:
>
>     extendsyntax go bind M-T "^R^Xgofmt -w"
>
> Spell-checking and replacing work on the whole buffer when nothing
> is marked, and work on the marked region otherwise.  I think that
> piping through an external command should operate the same way.
>
> Opinions?
>

I have an Idea: if the first character of a command is a '|' (and
there is no text selected), nano should pipe the whole buffer to the
command. This is not very discoverable but would allow us to have both
possibilities without the need of  new toggle.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]