radline icon indicating copy to clipboard operation
radline copied to clipboard

Add CancelCommand and Bind it to EscapeKey.

Open AndreVianna opened this issue 1 year ago • 3 comments

Add CancelCommand and Bind it to EscapeKey.

The cancel command finishes the edit process and resets the buffer to the initial text and state. To the response of the prompt will be the original text if there is any or empty if there was nothing.

Also added unit tests for that.

AndreVianna avatar Sep 18 '24 15:09 AndreVianna

@microsoft-github-policy-service agree

AndreVianna avatar Sep 18 '24 15:09 AndreVianna

resolves https://github.com/spectreconsole/radline/issues/9

AndreVianna avatar Sep 18 '24 15:09 AndreVianna

Sorry about the bunch of commits in the end. My VS was resetting the EOL and EOF automatically on save, So I had to change the setting to be sure the PR only shows my changes.

AndreVianna avatar Sep 18 '24 16:09 AndreVianna