Pasting large amounts of text into hyper appears to be "lossy"?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: macOS Mojave 10.14.2 (18C54)
- Hyper.app version: 3.0.0-canary.1 (canary)
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/limbero/a4d0ee4a4cd6f806abaf7a2d2dd445e6
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
- The issue is reproducible in vanilla Hyper.app: I believe so but haven't fully checked.
Issue
I recently needed to move a craptonne of data from a spreadsheet into a DB. The easiest way to achieve it seemed to be downloading the sheet, opening it in an editor and using search/replace to morph each line into a SQL insert statement. Dumb? Yes. But it seemed the most straightforward way.
However, when I started postgres in hyper and pasted my 4k or so INSERT statements, it failed, and I spent a lot of time debugging my SQL until I realized that it worked just fine in iTerm or the standard macOS terminal.
What caught my eye is lines like this:
INSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINSERINS in the output from postgres, content which is not present in the file, which seems to me like something about how copy/paste works in hyper is trying to be clever in a way which is not lossless.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the large-paste scenario in Hyper 3.0.0-canary.1 on macOS with the provided .hyper.js configuration, comparing PostgreSQL output with iTerm or the standard macOS Terminal. The issue is done when large SQL pastes arrive without duplicated or missing text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, postgresql, typescript
- Domain
- cli, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100