Alfred snippet with Vim on Mac - no trigger if first line
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
When using Vim in a terminal or MacVim in insert mode, if I attempt to trigger an Alfred.app snippet, it will not work if the cursor is in the first column on the first line.
To Reproduce
Steps to reproduce the behaviour:
(Mac with Alfred.app installed and some snippets defined)
- Open a new Vim window.
- Press 'i' to enter insert mode.
- Trigger an Alfred snippet.
- See the trigger text remains and is not replaced by the snippet.
- Press several times to move to a new line.
- Trigger the Alfred snippet.
- See the trigger text is replaced by the snippet.
Expected behavior
Irrespective of the location of the cursor, the Alfred snippet should work.
Environment (please complete the following information):
MacBook Pro 16-inch, 2019
Processor: 2.4 GHz 8-Core Intel Core
Memory: 32 GB 2667 MHz DDR4
OS: MacOS Ventura 13.6.1
Contributor guide
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
First reproduce the issue in VS Code Vim insert mode on macOS with Alfred installed, following the listed steps and comparing the first column of the first line with later lines. Trace the Alfred snippet trigger handling and the Vim insert-mode entry point. Done means the trigger text is replaced by the snippet regardless of the cursor location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100