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

How to just do comment or uncomment? #410

Open
peter-lyr opened this issue Oct 30, 2023 · 0 comments
Open

How to just do comment or uncomment? #410

peter-lyr opened this issue Oct 30, 2023 · 0 comments

Comments

@peter-lyr
Copy link

  extra = {
    -- Add comment on the line above
    above = 'gcO',
    -- Add comment on the line below
    below = 'gco',
    -- Add comment at the end of line
    eol = 'gcA',
  },

For example. Just like the code above. The cursor is inside { and }. I want to just uncomment inside { and }, resulting like this:

  extra = {
    Add comment on the line above
    above = 'gcO',
    Add comment on the line below
    below = 'gco',
    Add comment at the end of line
    eol = 'gcA',
  },

But I have to uncomment one by one manually.

It's Ok if I want to comment inside { and } by typing gci}. But it's not always what I want.

Is there a mapping like gui} for example to uncomment inside { and }?

btw, I think it's good to invert the commeted and uncommeted.
for example, when typing gcii} will make the code most above to be like this:

  extra = {
    Add comment on the line above
    -- above = 'gcO',
    Add comment on the line below
    -- below = 'gco',
    Add comment at the end of line
    -- eol = 'gcA',
  },

Thx.

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

1 participant