Coder Social home page Coder Social logo

named-pipe.el's Introduction

named-pipe.el

An emacs package for piping text into emacs, optionally displaying it in a “pager” buffer.

Install

This package is not on melpa but can be installed with your favorate from-source emacs package manager (such as quelpa or straight).

(use-package named-pipe
  :straight (named-pipe :type git :host github :repo "Stebalien/named-pipe.el")
  :defer t
  :config
  ;; add the epipe script to the PATH
  (when-let* ((libfile (locate-library "named-pipe"))
              (bindir (concat (file-name-directory libfile) "bin")))
    (add-to-list 'exec-path bindir)))

While not required, I also recommend the xterm-color package. When present, this package will use it to process ANSI escape codes instead of the built-in ansi package, producing better results.

Examples

Pager

The bin/epipe script can be used as a pager to pipe text into emacs buffers. By default, the pager mode will also process ANSI escape codes so colors will be preserved (like less -R).

$ PAGER=/path/to/bin/epipe git log

Status FIFO

If you have a t0ol that can send status messages to a FIFO (commonly used with tools like i3-bar, dzen2, conky, lemonbar etc.), you can use this package to display these messages in emacs.

(named-pipe-readlines "status.fifo" (lambda (line) (message "alert: %s" line)))

named-pipe.el's People

Contributors

stebalien avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.