waf / CSharpRepl

A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.
https://fuqua.io/CSharpRepl/
Mozilla Public License 2.0
2.93k stars 113 forks source link

add `help`, `clear` and `exit` to completion #262

Closed sorousherafat closed 1 year ago

sorousherafat commented 1 year ago

Feature Description

csharprepl supports built-in commands like help, clear and exit. help and clear are mentioned in the start prompt but some users may not even know that csharprepl supports clear for clearing the terminal. on the other hand, adding these three commands to completion will probably result in better user experience.

waf commented 1 year ago

Hi, thanks for the issue! I'd rather keep completion to be only valid C# for now, rather than mixing csharprepl commands + C# code in the completion window. But I agree that clear is not discoverable at all. Thanks for raising that.

For now, I've helped increase the discoverability of the clear command: image

You can update to the latest csharprepl by running dotnet tool update -g csharprepl

Thanks!