Ticket #2629 (new defect)

Opened 13 years ago

Last modified 13 years ago

Allow editor to read data from stdin

Reported by: keasy Owned by:
Priority: minor Milestone: Future Releases
Component: mcedit Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

This is the same issue as #2370, only for editor. To recap, you can't do

cat file | mcedit

It is somewhat worse, as giving *any* input to mcedit's stdin will bork your terminal. Could be pretty inconvenient over remote connections, when $EDITOR or $PAGER is set to mc and some program invokes one of those. Thus, marking as defect.

Attachments

mcedit.less.sh (131 bytes) - added by keasy 13 years ago.
script to open stdin data in mcedit

Change History

comment:1 Changed 13 years ago by andrew_b

  • Component changed from mc-core to mcedit

comment:2 follow-up: ↓ 3 Changed 13 years ago by keasy

On the other hand, none of the editors I tried (nano, vi, vim, emacs), actually support that kind of usage. So that might be a bad idea.

Vim, however, provides a special script called 'vimless.sh', that does that. Adding something like that to the /usr/share/mc would be nice.

Changed 13 years ago by keasy

script to open stdin data in mcedit

comment:3 in reply to: ↑ 2 Changed 13 years ago by andrew_b

Replying to keasy:

On the other hand, none of the editors I tried (nano, vi, vim, emacs), actually support that kind of usage. So that might be a bad idea.

Vim, however, provides a special script called 'vimless.sh', that does that. Adding something like that to the /usr/share/mc would be nice.

About vim: http://groups.google.com/group/vim_use/browse_frm/thread/d57ca2ab3578a7a0#

Note: See TracTickets for help on using tickets.