Giter Site home page Giter Site logo

winnow.el's Introduction

winnow.el

https://melpa.org/packages/winnow-badge.svg https://circleci.com/gh/dgtized/winnow.el.svg?style=svg

Winnow - verb

  1. Blow a current of air through (grain) in order to remove the chaff.

1.1. Remove (chaff) from grain.

1.2. Remove (people or things) from a group until only the best ones are left.

1.3. Find or identify (a valuable or useful part of something)

winnow.gif

Usage

Winnow the results from compilation-mode buffers by matching or excluding lines from the results.

This was written to enhance ag.el, by filtering ag-mode results buffers by iteratively applying match and exclude, winnowing the results.

The following key bindings are enabled:

KeyFunction
xwinnow-exclude-lines
mwinnow-match-lines

The builtin highlight-regexp (M-s h r) can be used to show interesting matches in the set.

Basic workflow is to run an ag search (through say projectile-ag), and then use winnow-exclude-lines and winnow-match-lines to keep/flush matching lines in the search results. If it’s too filtered, just recompile.

Install

Using the MELPA package archive,

M-x package-install [RET] winnow [RET]

And then add the following somewhere in your emacs initialization

(add-hook 'ag-mode-hook 'winnow-mode)

Broadly it should work anything that derives from compilation-mode so

(add-hook 'compilation-mode-hook 'winnow-mode)

will enable it everywhere. That should definitely work on grep-mode, and may be applicable to other compilation modes. Unfortunately it is not applicable for rspec-mode as it currently stands.

License

Copyright © 2017-2021 Charles L.G. Comstock

Distributed under the GNU General Public License, version 3

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.