Commit Graph

592 Commits

Author SHA1 Message Date
90c3c13a02 Moving cache logic into match, cleaner next_match() API, and slightly
less tightly coupled UTF8 API
2021-09-21 18:45:43 -07:00
9401facbe7 Minor cleanup 2021-09-19 17:55:26 -07:00
ae7f21b531 Moved capture retrieval logic into print.c 2021-09-19 17:48:00 -07:00
5fa09eb636 Better non-verbose JSON output 2021-09-19 17:38:18 -07:00
09435a8b15 Slight tweak to JSON output 2021-09-19 17:33:40 -07:00
42c75cfd73 Fix for single-arg when it's a directory 2021-09-19 17:08:51 -07:00
393778ffab Shortening \033[0m -> \033[m 2021-09-07 13:39:11 -07:00
f3eb2e99cd Fixes for inplace modifications 2021-09-07 13:38:57 -07:00
58fef531eb Changed non-tty output to BARE instead of PLAIN 2021-09-04 14:09:20 -07:00
900466c483 Tests should use local bp, not installed version 2021-09-04 14:08:27 -07:00
3c51755050 Fixing memory leak 2021-09-04 14:02:43 -07:00
615d94ba68 Improved formatting options 2021-09-02 18:07:18 -07:00
1cf17cf95c Optimization for parens pattern 2021-08-29 13:44:43 -07:00
f8860c385e Style change: added cino=:0 (i.e. case statements on same indentation as
switch). Also fixed issue where $$ would fail to match with trailing
newline on file
2021-08-28 16:05:30 -07:00
d44806f746 Moved tutorial info up 2021-08-28 14:27:27 -07:00
16bf40bd64 Added tests/tutorial 2021-08-28 14:26:32 -07:00
9db5e91781 Only print filenames when there are multiple files 2021-08-25 13:15:05 -07:00
d7e18968bb Bugfix for | not working at start of file 2021-08-25 13:13:47 -07:00
5eda0d4b88 Only print all input if input is stdin *and* context is ALL 2021-08-23 22:33:58 -07:00
9d0db7e2a3 Instead of always printing all context with -r flag, always print all
context with handling piped in input
2021-08-23 22:29:11 -07:00
7e04f59554 Add support for {strings} 2021-08-23 12:43:18 -07:00
2f9b0ce941 Always print file when context is ALL 2021-08-23 12:42:57 -07:00
07c628471c Changed it so --replace makes context default to all, but --inplace
doesn't, so it can still be easily used as a filter.
2021-08-06 18:11:29 -07:00
7803453977 Inplace modifying should set context to all 2021-08-06 18:06:11 -07:00
887b1dc7f2 Properly set modifying_file/backup_file in case of errors 2021-08-06 17:58:44 -07:00
ac2e8f5a15 Improved, cleaner/faster/more flexible return value checks 2021-08-06 17:52:20 -07:00
7456a21ddb Use git ls-files -z instead of newline-separated 2021-08-06 13:26:05 -07:00
567045c621 Reduced code duplication on inplace mode 2021-08-06 13:15:27 -07:00
5eb905b01f Deprecated --confirm flag 2021-08-06 12:50:57 -07:00
3d0c07a0b8 Fix memory leak 2021-08-02 12:55:14 -07:00
1eab8af155 Bugfix for postfix operators 2021-08-02 12:52:58 -07:00
70f7f8c495 Added -B and -A options to match grep 2021-08-02 12:25:52 -07:00
db3c88d16b Context flag: -c -> -C (to match grep), and confirm flag: -C -> -c 2021-08-02 11:45:01 -07:00
53ccb56542 Updated perf notes 2021-08-01 22:06:45 -07:00
c608abae65 Micro optimization 2021-08-01 22:06:33 -07:00
1a84ddbaa9 Fixed layout links 2021-08-01 21:42:04 -07:00
0f7a774712 Markdown test 2021-08-01 21:39:21 -07:00
07497c020b Added code layout 2021-08-01 21:38:20 -07:00
41bd2ce6fa Renamed matchviz -> explain 2021-08-01 21:30:41 -07:00
18c2f86534 Tidying up 2021-08-01 21:03:35 -07:00
80a087e454 Minor cleanup 2021-08-01 19:01:19 -07:00
860a03d29c File refactor for cleaner cleanup with allocated/mmapped storage, also a
bit of general cleanup
2021-08-01 16:06:10 -07:00
0b2de4721f Moved caching code onto the file, which fixed an issue with file slicing
having stale cache values.
2021-08-01 15:36:53 -07:00
8268e67875 Bugfix for replacing @0 2021-08-01 13:45:51 -07:00
d3c1526f71 Cleanup of space/line skipping code 2021-08-01 13:41:13 -07:00
994c9c973e Changed how definitions work 2021-08-01 12:40:27 -07:00
cb9b4c40d8 Added -w/--word flag 2021-07-30 20:46:50 -07:00
9c05f880b0 Added | as alias for \b 2021-07-30 20:23:18 -07:00
a6d6e39f3f Bugfix for trailing line numbers on plain output 2021-07-30 20:16:55 -07:00
ba6ee18ded Added strict mode for upto operator: ..=Abc 2021-07-30 19:24:35 -07:00