Commit Graph

522 Commits

Author SHA1 Message Date
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
18e8a131f5 xfree() -> delete() 2021-07-30 15:06:04 -07:00
3e63da180b Cleaner checking of stdlib negative returns 2021-07-30 15:03:21 -07:00
33a63bb8d9 Improved error checking 2021-07-30 14:54:28 -07:00
3445982b16 Ergonomic improvement: xcalloc -> new(), xrealloc -> grow() 2021-07-30 14:44:00 -07:00
ad640caac6 Removing DEBUG_HEAP, just do a full cleanup all the time 2021-07-30 13:38:39 -07:00
f3954ac151 Linked list management cleanup 2021-07-30 13:36:29 -07:00
253bb1dbe1 Temporary fix for memory bug 2021-07-29 13:59:50 -07:00
ca08ebfc45 Fix for bug in char pattern start pos 2021-07-29 12:52:32 -07:00
bc813df3d7 Tweaks and optimizations 2021-07-29 12:45:37 -07:00
db969f34a9 Micro optimization (probably not necessary) 2021-07-27 00:16:15 -07:00
a5a456fab3 Caching micro-optimizations 2021-07-27 00:09:04 -07:00
f86f75d782 More caching performance tuning 2021-07-26 23:56:04 -07:00
afc07fb735 Performance improvements for caching 2021-07-26 23:29:51 -07:00
f23b9bc637 Introduced cache to greatly speed up many use cases 2021-07-26 20:59:45 -07:00
d703070980 Fixed bug where pointer wasn't getting NULLed out 2021-07-26 13:20:40 -07:00
f5b9acc05c Added const 2021-07-20 01:03:46 -07:00
8c351922f4 Error reporting bugfix 2021-07-19 20:00:35 -07:00
cc84c3d791 Made escape sequence handling stricter: no longer supporting arbitrary
characters, only special escapes like \n, hex sequences like \x0a, octal
sequences like \012, and backslashes \\
2021-07-19 19:57:59 -07:00
711fe47a7f Overhaul of word boundaries/edges. Now they use \b, which is implemented
in C, and the C code understands UTF8 id chars.
2021-07-19 19:40:43 -07:00
62e7d654bd Disable optimization when skip is non-null 2021-07-19 13:33:51 -07:00