macvim-dev / macvim-dev/macvim

Some keypresses do not get pressed when using applescript to type out keys

Open
#744 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Input
Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

Run this from the terminal and then wait a few seconds

mvim -u NONE; sleep 2; osascript -e 'tell application "System Events" to keystroke "aThis text should get typed out in insert mode"'

and you see this as a result

screen shot 2018-09-10 at 5 13 09 pm

which clearly does not show all of the text that should get typed out

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue with the terminal command using mvim and osascript, then trace MacVim's handling of the generated keypresses. Confirm completion when the full text reaches the editor in insert mode without dropped characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, vim
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.