| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Move render_filename to utils as display_path | A Farzat | 5 days | 4 | -17/+17 |
| | | |||||
| * | Add warnings for binary files | A Farzat | 5 days | 1 | -0/+8 |
| | | |||||
| * | Add human readable warnings for large files | A Farzat | 5 days | 1 | -1/+37 |
| | | |||||
| * | Make main.rs use render_path | A Farzat | 5 days | 2 | -4/+2 |
| | | |||||
| * | Test rejection of too big files | A Farzat | 5 days | 1 | -2/+63 |
| | | |||||
| * | Remove the deprecated renderer function | A Farzat | 5 days | 1 | -33/+1 |
| | | |||||
| * | Use Renderer instead of renderer in main.rs | A Farzat | 5 days | 1 | -16/+9 |
| | | |||||
| * | Migrate renderer tests to Renderer | A Farzat | 5 days | 1 | -95/+29 |
| | | |||||
| * | Test binary file rendering in Renderer | A Farzat | 5 days | 1 | -4/+28 |
| | | |||||
| * | Test single file rendering in Renderer | A Farzat | 5 days | 1 | -2/+26 |
| | | |||||
| * | Start migrating to Renderer struct | A Farzat | 5 days | 1 | -1/+26 |
| | | | | | | | The struct should gradually replace the renderer function in a more streamlined and configurable way. It writes directly to sink, and takes filepaths instead of preloaded buffers. | ||||
| * | Remove quotations around filenames | A Farzat | 5 days | 2 | -10/+19 |
| | | | | | Apparently they consume tokens and dilute attention for no benefit. | ||||
| * | Make headers more descriptive for LLMs | A Farzat | 6 days | 2 | -15/+8 |
| | | |||||
| * | Add basic CLI handling | A Farzat | 6 days | 1 | -3/+35 |
| | | |||||
| * | Improve project name derivation handling | A Farzat | 6 days | 1 | -16/+42 |
| | | |||||
| * | Default project name to the ending of root path | A Farzat | 6 days | 1 | -4/+26 |
| | | |||||
| * | Use directories from tempfile for unit testing | A Farzat | 6 days | 1 | -53/+40 |
| | | |||||
| * | Obtain absolute input path from Normalizer | A Farzat | 6 days | 2 | -17/+63 |
| | | |||||
| * | Support root and origin_base in run function | A Farzat | 6 days | 1 | -6/+43 |
| | | |||||
| * | Escape non-standard paths in the markdown file | A Farzat | 7 days | 2 | -25/+51 |
| | | |||||
| * | Use Normalizer in the CLI | A Farzat | 7 days | 1 | -7/+52 |
| | | |||||
| * | Make NormalizeError implement Error trait | A Farzat | 7 days | 1 | -5/+32 |
| | | |||||
| * | Handle basic stdin | A Farzat | 7 days | 1 | -8/+50 |
| | | |||||
| * | Start adding CLI tests | A Farzat | 7 days | 2 | -0/+46 |
| | | |||||
| * | Identify and reject binary files | A Farzat | 7 days | 1 | -11/+34 |
| | | |||||
| * | Safely escape files with backticks | A Farzat | 7 days | 1 | -1/+60 |
| | | |||||
| * | Add a renderer module to render markdown content | A Farzat | 7 days | 2 | -0/+40 |
| | | |||||
| * | Move normalizer to a child module | A Farzat | 7 days | 1 | -0/+0 |
| | | |||||
| * | Ensure unnormalized root paths can be handled | A Farzat | 7 days | 1 | -25/+29 |
| | | |||||
| * | Rename to intuitive names | A Farzat | 7 days | 1 | -59/+56 |
| | | |||||
| * | Assert absolute paths in corresponding internals | A Farzat | 7 days | 1 | -12/+43 |
| | | |||||
| * | Change normalize_path to a struct method | A Farzat | 7 days | 1 | -49/+50 |
| | | | | | | | | This means there is no need to call system API to get the CWD each time. In addition, some operations such as making root and origin absolute happen only once. The functions are also smaller and more straight-forward overall. | ||||
| * | Reject incorrect inputs which go outside fs root | A Farzat | 7 days | 1 | -9/+54 |
| | | |||||
| * | Convert to absolute paths in normalize_path | A Farzat | 7 days | 1 | -13/+73 |
| | | | | | | | | | | | This round adds tests that provide a mixture of absolute and relative paths, forcing it to standardize by making them all absolute upfront. To decouple tests from `env::current_dir()`, a specialized internal function was created for tests. The original function simply calls `env::current_dir()` and passes its return value to the hidden function, on which tests are run. | ||||
| * | Make normalize_to_root return best-effort | A Farzat | 8 days | 1 | -7/+12 |
| | | | | | | | | | | The previous verion failed if recursive `root.parent()` reached an error, but thinking about it, if the two paths have different starting points (like Windows drives), then the desirable function would be to return the absolute target path as-is. Naturally, the current funtion gives a wrong output if the supplied arguments are not absolute, but that shall be enforced using a future test. | ||||
| * | Make normalize return paths relative to root | A Farzat | 8 days | 1 | -11/+38 |
| | | | | | | This is still not complete, as it panics if target_path is not reachable from root. | ||||
| * | Add basic path normalization relative to origin | A Farzat | 9 days | 1 | -7/+28 |
| | | |||||
| * | Start by normalizing user input filenames | A Farzat | 9 days | 1 | -0/+43 |
| | | | | | | | The filenames displayed in the output markdown should be consistent, regardless of the way they were input to the program (absolute, relative). They should always be relative to the project root. | ||||
| * | Init cargo project | A Farzat | 2026-03-11 | 1 | -0/+3 |
