nick42d / youtui

TUI and API for YouTube Music written in Rust
MIT License
40 stars 4 forks source link

Editing search queries? #154

Open rkratky opened 1 month ago

rkratky commented 1 month ago

Is it intentional that it's not possible to edit the input in the search field? It would be nice to be able to have normal movement using left/right cursor keys.

nick42d commented 1 month ago

G'day, it's not intentional, just my simple implementation, although Backspace should work. This is lower priority, but planned. The TextHandler trait would be the key place to implement it.

rkratky commented 1 month ago

Backspace should work

In most term. emulators, it does :+1:

This is lower priority

Ack

nick42d commented 1 month ago

Implementation note; this needs to consider unicode when moving the cursor and inserting text at the cursor