pola-rs / polars-cli

CLI interface for running SQL queries with Polars as backend

Home Page:https://pola.rs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrate 'clear' Command to Improve readability

shaharluftig opened this issue · comments

Description

Issue:

Hello everyone! I've been thoroughly enjoying using this library, but I've encountered a minor inconvenience. Over time, the command line interface (CLI) gets cluttered with text, making it difficult to maintain a clean workspace.

Proposal:

I suggest incorporating a 'clear' keyword that users can employ to efficiently clear the CLI text, ensuring a more streamlined and user-friendly experience. This addition would significantly enhance the overall usability of the library.

Benefits:

Improved CLI readability: Users can easily maintain a clean and organized CLI interface.
Enhanced user experience: The 'clear' command provides a convenient solution to manage and declutter the CLI space.
Implementation:
Consider adding a 'clear' command that, when invoked, resets the CLI, providing users with a blank slate to continue their work.

Additional Notes:

This feature would be particularly useful for long-term usage, making the library more user-friendly and efficient.

Thank you for considering this enhancement!

@shaharluftig You should be able to use Ctrl+l.

It's not really well documented, but is something that is auto configured by reedline for us.

@shaharluftig You should be able to use Ctrl+l.

It's not really well documented, but is something that is auto configured by reedline for us.

I see, didnt know about it. Do you think it would be beneficial to add a ‘clear’ keyword to the CLI? This keyword would function similarly to ‘cls’ in Windows or ‘clear’ in Linux