Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bracketed paste #397

Merged
merged 3 commits into from Feb 5, 2024
Merged

feat: bracketed paste #397

merged 3 commits into from Feb 5, 2024

Commits on Jan 31, 2024

  1. feat: bracketed paste

    This introduces support for input via bracketed paste, where escape
    characters in the pasted input are not interpreted.
    
    Pasted input are marked as a special field in the KeyMsg. This is
    useful because pasted input may need sanitation in individual widgets.
    knz authored and muesli committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    d1fc356 View commit details
    Browse the repository at this point in the history
  2. fix(key): support bracketed paste with short reads

    Some terminal emulators feed the bracketed paste data in multiple
    chunks, which may not be aligned on a 256 byte boundary. So it's
    possible for `input.Read` to return less than 256 bytes read
    but while there's still more data to be read to complete a bracketed
    paste input.
    knz authored and muesli committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    91f4c76 View commit details
    Browse the repository at this point in the history
  3. test: fix typo

    muesli committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    0248b32 View commit details
    Browse the repository at this point in the history