Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

文件提示 0.6

Posted on 2025-02-19

文件提示 0.6

我的 CLI 工具的新版本,用于将整个代码目录转换为单个提示,准备通过管道或粘贴到 LLM 中。

以下是完整的发行说明:

  • 新的-m/--markdown选项用于将结果作为 Markdown 输出,每个文件都位于受隔离的代码块中。第42章
  • 支持从标准输入读取文件列表。谢谢,安基特·香卡。第44章
    以下是仅处理最近一天内修改的文件的方法:
     find . -mtime -1 | files-to-prompt

    您还可以使用-0/--null标志来接受由空分隔符分隔的文件路径列表,这对于处理其中包含空格的文件名非常有用:

     find . -name "*.txt" -print0 | files-to-prompt -0

我还可以修复有关当前位于 PR 中的嵌套.gitignore文件的已报告错误。我正在等待其他人确认它的行为符合他们的预期。我在此问题评论中留下了详细信息,但简短的版本是,您可以使用以下uvx咒语尝试 PR 中的版本:

 uvx --with git+https://github.com/simonw/files-to-prompt@nested-gitignore files-to-prompt

标签: uv 、项目、带注释的发行说明、 llms

原文: https://simonwillison.net/2025/Feb/19/files-to-prompt/#atom-everything

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Bits about Money
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • eighty twenty
  • Elad Gil
  • Ellie Huxtable
  • Ethan Dalool
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • Henrique Dias
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Liz Danzico
  • Lou Plummer
  • Luke Wroblewski
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mostly metrics
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Rohit Patel
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Steve Blank
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • Wes Kao
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme