43e145a6ec
Throw error instead of panicking if regex doesn't compile
2025-04-24 22:32:34 -04:00
c887f2a0cc
Don't panic; throw error instead
2025-04-24 22:29:28 -04:00
9f6dcac314
Formatting change
2025-04-24 22:23:03 -04:00
421e9b074e
Merge pull request 'Use kleingrep's regex engine instead of stdlib' ( #1 ) from useMyEngine into master
...
Reviewed-on: #1
2025-04-24 21:20:38 -05:00
720a01140c
Updated some regexes for markdown coloring
2025-04-24 08:58:46 -04:00
9ced9ab5cb
Added underline 'color'
2025-04-24 08:58:24 -04:00
8ae28cb359
Don't define any custom colors
2025-04-24 08:47:20 -04:00
d1a9f3f726
Updated coloring for Golang
2025-04-24 08:46:50 -04:00
a1309af696
Updated some regexes
...
One of the expressions used .* to mean 'any character except newline', but since I've
enabled 'RE_SINGLE_LINE' mode, a dot matches a newline as well.
2025-04-23 16:25:48 -04:00
06fab2292c
Enable RE_SINGLE_LINE flag when compiling regex, to allow newline to be treated like any other character
2025-04-22 15:55:30 -04:00
19be04fd66
Enable multiline mode when compiling regex, because I read the whole file at once, rather than lline-by-line
2025-04-22 15:38:17 -04:00
40858a673a
Use my regex engine instead of the stdlib one
2025-04-21 23:02:20 -04:00
23e9c5d58d
Added SGR fields to the RGB struct for bold and italic;
...
allow RGB values to be -1 (default color);
allow underscore in color names
2025-04-21 11:48:56 -04:00
fd256bc7c7
Read the file from the embedded FS instead of the real FS
2025-04-21 11:48:24 -04:00
565205fb5e
Added some extended colors along with the config files
2025-04-21 11:48:07 -04:00
33a3f7c937
Added a Markdown config file
2025-04-21 11:47:43 -04:00
9fce9cf2a1
Construct config path using user's home directory, instead of trying to guess what the home directory is
2025-01-27 09:22:25 -05:00
434c804b08
Added license
v0.2.1
2025-01-11 13:11:52 -06:00
50d9126f2b
Updated config file to recognize include headers
2024-09-02 23:18:56 -04:00
6b4d131f4f
Updated README and TODO
v0.1.1
2024-08-25 15:35:48 -04:00
51b4029a79
Changed project name to include repo path
2024-08-25 15:30:40 -04:00
a1f804ac38
Used absolute import path
2024-08-25 15:30:23 -04:00
eb32ec1027
Added link to releases
2024-08-15 12:55:32 -05:00
2625239dba
Added note describing where to obtain releases
2024-08-15 12:53:24 -05:00
44de668546
Updated README
2024-08-15 12:46:01 -05:00
20cb665b33
Updated README
2024-08-15 12:45:43 -05:00
9a6fc3475a
Added comment to function
v0.1.0
2024-08-15 12:42:50 -05:00
d15a771e89
Removed references to Windows support
...
The program doesn't seem to work on Windows, and I don't have the time
right now to debug it. So, at the moment, the program isn't supported on Windows.
2024-08-15 12:37:01 -05:00
f8cb03bf88
Wrote script to create release builds
2024-08-15 12:28:12 -05:00
b65cef96c3
Replaced the relative path on Windows with an absolute path
2024-08-15 12:27:48 -05:00
b511c14cc3
Updated gitignore
2024-08-15 12:27:33 -05:00
122cd5ed04
Fixed typo
v0.0.1
2024-08-15 11:38:00 -05:00
3b8bcb4c8a
Updated README
2024-08-15 11:37:13 -05:00
e7e7a247d8
Updated README
2024-08-15 10:19:52 -05:00
eb2a0a9122
If the color config file exists, load colors from it
2024-08-15 10:19:43 -05:00
46e3e9da85
Added function to load colors from a config file
2024-08-15 10:19:21 -05:00
5bb51fb90c
Updated README
2024-08-14 12:21:58 -05:00
5da734e06d
Fixed typo
2024-08-14 12:21:21 -05:00
925ef4df4b
Updated README
2024-08-14 12:20:30 -05:00
79cd6dab8d
Cosmetic changes
2024-08-14 12:16:41 -05:00
28ee686295
Fixed typo
2024-08-14 12:15:57 -05:00
5e0bbbec4f
Added README
2024-08-14 12:15:19 -05:00
05f3ebc178
Updated TODO
2024-08-14 10:05:11 -05:00
a34f2309a8
Removed C file which was used for testing
2024-08-14 10:03:33 -05:00
66b227fb63
Defined color mappings for Go
2024-08-14 09:42:07 -05:00
373c3c3385
Added Dark Blue as a color
2024-08-14 09:41:55 -05:00
624ea575cc
Changed behavior of program when 'disable color' flag is passed.
...
Instead of printing out the contents early on (which wouldn't allow it to work
with '-n'), I skip the loop that applies colors based on the regular expressions.
2024-08-13 00:55:55 -05:00
ffae02b62b
Fixed bug where line number wasn't updated
2024-08-13 00:51:53 -05:00
81b976bcc7
Added 'line number' flag, and added check for empty file.
...
I added a 'line number' flag ('-n') which will print the line number
with padding before every line. To ensure that a line number isn't printed when
trying to 'ccat' an empty file, I added a check to see if the file is empty.
If it is, the program exits.
2024-08-13 00:49:02 -05:00
0b67cb317e
Added 'disable color' flag ('-d') to disable color printing. Also replaced os.Args with flag.Args, to retrieve command-line arguments after stripping out flags
2024-08-13 00:21:26 -05:00