-
Notifications
You must be signed in to change notification settings - Fork 7
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
A case that sideways.vim
ignores
#45
Comments
sideways.vim
ingoressideways.vim
ignores
Thanks, I'm happy to hear that. The problem with supporting this use case is that, currently, sideways needs to know how a list starts in order to decide how to work with it. For instance, if you have sideways.vim/plugin/sideways.vim Lines 39 to 42 in 19c5a21
Could the "start" be defined simply as the start of the line? Sort of. I've created a branch, variable-assignments, which implements this, with some tweaks. The problem is, it breaks a lot of other cases, for instance: foo = [
one, two,
three, four
] With the cursor on the last item, the plugin finds a valid start at the beginning of I don't have a good solution to this. The branch is there, and you could experiment with it, but I think it'll break too many other cases. I'll keep thinking about a possible solution, but the general rule of the plugin is "detect the type of list based on the start". |
Is it OK to make it only works when the beginning and ending are in the same In your case, it find a closing bracket as the ending, but it is not paired with the previous found beginning(the start of the line). Thanks. |
Hi,
Sideways is realy a great plugin that saves me a lot of time.
It works as what I expected most of the time.
But it ignores a case that happens in my daily work.
Sideways can't move
a
,b
orc
left or right.There is the same issue with
1
,2
or3
.Thanks in advance if you can consider such case!
The text was updated successfully, but these errors were encountered: