Incorrect behaviour of cat etc text objects in evil
I am not sure if this is still the right place to report issues. Please let me know if there is some sort of issue tracker etc. used by evil. I found that on a simple html as below if cursor is placed in anchor tag and you do "cat" or "dat" or "cit" or "dit" it does not work correctly. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head> <body> <a href="http://www.google.com"> *[cursor]* Google</a> </body> </html> For example when I do cat the end result is <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head> </body> </html> while I think the expected result is <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head> <body> </body> </html> Thanks & Regards, Neeraj Sharma
On Tue, Oct 18, 2011 at 11:13:50PM -0700, Neeraj Sharma wrote:
I am not sure if this is still the right place to report issues. Please let me know if there is some sort of issue tracker etc. used by evil.
There is an issue tracker at http://bitbucket.org/lyro/evil
I found that on a simple html as below if cursor is placed in anchor tag and you do "cat" or "dat" or "cit" or "dit" it does not work correctly. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
</head> <body> <a href="http://www.google.com"> *[cursor]* Google</a> </body> </html>
You're right, the current implementation of tag text objects is a little buggy. Another problem is that "vitit" does currently not include the tags (in vim, the second 'it' adds the tags to the current selection, in evil nothing happens). I know some of those issue for some time but and there should be some code in old vim-mode solving them. But I was just too lazy to fix them and up to now nobody complained ... ;) I'll try to have a look on the tags in the next days, but right now I do not have the time to work on evil, so please be patient. Frank
participants (2)
-
Frank Fischer -
Neeraj Sharma