Commit Graph

338 Commits

Author SHA1 Message Date
655ed12128 Mostly working version 2021-05-20 15:27:24 -07:00
a0028e9605 Updated doc 2021-05-20 13:05:47 -07:00
8fcf6261bd Print errors to stderr instead of stdout 2021-05-20 13:05:15 -07:00
13e1b20f43 Removed escape sequences from string pats (use bp 'line\nl;line' or
`bp 'line\(nl)line'` or `bp 'line\\nline'` instead)
2021-05-20 13:00:52 -07:00
85dba49b54 Fixed up JSON output 2021-05-20 01:00:10 -07:00
7ac9df98dc Rebuilt 2021-05-20 00:47:13 -07:00
27f6c391c8 Added errors doc 2021-05-20 00:46:53 -07:00
d9f0a92839 Added (!) syntax for errors with proper opcode support 2021-05-20 00:33:11 -07:00
355e06a58e Added ~ and !~ operators as replacements for == and != 2021-05-19 23:41:57 -07:00
3f0ab96f7f Fix for binary file detection bug. 2021-05-19 22:16:39 -07:00
cd6b5925f1 Make the manpage before installing 2021-05-19 22:03:34 -07:00
f824d3f3e2 Added markdown manpage, which converts to roff using pandoc. 2021-05-19 22:02:45 -07:00
5d5817c2a3 Fancier string escape sequences and a bit of cleanup. 2021-05-19 21:58:54 -07:00
6ff7a67530 When printing with zero context, put each match on its own line 2021-05-19 21:12:41 -07:00
10532ca614 Cleanup 2021-05-18 10:10:35 -07:00
48cb65d2b5 True -> 1 2021-05-18 10:07:23 -07:00
f49f408e81 Be more permissive around closing quotes/parens 2021-05-16 13:25:59 -07:00
21260ec0f6 Bugfix for off-by-one error 2021-05-12 21:38:57 -07:00
6eab931c27 Moved settings into a struct 2021-05-12 20:33:27 -07:00
f6bb376d1b Added --color flag 2021-05-12 19:20:58 -07:00
1a1b3ecfee Renamed boundary->edge 2021-05-11 19:06:41 -07:00
a93220972f Overhaul of |-word boundaries (| is deprecated), performance
improvements for repeating matches, tweaks to the logic of word vs. id
2021-05-11 12:38:58 -07:00
3359a804c8 Converted ^/^^/$/$$ into pattern types instead of builtin definitions 2021-05-11 11:39:42 -07:00
b09bd4c746 Code cleanup: adding len parameter to new_pat() 2021-05-11 00:19:52 -07:00
e6aafbc1ac Updated readme 2021-05-10 23:49:17 -07:00
17dbe5d9e8 Added {word} feature and cleaned up the code some. 2021-05-10 23:46:46 -07:00
943aa0b71a Added simple test 2021-05-10 23:43:54 -07:00
529ff8fb4f Bugfix for error printing 2021-05-10 21:40:44 -07:00
cf1e5d8f9c Improved docs 2021-05-10 21:30:31 -07:00
bc0c3205ef Removed fallback where bp prompts for a pattern if none is given.
Instead print usage and exit.
2021-03-26 00:06:11 -07:00
f1499c9a63 Fix for being unable to match patterns on zero-length files (or at the
end of a file)
2021-03-15 18:29:04 -07:00
00bb63d277 Debug error 2021-03-15 18:28:55 -07:00
ced0004c87 Fix for permissions/ownership getting screwed up with inplace modifying
of files. With the new change, temporary files are no longer created on
the filesystem and the file is entirely modified inplace (with an
in-memory copy kept on hand for matching).
2021-03-03 17:24:23 -08:00
b9c2024743 Slightly cleaner flag parsing 2021-02-07 11:33:17 -08:00
16bb52a3b8 Fix to allow bp 'foo\..baz' 2021-02-07 10:54:02 -08:00
12333b2eb8 Typo 2021-01-31 17:41:07 -08:00
906b03609b Fixed bug with adding accidental extra newlines 2021-01-29 16:55:38 -08:00
51d5872c71 Pulled git code into a separate function 2021-01-26 19:02:56 -08:00
08c6debe78 Replaced returns with exit()s in main 2021-01-26 18:50:55 -08:00
453374f5dd Cleanup of return/exit paths for main() 2021-01-26 18:40:29 -08:00
f9d3ab6309 Moved /usr/local/share/man -> /usr/local/man 2021-01-26 18:12:29 -08:00
889fd70ec7 Cleaned up some error code 2021-01-26 17:58:46 -08:00
de0fec8fcb Removed check() and replaced with err()/errx() 2021-01-26 17:54:23 -08:00
d9cca805a0 Added web grammar 2021-01-26 17:21:57 -08:00
bea3e3e268 Added nodent support (\N) for replacement strings. Slightly hacky, but
it works okay.
2021-01-22 18:35:58 -08:00
c46a8227d0 Added --skip flag for skipping over patterns 2021-01-20 16:12:46 -08:00
b50ad0cad0 Fixed grammar syntax for ..% 2021-01-20 15:46:21 -08:00
b4c8a33a0c Tweaked .. syntax to make it more flexible (now: .. % skip pat) 2021-01-20 15:23:57 -08:00
3c38aef78c Bugfix for replacement coloring 2021-01-20 15:16:40 -08:00
ab275800b3 Removed outdated '?' documentation 2021-01-19 23:30:50 -08:00