PBTree is like pbcopy
, but supercharged. ๐
- ๐ฅ๏ธ Interactive file navigation
- ๐ Quick search
- โ Multi-select files and folders
- ๐ Copy selected content to clipboard as XML
PBTree generates XML output, making it ideal for crafting prompts for Claude AI! Claude loves structured data in XML tags. ๐คโค๏ธ
-
Clone the repo:
git clone https://github.com/patricktrainer/pbtree.git cd pbtree
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Link the package globally:
npm link
Alternatively, you can use the rebuild script to do all of the above:
npm run rebuild
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.
To run PBTree in development mode:
npm run dev
This uses ts-node
to run the TypeScript files directly.
- react and ink for the CLI interface
- clipboardy for clipboard operations
Check package.json
for the full list of dependencies and their versions.
Contributions welcome! ๐
- Fork the repo
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
๐ช Enjoy!