19 Commits

Author SHA1 Message Date
Simon Willison
bbbf5cf681 -m shortcut for --markdown, refs #42 2025-02-18 21:17:12 -08:00
Simon Willison
b62c447787 Rename --code to --markdown, closes #42 2025-02-18 21:15:11 -08:00
Simon Willison
cfc9fa584f --code output to produce triple backtick markdown, closes #42 2025-02-18 21:09:48 -08:00
Ankit Shankar
630bbf9516 Add support for reading paths from stdin (#44)
* Add support for reading paths from stdin

Fixes #43

* Refactor tests a bit

---------

Co-authored-by: Simon Willison <swillison@gmail.com>
2025-02-18 20:53:17 -08:00
Nick Powell
acbe107f49 --ignore patterns now include directory names unless --ignore-files-only (#30)
* Option to --include-directories otherwise ignored by an ignore pattern
* --include-directories renamed to --ignore-files-only

Refs https://github.com/simonw/files-to-prompt/pull/30/#issuecomment-2658177542

---------

Co-authored-by: Simon Willison <swillison@gmail.com>
2025-02-13 19:28:32 -08:00
Simon Willison
fb62524edc Applied Black, refs #36 2025-02-13 19:12:57 -08:00
David Jarman
645cf7ae2f Add UTF-8 encoding to output file handling (#36) 2025-02-13 19:12:37 -08:00
Dan Clayton
bc05005e3b Add --line-numbers flag (#38)
* add --line-numbers flag
* -n/--line-numbers in README, refs #38

Co-authored-by: Simon Willison <swillison@gmail.com>
2025-02-13 19:10:13 -08:00
Simon Willison
8c89fe24a8 Fixed formatting in --help output 2025-02-13 19:09:52 -08:00
Simon Willison
ae06f2039f -e/--extension feature, closes #28 2024-10-16 16:23:09 -07:00
Simon Willison
243799505d -o/--output option, closes #9 2024-09-08 22:43:42 -07:00
Simon Willison
d016523c22 Switch to more recent Claude XML format
Refs #15

Refs https://github.com/simonw/files-to-prompt/pull/16#discussion_r1744298522
2024-09-08 22:33:07 -07:00
Lex Herbert
db4a164fec Add --cxml flag (#16)
Refs #15

---------

Co-authored-by: Simon Willison <swillison@gmail.com>
2024-09-08 22:19:59 -07:00
Simon Willison
4810ef7880 Ran ruff . --fix 2024-04-08 20:48:33 -07:00
Simon Willison
84df8a64ae Warn and continue on binary files, closes #5 2024-04-07 23:03:45 -07:00
Simon Willison
4407ac519b Rename --ignore-patterns to --ignore, refs #1
I did this by hand, did not use Claude for once.
2024-04-07 22:33:11 -07:00
Dipam Vasani
f8af0fad7f Add ability to ignore patterns directly from cli (#4)
* Add ability to ignore patterns directly from cli
* Updated for latest changes to main

---------

Co-authored-by: Simon Willison <swillison@gmail.com>
2024-04-07 22:27:24 -07:00
Simon Willison
cc8473b13e Handle multiple files and paths, closes #2 2024-04-07 22:02:13 -07:00
Simon Willison
41201001ee Initial prototype 2024-03-22 08:43:07 -07:00