Skip to content

Doesn't work from visual mode #34

@nullromo

Description

@nullromo

Trying to toggle true -> false from visual mode will result in something like iwfalserue.

In my experience, the most common use case for <C-a> is to change

foo(1);
foo(1);
foo(1);

into

foo(1);
foo(2);
foo(3);

or something similar.

To do this, I would put the cursor on the 1 in the first line, enter visual block mode, move to the 1 in the third line, and press g<C-a>.

It would be nice if there were a way to do something similar with this plugin to convert

foo(true);
foo(true);
foo(true);

into

foo(false);
foo(false);
foo(false);

However, the result I get is this:

foo(iwfalserue);
foo(iwfalserue);
foo(iwfalserue);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions