Skip to content

dominikroblek/inprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inprompt

A tiny CLI that outputs files as Markdown-formatted code blocks. Handy for pasting source into prompts for large-language models.

Usage

Pass files or glob patterns to inprompt and pipe the result to your clipboard:

inprompt pyproject.toml '**/*.py' | pbcopy

Need a different fence delimiter? Use --fence (or -f):

inprompt -f "~~~" script.py | pbcopy

Note: Always quote glob patterns such as '**/*.py' so the shell doesn't expand them before inprompt sees them.

The | pbcopy (or equivalent) copies the formatted blocks directly to your clipboard:

  • macOS: pbcopy is built-in.

  • Linux: install xclip and define aliases for convenience:

    alias pbcopy='xclip -selection clipboard'
    alias pbpaste='xclip -selection clipboard -o'

Output format:

<filename>
````          configurable with --fence / -f
<file contents>
````

Installation

pip install inprompt

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages