Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danlamanna/live-awk-mode
Build awk commands interactively with live result sets.
https://github.com/danlamanna/live-awk-mode
Last synced: about 2 months ago
JSON representation
Build awk commands interactively with live result sets.
- Host: GitHub
- URL: https://github.com/danlamanna/live-awk-mode
- Owner: danlamanna
- Created: 2013-08-09T03:24:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-09T16:39:31.000Z (over 11 years ago)
- Last Synced: 2024-08-05T06:06:08.946Z (5 months ago)
- Language: Emacs Lisp
- Size: 113 KB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
live-awk-mode
=============Build awk commands interactively with live result sets.
## Installation
Make sure live-awk.el is on your load path, then add a hook like so:
(add-hook 'awk-mode-hook (lambda()
(require 'live-awk)
(live-awk-mode 1)))
## Usage
Open an awk-mode buffer, and live-awk will prompt you for an input file, this is the file your awk command
will be run on.On editing the awk command, when the buffer changes and doesn't produce anything to stderr, the buffer is updated
with the latest output sent to stdout.
## The Good
It (sort of) works!
## The Bad
- It's messy.
- It requires `head` be installed on the machine.
- The results pop up in an obtrusive window.
- It uses `live-awk-max-lines` because large data sets would cause emacs to halt.
- The input file <-> awk buffer relationship is one to one.## Contribution Ideas
- Setting it up to use proper emacs processes (`start-process`)
- Possible integration with [vlfi](https://github.com/m00natic/vlfi) for large result sets.
- Cleaning up popup window, maybe using `popwin` or at least, read-only buffers.
- Perhaps highlighting in the result set of where the cursor in the `awk-mode` buffer corresponds to.