clashtui icon indicating copy to clipboard operation
clashtui copied to clipboard

[Feat]: terminate connection in clashtui

Open Jackhr-arch opened this issue 1 year ago • 3 comments

Please make sure you have read the above considerations and tick the confirmation box below.

  • [X] I'm sure this is a feature that has never been proposed and implemented.
  • [X] I've looked for the question I'm asking in Issue Tracker, and I didn't find the ISSUE for the same question.

Describe the solution

Search, find and terminate connection in clashtui terminal user interface

Related to #33

Jackhr-arch avatar Jun 29 '24 19:06 Jackhr-arch

Do you have any suggestions on creating a timer, or we just manually refresh the connection infos? @JohanChane

Jackhr-arch avatar Jun 30 '24 21:06 Jackhr-arch

Do you have any suggestions on creating a timer, or we just manually refresh the connection infos? @JohanChane

I think using a timer would be better. I have no recommendations for the timer.

JohanChane avatar Jul 01 '24 01:07 JohanChane

This tab is basically ok. @JohanChane I use ratatui::widgets::Table to display basic infos, r to refresh infos. One press Enter on one item turns on the extra infos dialog (Not yet done), with another Enter to terminate this connection.

NOTE: Currently, user have to do manually refresh. NOTE: This table has no style now, you can do some design.

About search function, I'm not gonna to do it now.

About other things.

  • Now terminal should be able to recover to normal even after panic.
  • Gonna to replace MsgPopup with ConfirmPopup to reduce some data usage.
  • Current get_connections in impl_conn.rs return a fixed vector, don't get confused by this.

About the timer and #36 , I won't do it before other things are done

Jackhr-arch avatar Jul 01 '24 21:07 Jackhr-arch