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 Feb 23 21:58:10 2010  
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Apr 2 10:05:47 2017, 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 Sep 4 10:28:11 2014, 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 Jun 13 16:13:53 2014, 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 Jul 13 03:01:35 2011, comment #1:

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

Tue Feb 23 21:58:10 2010, 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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Apr 2 10:05:47 2017bensStatusWont Fix=>None
      Summary[Request] add support for filtering text through pipe=>[Request] add support for feeding text through a filter program
    Fri Jun 13 16:13:53 2014bensStatusNone=>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