You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to have prompts from AI as I have using Copilot - start typing, and you get prompt from some sort of AI guessing what you would like to type then.
For more context, ble could provide model with:
result of ls in the current directory
recent n commands in the session
content of readme file
The text was updated successfully, but these errors were encountered:
Thank you for the suggestion. Though I don't think we should do that by default in ble.sh, it would be interesting to have an external plugin that enables it.
You can define a custom source for auto-complete by defining a function named ble/complete/auto-complete/source:NAME (where NAME should be replaced by a unique name such as pt12lol/AI). The custom source function is supposed to call an internal function ble/complete/auto-complete/enter with appropriate arguments. The usage of ble/complete/auto-complete/enter is found in the doc comment in the source. Although it is written in Japanese text, you should be able to translate it using AI. For details, you can reference existing implementations of the auto-complete sources at
Once you create the auto-complete source, you can register the source by adding the source name to the array _ble_complete_auto_source. For example,
# Append the source (this source will be attempted after the other sources)
ble/array#push _ble_complete_auto_source NAME
# Prepend the source (this source will be attempted earlier than the other sources)
ble/array#unshift _ble_complete_auto_source NAME
I would love to have prompts from AI as I have using Copilot - start typing, and you get prompt from some sort of AI guessing what you would like to type then.
For more context, ble could provide model with:
ls
in the current directoryThe text was updated successfully, but these errors were encountered: