danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
18.66k stars 1.91k forks source link

[Feature request]: tab completion for patterns #659

Open hugobloem opened 1 week ago

hugobloem commented 1 week ago

What do you need?

It is quite difficult to remember the exact spelling of the patterns, especially when getting started with pattern. It could be nice to add tab completion to the fabric cli so we can more easily use patterns instead of being halfway through a query and realising you need to run fabric -l to find the exact spelling of a pattern.

ndit-dev commented 6 days ago

At least on my setup all patterns are added as aliases. So if you don't run fabric -p extract_wisdom but instead just try to type extract_ and then tab image

You wont be able to add extra settings such as stream, but you can at least tab to find your pattern, then just step back you cursor and add fabric -sp in front if you want to stream the result for example