34 Commits

Author SHA1 Message Date
Simon Willison
1b234ff6dc Release 0.6
Refs #42, #44
0.6
2025-02-18 21:53:30 -08:00
Simon Willison
6164edf25c Added passing test for nested .gitignore
Refs #40 - though I had hoped this test would fail.
2025-02-18 21:26:48 -08:00
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
Simon Willison
fdca384b1c Release 0.5
Refs #27, #30, #36, #38, #39
0.5
2025-02-13 20:05:15 -08:00
Simon Willison
fd928cc934 Document fnmatch pattern syntax
Closes #27
2025-02-13 19:45:28 -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
c4f6fbefd7 Don't test against Python 3.8, do test against 3.13 2025-02-13 19:27:47 -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
Jason McPheron
f7cf729bab Fix short flag for Claude XML output in README (#39) 2025-02-13 18:55:28 -08:00
Simon Willison
f9a4d8fa20 Release 0.4
Refs #28
0.4
2024-10-16 16:24:08 -07:00
Simon Willison
ae06f2039f -e/--extension feature, closes #28 2024-10-16 16:23:09 -07:00
Simon Willison
3332a864d3 Release 0.3
Refs #9, #15, #16
0.3
2024-09-08 22:44:27 -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
23450ef3b6 Link to blog post 2024-04-08 13:51:07 -07:00
Simon Willison
66b1e8864b Release 0.2.1
Refs #5
0.2.1
2024-04-07 23:04:01 -07:00
Simon Willison
84df8a64ae Warn and continue on binary files, closes #5 2024-04-07 23:03:45 -07:00
Simon Willison
b123b19ae8 Release 0.2
Refs #1, #2, #4
0.2
2024-04-07 22:37:42 -07:00
Simon Willison
df5f89e8c9 Updated README, refs #1 2024-04-07 22:35:27 -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
ebd191f77d Made combined test more thorough and easy to read, refs #2 2024-04-07 22:12:03 -07:00
Simon Willison
cc8473b13e Handle multiple files and paths, closes #2 2024-04-07 22:02:13 -07:00
Simon Willison
38b7611125 Update publish.yml to use trusted publishers 0.1 2024-03-22 08:47:40 -07:00
Simon Willison
c9c60d57a3 Drop the word "simply" 2024-03-22 08:44:31 -07:00
Simon Willison
41201001ee Initial prototype 2024-03-22 08:43:07 -07:00