Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Add Cursor to the key-repeating help section in README

Open gg-martins091 opened this issue 7 months ago • 2 comments

Fixes #9500

What this PR does / why we need it: It adds the command needed to enable key-repeating in Mac for users of the Cursor IDE. As well as separating the commands for each IDE in separate code blocks instead of one code block with comments.

Which issue(s) this PR fixes #9500

gg-martins091 avatar May 14 '25 23:05 gg-martins091

Heads up that I had no success using defaults write "$(osascript -e 'id of app "Cursor"')" ApplePressAndHoldEnabled -bool false with Cursor. The problem doesn't seem to be with the interpolated id of the app but the approach in general.

What worked for me was: defaults write -app Cursor ApplePressAndHoldEnabled -bool false, so I'd consider adding this to the cursor part as a potential fallback if the first, plausibly correct way, doesn't work.

It also seems that the latter overwrites the former one. Even if I set the defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnbabled -bool true and defaults write -app Cursor ApplePressAndHoldEnabled -bool false, Cursor receives the repeated key strokes.

Cursor Version: 0.50.4 VSCode Version: 1.96.2

ykka avatar May 17 '25 11:05 ykka

Thank you for your feedback, @ykka!

Being new to OSX, I did not know about defaults' --app parameter.

I don't really know why the approach with the package domain did not work for you, but reading the man page of the defaults command, it actually seems to me that using the --app parameter should be fine and probably the default approach for us.

I'll update the README with the command you provided as the default one and keep the one I initially suggested as the fallback.

Thanks!

gg-martins091 avatar May 19 '25 23:05 gg-martins091