Code Monkey home page Code Monkey logo

jrep's People

Contributors

scripter17 avatar

Watchers

 avatar  avatar

jrep's Issues

Clean up the `--name-regex`-esque options

Currently there are 18 of these and 6 more in-the-works for a total of 24

I'm not sure if merging them into a --limit-style option is a good idea. Actually scratch that I'm sure it isn't

JSON output for use with jq/jello

I'm not entirely sure how to format the JSON

Maybe something like this?

{
	"directories":[
		{
			"name":"a",
			"directories":[],
			"files":[
				{
					"name":"aaa.py",
					"matches":[
						{
							"match":"abcdefg",
							"span":[0,6]
						}
					]
				}
			]
		},
		{
			"name":"b",
			"directories":[]
		}
	],
	"files":[]
}

Obviously with all the runData info

I doubt this'll work with --order ending with anything other than print-dir print-name print-matches or --depth-first. It could probably be done with considerable effort but the output would be exactly the same

Better handling of UTF-16 stuff and Unicode surrogate pairs

Attempting to do str.encode on a string with Unicode surrogate pairs (???) causes problems so for now I'm doing string.encode(errors="ignore")

Todo:

  • Learn what the h*ck a Unicode surrogate pair is
  • Give the user options to handle it better
  • Find a way to make str.encode not throw errors

`--no-duplicates` for file/dir names

With --name-sub and --dir-name-sub, it's possible to have multiple of the same filename in a directory

Maybe change --no-duplicates to a --limit-style option with a default option of tmt?

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.