No Description

loomer 97f942a6d9 Rename FIF to "Find in Files" 7 months ago
LICENSE a13862298c Initial commit 1 year ago
README.md 6cf7e031eb Initial 1 year ago
ack e971c7c8c0 Remove execute bits 10 months ago
ackrc e971c7c8c0 Remove execute bits 10 months ago
init.lua 97f942a6d9 Rename FIF to "Find in Files" 7 months ago

README.md

Overview

This module allows searching in files via an external tool. In this case ack is used because it's cross-platform (only needs Perl) and pretty fast.

After the search is done the results will be displayed in TA via filtered list. Selecting an entry will open the file and go to the line number where the search term was found (if applicable).

The module comes with ack and an ackrc file which can be used to customize the search behavior. Note that the --nogroup flag should not be turned off.

Usage

In your init.lua or keys.lua:

tr_fif = require("tr_fif")
keys.caf = tr_fif.fif  

Requirements

Perl is needed. On Linux and OSX it should be installed already. If you're on Windows you can use a Perl distro like Strawberry Perl