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

HTML text objects are overwritten by text objects for link texts #368

Closed
A-dot-S-dot opened this issue Jun 24, 2024 · 3 comments
Closed

Comments

@A-dot-S-dot
Copy link

Thank you for your Plugin I enjoy it very much.

I'd like to use the built in text object it and at for hmtl tags. However, these are overwritten by wiki-at and wiki-it. Could you add a variable to disable them gloabally or map them to another binding?

Thanks in advance!

@lervag
Copy link
Owner

lervag commented Jun 24, 2024

Thank you for your Plugin I enjoy it very much.

Thanks, glad to hear you enjoy it!

I'd like to use the built in text object it and at for hmtl tags. However, these are overwritten by wiki-at and wiki-it. Could you add a variable to disable them gloabally or map them to another binding?

You can disable or change it like this:

" disable
let g:wiki_mappings_local = {
      \ 'o_<plug>(wiki-it)': '',
      \ 'x_<plug>(wiki-it)': '',
      \ 'o_<plug>(wiki-at)': '',
      \ 'x_<plug>(wiki-at)': '',
      \}

" use different map (e.g. d for description)
let g:wiki_mappings_local = {
      \ 'o_<plug>(wiki-it)': 'id',
      \ 'x_<plug>(wiki-it)': 'id',
      \ 'o_<plug>(wiki-at)': 'ad',
      \ 'x_<plug>(wiki-at)': 'ad',
      \}

See :help wiki_mappings_local.

@lervag lervag closed this as completed Jun 24, 2024
@A-dot-S-dot
Copy link
Author

Thank you very much!

@lervag
Copy link
Owner

lervag commented Jun 26, 2024

My pleasure :)

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

2 participants