-
Notifications
You must be signed in to change notification settings - Fork 6
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
Possible UX improvement: Add option to make smart_up
/smart_down
take indentation into account
#5
Comments
The full bindings are here:
The version of smart_down I originally posted has |
Hello, thanks for your interest. Maybe I don't feel this need because after this commands I mostly use line or block selection or deletion. And if you want to edit something then it's just Ctrl+Right. What's your use case? |
I mostly use it for quick navigation – move a few blocks up/down, edit something, move back down. |
It's |
Hi! I've been using Reform for a few days, and I like it! But I think
smart_up
/smart_down
's behavior could be slightly improved.Currently, this happens:
(the
|
represents the cursor, the arrow shows how it moved aftersmart_down
)But I'd prefer it to work like this:
To put that in words,
smart_down
moves the cursor to the very beginning of the line ("hardbol"), but when I'm moving through blocks, I would usually prefer it to land where the actual text starts, right beforeboo
– basically, take indentation into account. This could be done by an argument:or something similar.
My current workaround (using
chain
fromChain of Command
to sequence commands) is replacing:with:
This automatically places the cursor at indent after
smart_up
makes the jump.However, having an option to customize this behavior without resorting to hacks would be nice! Also, I think a better experience out of the box would be to respect the indentation by default, and possibly have a "jump_to_hardbol" option. Let me know what you think!
The text was updated successfully, but these errors were encountered: