Skip to content

patricktrainer/pbtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒณ PBTree

PBTree is like pbcopy, but supercharged. ๐Ÿš€

โœจ Features

  • ๐Ÿ–ฅ๏ธ Interactive file navigation
  • ๐Ÿ” Quick search
  • โœ… Multi-select files and folders
  • ๐Ÿ“‹ Copy selected content to clipboard as XML

๐ŸŽฏ Perfect for adding context to Claude

PBTree generates XML output, making it ideal for crafting prompts for Claude AI! Claude loves structured data in XML tags. ๐Ÿค–โค๏ธ

๐Ÿ› ๏ธ Build & install

  1. Clone the repo:

    git clone https://github.com/patricktrainer/pbtree.git
    cd pbtree
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Link the package globally:

    npm link

Alternatively, you can use the rebuild script to do all of the above:

npm run rebuild

๐Ÿ•น๏ธ How to use

After building and linking, simply run pbtree in your terminal:

pbtree
  • โŒจ๏ธ Type to search.
  • โฌ†๏ธ โฌ‡๏ธ Move up and down the list
  • โฌ…๏ธ โžก๏ธ Navigate back and forth between folders
  • space Select or deselect the current item (file or folder)
  • โŽ return Copy selected content to the clipboard and exit.

๐Ÿ‘จโ€๐Ÿ’ป Development

To run PBTree in development mode:

npm run dev

This uses ts-node to run the TypeScript files directly.

๐Ÿ“ฆ Dependencies

Check package.json for the full list of dependencies and their versions.

๐Ÿค Contribute

Contributions welcome! ๐ŸŽ‰

  1. Fork the repo
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

๐Ÿช‚ Enjoy!