VSCodeVim / VSCodeVim/Vim

Alfred snippet with Vim on Mac - no trigger if first line

Open
#8,814 0 comments 0 reactions 0 assignees View on GitHub

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)

  1. Open a new Vim window.
  2. Press 'i' to enter insert mode.
  3. Trigger an Alfred snippet.
  4. See the trigger text remains and is not replaced by the snippet.
  5. Press several times to move to a new line.
  6. Trigger the Alfred snippet.
  7. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.