Code Monkey home page Code Monkey logo

ferret's Introduction

Ferret

Ferret improves Vim's multi-file search in four ways:

Powerful multi-file search

Ferret provides an :Ack command for searching across multiple files using The Silver Searcher, Ack, or Grep. Support for passing options through to the underlying search command exists, along with the ability to use full regular expression syntax without doing special escaping.

Shortcut mappings are provided to start an :Ack search (<leader>a) or to search for the word currently under the cursor (<leader>s).

Results are normally displayed in the quickfix window, but Ferret also provides a :Lack command that behaves like :Ack but uses the location-list instead, and a <leader>l mapping as a shortcut to :Lack.

Finally, Ferret offers integration with dispatch.vim, which enables asynchronous searching despite the fact that Vim itself is single-threaded.

Streamlined multi-file replace

The companion to :Ack is :Acks (mnemonic: "Ack substitute", accessible via shortcut <leader>r), which allows you to run a multi-file replace across all the files placed in the quickfix window by a previous invocation of :Ack.

Quickfix listing enhancements

The quickfix listing itself is enhanced with settings to improve its usability, and natural mappings that allow quick removal of items from the list (for example, you can reduce clutter in the listing by removing lines that you don't intend to make changes to).

Additionally, Vim's :cn, :cp, :cnf and :cpf commands are tweaked to make it easier to immediately identify matches by centering them within the viewport.

Easy operations on files in the quickfix listing

Finally, Ferret provides a :Qargs command that puts the files currently in the quickfix listing into the :args list, where they can be operated on in bulk via the :argdo command. This is what's used under the covers by :Acks to do its work.


For more information, see the documentation.

ferret's People

Contributors

wincent avatar

Watchers

 avatar  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.