Skip to content

replace textinput with tui-textarea #1662

Closed
@pm100

Description

@pm100

The popup used for text input is fine in most cases but generates many requests for features in the multiline case, particularly the commit message.

There are several open requests on this. Rather than a piecemeal approach of adding bits and pieces I think it would be better to use a plugin component that offers

  • line split and join
  • undo
  • full multiline edit
  • cut / paste
  • .....

tui-textarea https://github.com/rhysd/tui-textarea is just such a component

I have done an experiment to see how easy it would be to drop in. Its pretty straightforward. Took a couple of hours

unless you think this is a completely stupid idea I will give it a less hacky go. You could then clone if from my repo and see what you think. The UI looks the same, its just that the multiline textinput supports full edit.

I also have a couple of points to discuss about it in terms of what keys should do what. But I want to see if you think this is at least a possibility before engaging is further debate.

PS - are you aware of the whole ratatui thing. https://github.com/tui-rs-revival/ratatui

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions