Commit Graph

28 Commits

Author SHA1 Message Date
Thomas Jensen
f739343c29
Move some declarations from shape.h to boxes.in.h
This resolves some otherwise circular dependencies between modules.
2023-12-09 14:54:13 +01:00
Thomas Jensen
76c4e10cd1
Add new test case for nearly blank corners and indentation removal
... including some fixes to make this work.
2023-12-09 14:54:13 +01:00
Thomas Jensen
47c32efa5f
Extract a new module 'detect' from 'remove' module
This is the "design autodetect" functionality.
2023-12-02 22:25:16 +01:00
Thomas Jensen
a759026790
Switch input structure entirely to bxstring 2023-12-02 22:25:12 +01:00
Thomas Jensen
45ce5e6762
Add more box removal test cases 2023-12-02 22:23:43 +01:00
Thomas Jensen
241459e5b4
Add ncurses library to check terminal's color support 2023-05-08 21:12:00 +02:00
Thomas Jensen
08feb7eb2c
Add long options capability to command line 2023-05-06 22:43:11 +02:00
Thomas Jensen
21a691fbd1
Use UTF-8 data read from config file #72
- shapes get additional MBCS values
- metadata is already converted for real to use bxstr_t*
2023-04-19 21:06:00 +02:00
Thomas Jensen
77d02890a7
Update copyright statements for 2023 2023-03-26 21:32:08 +02:00
Thomas Jensen
a3a37b50fc
Upgrade project license to GPL-3 #101 2022-09-18 15:00:15 +02:00
Thomas Jensen
4ced2b4715
Fix bug with :global: parent resolution 2021-06-16 20:52:36 +02:00
Thomas Jensen
00153f8068
Fix a bug where alias names could be defined twice
This could happen when configs are inherited, but aliases redefined
(a rare case so far).
2021-06-08 22:06:25 +02:00
Thomas Jensen
82bc084bad
Extract tag query functionality into its own, new 'query' module #78 2021-04-17 15:31:04 +02:00
Thomas Jensen
4d0dbcd59b
Rename global variable anz_designs to num_designs #78 2021-04-17 15:31:00 +02:00
Thomas Jensen
9d17203f50
Rename anz_lines field in input_t to num_lines #78 2021-04-17 15:30:56 +02:00
Thomas Jensen
a7227c8aa8
Extract reading of input lines into its own, new 'input' module #78 2021-04-17 15:30:51 +02:00
Thomas Jensen
fb010bc7d6
Remove lexer.l special around input_t in boxes.h #78 2021-04-17 15:30:47 +02:00
Thomas Jensen
aa36998f77
Rename ANZ_* constants in shape.h to NUM_* #78
This is more in keeping with English standards, and hopefully
improves maintainability a small bit.
2021-04-17 15:30:42 +02:00
Thomas Jensen
af6f123c99
Extract command line parsing functionality into its own, new 'cmdline' module #78
Also encapsulate this feature better, eliminate side effects,
and refactor into smaller functions.
2021-04-17 15:30:26 +02:00
Thomas Jensen
139994f97f
Add option to override line terminators #60 2021-04-11 20:34:51 +02:00
Thomas Jensen
04283eb697
Remove undocumented contentpos feature
It is no longer needed, as we have MBCS support for input now.
2021-04-11 20:34:50 +02:00
Thomas Jensen
f147c8f6fc
Enable querying of the design list by tag #23 2021-04-11 20:27:15 +02:00
Thomas Jensen
27adf5b6ba
Add argument to -q option for tag queries #23
-q is no longer undocumented,
but can officially be used in combination with -l
2021-04-06 22:13:41 +02:00
Thomas Jensen
b51724f3b1
Handle tags as a real list in memory and config file #23
The previous keyword-based syntax remains supported for
forwards compatibility reasons.
2021-04-06 22:13:40 +02:00
Thomas Jensen
44f4c8adaa
Add support of alias names for designs #30 2021-03-30 20:34:20 +02:00
Thomas Jensen
46aab3faa6
Add config file location to each design #5 2021-03-22 20:45:46 +01:00
Thomas Jensen
9315e62528
Add 'parent' keyword to parser/lexer #5
Also major parser/lexer rework to support being called multiple
times.  Switch to reentrant and parameterizable parser.
2021-03-22 20:45:45 +01:00
Thomas Jensen
425d354bc0
Move generated boxes.h to 'out/'
Also rename boxes.h.in to boxes.in.h to make file type detection easier
2021-03-22 20:45:45 +01:00