Joshua Clayton
8d5e13c89e
Use sensible defaults for the CLI
...
Why?
====
By default, people want to see an actionable, comprehensive list without
having to pass any flags into the program.
Previously, to see everything with high likelihood you'd need to provide
`-a --likelihood high`. This commit changes the program so that's the default.
It also introduces a `--all-likelihoods` flag (shorthand is `-a`) to see
everything, so if you want to opt into see it, you can. Finally, this
changes `-a` (to see everything) to `-s` (to see only single
occurrences, which was the previous default).
2016-05-11 11:31:52 -04:00
Joshua Clayton
56c083097d
Fix indentation
2016-05-11 10:46:18 -04:00
Joshua Clayton
9407b91b3b
Update help docs
2016-05-11 09:22:29 -04:00
Joshua Clayton
11d35a6263
Hook into interrupt to trigger other behavior
...
Why?
====
Unused hides the cursor and potentially does other things to the window that
may leave it in an odd state. This introduces a hook to run any state
cleanup, including re-enabling the cursor, when a user sends a SIGINT to
the program.
2016-05-10 05:35:28 -04:00
Joshua Clayton
ba8159f08d
Ignore file and directory patterns
2016-05-07 16:28:41 -04:00
Joshua Clayton
ee1c4cd0f6
Add flag to filter by likelihood
2016-05-07 16:25:54 -04:00
Joshua Clayton
cb6eb12af4
Add switch to display all term results
2016-05-07 16:18:49 -04:00
Joshua Clayton
4fc984ce75
Fully extract parseSearchRunner
2016-05-07 16:07:43 -04:00
Joshua Clayton
9436f733b2
Extract option filtering to separate function
2016-05-07 15:39:09 -04:00
Joshua Clayton
1f5db58f5e
Move additional functionality out of Types and into separate modules
2016-05-07 06:10:15 -04:00
Joshua Clayton
e34f6951f1
Add optparse-applicative for flags
...
This introduces the optparse-applicative library for parsing out any
subcommands/flags/args. Currently only supports --no-progress (-P).
2016-05-05 17:53:53 -04:00
Joshua Clayton
6781ba1f5b
Move resetScreen out of case statement
2016-05-04 23:01:00 -04:00
Joshua Clayton
50399ec4b1
Add number of files and number of occurrences
2016-05-04 20:51:41 -04:00
Joshua Clayton
961585ce6e
Follow naming conventions for record fields
2016-05-03 22:13:01 -04:00
Joshua Clayton
67e52ed017
Initial pass at RemovalLikelihood calculator
2016-05-03 21:41:03 -04:00
Joshua Clayton
02f90fdb7d
Left-align and pad widths for term column
2016-05-03 09:59:06 -04:00
Joshua Clayton
49b7b65b17
Improve output by grouping by directory structure
2016-05-03 05:22:50 -04:00
Joshua Clayton
f5394e4b36
Clear screen before displaying matches
2016-05-03 05:13:58 -04:00
Joshua Clayton
3ddf0631a9
Display progress bar when running ag
2016-05-02 06:05:31 -04:00
Joshua Clayton
dcfaa9355e
Refactor in preparation for progress bar
2016-05-02 06:03:26 -04:00
Joshua Clayton
6ee18cf1c9
Extract error printing to separate function
2016-05-01 06:20:47 -04:00
Joshua Clayton
8f5446a414
Move parsing response entirely to Parser
2016-05-01 05:40:30 -04:00
Joshua Clayton
447943f401
Extract aggregate data structure
2016-04-30 09:57:46 -04:00
Joshua Clayton
9f006ffd3c
Filter results to matches with one file and one occurrence
2016-04-30 05:49:04 -04:00
Joshua Clayton
2d4939cb47
Reorganize data structure to handle parsing errors
...
This extracts the previous data structure from groupBy into an actual
Data.Map.Strict String [TermMatch], as well as another type
(ParseResponse) capturing invalid and valid responses.
2016-04-29 05:28:03 -04:00
Joshua Clayton
ed72d2405a
Initial pass at adding color to output
2016-04-29 04:46:31 -04:00
Joshua Clayton
a5230f163e
Parse results into matches
2016-04-28 22:21:18 -04:00
Joshua Clayton
1249a0e823
Search for terms from a tags file
...
This returns a list of each match, files, and counts based on the
current directory.
2016-04-28 17:42:58 -04:00
Joshua Clayton
8931c08f93
Initial
2016-04-28 05:37:06 -04:00