GithubHelp home page GithubHelp logo

jvgrep's Introduction

jvgrep

jvgrep is grep for japanese vimmer. you can find text from files that writen in another japanese encodings.

Download

See releases

Install

To compile jvgrep, you must install golang.

http://golang.org/

And type following

# go get github.com/mattn/jvgrep

Usage

-8               : show result as utf8 text
-F               : PATTERN is a set of newline-separated fixed strings
-G               : PATTERN is a basic regular expression (BRE)
-P               : PATTERN is a Perl regular expression
-R               : search files recursively
-S               : verbose messages
-V               : print version information and exit
--enc encodings  : encodings: comma separated
--exclude regexp : exclude files: specify as regexp
                   (default: \.git|\.svn|\.hg)
--color [=WHEN]  : always/never/auto
-r               : print relative path
-f file          : obtain pattern file
-i               : ignore case(currently fixed only)
-l               : print only names of FILEs containing matches
-n               : print line number with output lines
-o               : show only the part of a line matching PATTERN
-v               : select non-matching lines

Supported Encodings:
  ascii
  iso-2022-jp
  utf-8
  euc-jp
  sjis
  utf-16

for example,

# jvgrep 表[現示] "**/*.txt"

pattern should be specify with regexp. file can be specify wildcard. You can specify pattern with regular expression include multi-byte characters.. If you want to use own encodings for jvgrep, try to set environment variable $JVGREP_ENCODINGS to specify encodings separated with comma. If you problem about output of jvgrep (ex: output of :grep command in vim), try to set $JVGREP_OUTPUT_ENCODING to specify encoding of output.

Supported Encodings

  • iso-2022-jp
  • utf-8
  • ucs-2
  • euc-jp
  • cp932
  • utf-16 (support characters in utf-8)

Vim Enhancement

Add following to your vimrc

set grepprg=jvgrep

Authors

Yasuhiro Matsumoto

License

under the MIT License: http://mattn.mit-license.org/2013

jvgrep's People

Contributors

mattn avatar koron avatar h-east avatar hattya avatar elimisteve avatar ichizok avatar

Watchers

Kozo Nishida 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.