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

Handling % motion for jsx tags. #133

Open
sassanh opened this issue Apr 23, 2017 · 4 comments
Open

Handling % motion for jsx tags. #133

sassanh opened this issue Apr 23, 2017 · 4 comments

Comments

@sassanh
Copy link

sassanh commented Apr 23, 2017

Consider this code <div onClick={()=>{}}> if I press % in the beginning, I expect it to go to the end of line (the second >) but it goes to first >. Is it possible to handle it?

@shtanton
Copy link

Vim makes the same mistake with the it text object too as it will encompass after the => instead of the actual tag

@sassanh
Copy link
Author

sassanh commented Jul 19, 2018

@shtanton this is solved in my fork: https://github.com/sassanh/vim-jsx/

@redbmk
Copy link

redbmk commented Jul 31, 2018

This was also recently fixed in neoclide/vim-jsx-improve@5f855da. Is there an easy way to port the changes over here?

@sassanh
Copy link
Author

sassanh commented Jul 31, 2018

yeah fork this repo, apply the changes in your fork and make a pull request. But seems like the owner of this repo is not actively maintaining it so you may end up using your own fork instead of the main repo.

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

3 participants