bugGNU nano - Bugs: bug #28993, [Request] add support for feeding...


bug #28993: [Request] add support for feeding text through a filter program

Submitted by:  None
Submitted on:  Tue 23 Feb 2010 09:58:10 PM UTC  
Severity: 1 - WishStatus: None
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 02 Apr 2017 10:05:47 AM UTC, comment #4:

Feeding the current buffer (or the currently selected text) through a filter program is the generalization of calling an external spell-checker or formatter program. So, if it were made possible to define a "speller" per syntax, one specific "filter" would be easily accessible through ^T.

On the other hand, if it were possible to define a handful of macros (recorded sequences of keystrokes), then most of what you want would be possible. (See bug #50314 for the macro request.)

Benno Schulenberg <bens>
Project Administrator
Thu 04 Sep 2014 10:28:11 AM UTC, comment #3:

^R ^X is good, but it would be even better if it remembered the last command typed (like ^W does).
Also, if there was a way to store few "predefined" commands (in nanorc for example), accessible via ^R ^1 / ^R ^2 etc... with parameters (or not), it would be very helpful for productivity. I often interrupt nano to trigger a grep in a source tree, it would be very useful to be able to do "^R ^1 <search term>" and have a grep -r run with these term, the output inserted in a new buffer, as ^R ^X does.

Bob <mailpourri>
Fri 13 Jun 2014 04:13:53 PM UTC, comment #2:

I think you can do this through running a command (^R ^X) and then type in the name of a script that implements this menu of several filtering options. Nano is a simple editor, not a Swiss army knife that lets you do everything from making a cup of tea to phoning home. :) So if you want to filter a file, you do it either before starting nano, or you put nano to sleep (if you have only one terminal) and then filter it, or you make the proposed menued filtering script.

Benno Schulenberg <bens>
Project Administrator
Wed 13 Jul 2011 03:01:35 AM UTC, comment #1:

This can be also used to edit GPG encrypted files (not very secure way, but ok for some cases).

Tue 23 Feb 2010 09:58:10 PM UTC, original submission:

Hello, it can be useful to have option to set up few pipe filters which can be used to filter whole document...

eg.: gnu indent (this will add autoindent support), base64, uuencode, iconv, sed, perl,...

we can have array of strings like:
0:indend -linux
1:base64 -decode
2:sed -e 's/pico/nano/g'

and when some key is hitted, there can be popup menu which will let us choose from those pipes...



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mailpourri (Posted a comment)
  • -unavailable- added by bens (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Feb 2018 12:55:28 PM UTCbensSeverity3 - Normal=>1 - Wish
    Sun 02 Apr 2017 10:05:47 AM UTCbensStatusWont Fix=>None
      Summary[Request] add support for filtering text through pipe=>[Request] add support for feeding text through a filter program
    Fri 13 Jun 2014 04:13:53 PM UTCbensStatusNone=>Wont Fix
      Summary[Feature request] Add support for filtering text through pipe=>[Request] add support for filtering text through pipe

    Back to the top

    Powered by Savane 3.1-cleanup1