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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  None
Submitted:  Tue 23 Feb 2010 09:58:10 PM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Jump to the original submission

Sat 02 Jun 2018 10:24:48 AM UTC, comment #8: 

Released in 2.9.8.

Benno Schulenberg <bens>
Group administrator
Tue 22 May 2018 06:11:50 PM UTC, comment #7: 

Implemented in git, commits f304b9ae and 5d02ee64.  Main patch by Marco Diego AurĂ©lio Mesquita.

Benno Schulenberg <bens>
Group administrator
Sun 20 May 2018 05:49:12 PM UTC, comment #6: 

Bug #53041 was a (partial) duplicate of this one.

Benno Schulenberg <bens>
Group administrator
Thu 17 May 2018 06:50:44 PM UTC, comment #5: 

The implementation of filtering via the ^R^X route is in progress:
http://lists.gnu.org/archive/html/nano-devel/2018-05/msg00063.html.

Benno Schulenberg <bens>
Group administrator
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>
Group 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>
Group 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).

Anonymous
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...

Anonymous

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-02 bens Open/ClosedOpen Closed
    2018-05-22 bens StatusIn Progress Fixed
    2018-05-17 bens StatusNone In Progress
        Assigned toNone bens
        Carbon-Copy- Added brand
        Carbon-Copy- Added lucabertoni
    2018-02-18 bens Severity3 - Normal 1 - Wish
    2017-04-02 bens StatusWont Fix None
        Summary[Request] add support for filtering text through pipe [Request] add support for feeding text through a filter program
    2014-06-13 bens StatusNone 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.13-758e.
    Corresponding source code