mirror of https://github.com/aliasrobotics/cai.git
Ignore workspaces and improve prompt after Ctrl-C
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
parent
0c2cae2066
commit
5186800397
|
|
@ -146,4 +146,7 @@ cython_debug/
|
|||
|
||||
# CAI files
|
||||
.cai/
|
||||
.vscode/
|
||||
.vscode/
|
||||
|
||||
# workspaces
|
||||
workspaces/
|
||||
|
|
@ -96,7 +96,7 @@ def get_user_input(
|
|||
|
||||
# Get user input with all features
|
||||
return prompt(
|
||||
[('class:prompt', 'CAI> ')],
|
||||
[('class:prompt', '\nCAI> ')],
|
||||
completer=command_completer,
|
||||
style=create_prompt_style(),
|
||||
history=FileHistory(str(history_file)),
|
||||
|
|
@ -110,6 +110,6 @@ def get_user_input(
|
|||
enable_suspend=True, # Allow suspending with Ctrl+Z
|
||||
enable_open_in_editor=True, # Allow editing with Ctrl+X Ctrl+E
|
||||
multiline=False, # Enable multiline input
|
||||
rprompt=get_rprompt, # Missing comma here
|
||||
rprompt=get_rprompt,
|
||||
color_depth=None, # Auto-detect color support
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue