IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
475 stars 73 forks source link

executable suggestions for pro users #90

Open ktalamad opened 3 years ago

ktalamad commented 3 years ago

Feature description

For many CLAI skills, pro users would like a mode where a skill returns its output to a new line in the terminal, but does not send a return. This will allow the user to edit the command prior to executing it, and enables another assistant-like interaction pattern.

For example, the nlc2cmd skill, with this feature turned on, would have the option of populating the suggestion (Try >> suggestion) into the terminal window / command prompt following the return from CLAI, i.e.

/> suggestion

This would allow the user to edit the contents of the suggestion before deciding to execute or not. This is an enhancement of the current y/n/e mode that we provide.

Acceptance criteria

  1. CLAI is able to auto-populate a returned suggestion on to the prompt; and
  2. There is a mode that can be enabled for getting the above behavior.

This suggestion from David MacMillan at the ICML 2020 IBM Booth.