Fyline: a Bash plugin for an enhanced command line writing experience

I’ve just release v1.1.0 of flyine: a Bash plugin to replace readline for a modern line editing experience: syntax highlighting, agent integration, rich prompts, tooltips, fuzzy history search, and more!. I’ve been using it everyday for the past few months and much prefer it to any Bash (or any shell) customization framework I’ve tried.

demo_overview

I used ratatui and wanted to share my approach on how I handle mouse interactions. To do anything useful with mouse input, you need to know what you’ve drawn at the current mouse location. I solve this by tagging every span with a Tag enum value flyline/src/content_builder.rs at 9342539f221feb78494a84807519a8e9698516c2 · HalFrgrd/flyline · GitHub . I write to a buffer that can maintain the tag information and then write that buffer to the frame. I also came up with a solution so that you can click on a cell and it would copy some text to your clipboard.

It would be great if ratatui had a similar tagging mechanism so that handling mouse interactions would be a lot easier. Would be interested in hearing your thoughts!