Skip to content

fkr-0/epipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emacspipe - pipe stdout/stderr to emacs

https://github.com/fkr-0/epipe/blob/media/banner.png

Introduction

This package allows to pipe content from the shell to emacs buffers. Noteworthy naming-contenders were teapipe, because maybe we will try to mimic more of coreutils tee program. Or streamacs for the streaming component.

  • more commandlineflacs for epipe

Installation

Usage

With running emacs server instance, chmod +x the epipe shell-script and run it using:

echo "test" | epipe

The emacs server instance will spawn a buffer containing "test"

For the streaming version, have a process printing to stdout, e.g. tail -f. For some file /tmp/myfile, the usage is

tail -f /tmp/myfile | epipe -s

This results in:

  • an emacs network process listening on a tmp unix socket
  • the output of tail -f being continuously streamed to the socket using socat (base64 encoded).
  • emacs decoding and printing (async) to a tmp buffer

Files

├── Cask
├── emacspipe
├── emacspipe.el
├── epipe
├── Makefile
├── my-live-update-package.zip
├── README.org
├── streamacs

Testing

BATS
To run the BATS integration tests, execute the `stream-to-emacs.bats` file within the `tests` directory.
ERT
For the included emacs regression tests run them using either make test through the included Makefile or execute (ert-run-tests-batch) from within emacs.

About

pipe shell output to an emacs buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published