Ticket #2629 (new defect)
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
Change History
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.
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#