Skip to content

(RSendMotion does not support text objects (ip, ap), two-character motions (ftFT, etc.), or motion going to start of line (0) #547

@PeterPavicic

Description

@PeterPavicic

Description

<localleader>m, i.e. RSendMotion followed by a text object like ip or ap does not send the expected region.
Instead, the prefix (i or a) is silently consumed as the motion, and the second character is used as a normal mode command, e.g. for \mip, p pastes the previous yank.
Additionally, \m0 (send to beginning of line) does not work because 0 is incorrectly read by the count-reading loop.

Both issues come from the M.motion_wrapper() implementation in lua/r/send.lua.

This can be replicated by trying to use \mip or \map in any context when R.nvim is running.

I am opening this issue to reference in the PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions