terkelg/prompts

text editing control sequences

ryanrhee opened this issue · 0 comments

Is your feature request related to a problem?

Please describe. A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...]

my terminal is set up to be able to jump between words using option+arrows. this is done by using the “Natural Text Editing” key preset in my iTerm profile.

when typing the pull request title, graphite cli ignores these control sequences.

Describe the solution you'd like

I think the fix is to add the following control sequences: ^[ b for going back a word, ^[ f for going forward a word, hex 0x1 for going to the beginning of the line, hex 0x5 for going to the end of the line.

Describe alternatives you've considered

N/A ..?