Copy Pasting a Large Amount of Text Into Lem From Terminal Lags

Open
#2,249 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
cli

Research direction

The report identifies the ncurses backend and says terminal pastes arrive as many character insert events, with processing apparently limited to 50 events per frame. Start by locating the ncurses input handling and how it processes queued insert events. Done looks like pasting roughly 1,000 lines no longer takes several minutes, while ordinary typing remains responsive.

Written by the indexing model from the issue text.

Description

Terminal

When using the ncurses backend, if you directly paste a large amount text (in my case about 1000 lines) into lem, it seems like lem can only process something 50 character insert events per frame, so it takes several minutes for all the text to show up.

Note that because this is copy pasting into the terminal, the terminal is just sending a large amount of character insert events, not any sort of special paste event afaik.

Dominant language
Common Lisp
Stars
3.1k
Forks
261
Avg merge
1d 6h
Merged PRs (30d)
133

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lem-project/lem

All issues in lem-project/lem

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.