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

r181 Ctrl key mappings no longer work like they did on r180 (r180 fresh install on new MBP) #1569

Open
4 of 7 tasks
dond1bru opened this issue Mar 8, 2025 · 3 comments
Open
4 of 7 tasks

Comments

@dond1bru
Copy link

dond1bru commented Mar 8, 2025

Steps to reproduce

Enter key strokes Ctrl+5 while in Normal or Insert mode.

Using simple macOS 15.1.1 Shortcuts App's "Text Action" mapped to Settings > Keyboard > Keyboard Shortcuts > Services > Shortcuts: ^5 (Control 5) or ^U (Control u) or Control "other key".

Using native macOS Shortcuts App for text insertion & key mapping is a low latency, low maintenance, low overhead & low cost, solution compaired to TextExpander, Espanso or other. The additional capabilities of something like Jenkins is not needed. I use this is MarkDown documents & also source code.

Expected behaviour

Clipboard text is "pasted" into the active MacVim window.

Given a patch may take a while, what other options do I have? I use this capability 100's of times a day.
Can I mod .vimrc to mitigate? (preferred solution pre patch)
Can I revert to r180 to mitigate?

Any help is much appreciated.

Version of Vim and architecture

Vim version 9.1.1128

Environment

MBP 14" M4 Nov 2024 running macOS 15.1.1
Terminal > Default macOS, Version 2.14 (455)
Value of $Term > xterm-256color
Shell > Default macOS, zsh 5.9 (arm64-apple-darwin24.0)

macOS 15.1.1 Shortcuts App's "Text" Action mapped to Settings > Keyboard > Keyboard Shortcuts > Services > Shortcuts: ^5 (Control 5) or ^U (Control u) or Control "other key".
The MdH5 (MarkDown Header 5) Shortcut (^5) simply inserts text & ToD like, "##### @ 15:13 ".
This works on this GitHub "issue" form, Apple Apps & in Terminal VIM v9.1.1128.
Other Ctrl key mapping do similar or like ^U run AppleScripts via Shortcuts App's "Run AppleScript" Action like inserting browser URL & web page title e.g., "[] [Issues · macvim-dev/macvim] [] (https://github.com/macvim-dev/ macvim/issues)."

How MacVim was installed

Nov 16, 2024 disk image https://macvim.org/ https://objects.githubusercontent.com/github-production-release-asset-2e65be/5641441/

Logs and stack traces

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed
@ychin
Copy link
Member

ychin commented Mar 11, 2025

Sorry I read this over and I am still not sure how to reproduce this. Can you share the actual Shortcut? My understanding here is you have some custom macOS Shortcuts that are bound to Ctrl-5 but it no longer works? Can you show me (using the Share command) what exactly the Shortcut is doing? Can you also show me how you are binding your shortcut for Ctrl-5?

As in, please have concrete steps that someone can follow from step 1 and have a complete reproduction, including how to create the Shortcut (e.g. how does "MdH5" work?), what exactly doesn't work, etc.

Some other questions:

  • Are you sure this is caused by r181?
  • Also, have you tried just accessing the action directly in MacVim -> Services (instead of through the Ctrl-5 hotkey)?

@ychin
Copy link
Member

ychin commented Mar 19, 2025

Hi @dond1bru do you have an update? Just want to see how I can reproduce this issue.

@ychin ychin added the Response Needed Issues / PRs marked with this will be automatically closed in 45 days unless it receives an update label Mar 19, 2025
@dond1bru
Copy link
Author

Attached are screenshots of the two Shortcuts described above.

Image Image

Control key mapping created in Shortcuts but also shows up in Settings > Keyboard > Keyboard Shortcuts > Services > Shortcuts.....
Image

@ychin ychin removed the Response Needed Issues / PRs marked with this will be automatically closed in 45 days unless it receives an update label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants