-
Notifications
You must be signed in to change notification settings - Fork 5
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
i
behaves differently, when sexp is marked
#18
Comments
Yep, I agree. It's pretty confusing. I'll see what I can do about it. |
Hmm actually I don't kind of understand any longer. Could you describe your issue with some example? |
try to do following: |
Hmm.. Here's what happens for me in the first case: (do|
(something)
(here))
;; ) i m l i
(do
(something)
(here)|)
;; the (do) form is selected until |, leaving the final ")" unselected For the second case, (do|
(something)
(here))
;; ) i m l f
(do|
(something)
(here))
;; the "do" symbol is selected The first case works as I expect it to, although I don't think it's correct to leave the final As for the second case, it's a bit surprising I agree. I looked it up, and it seems this is actually a feature of lispy: http://oremacs.com/lispy/#lispy-tab . So if the region is active, it is actually supposed to jump and select the car of the form. |
In my use case I rarely use It corrects the indentation as I type, so I don't have to think about it. Do you think it could work for you as well? Here's my config for using it: https://github.com/sp3ctum/spacemacs/blob/mika/.spacemacs#L420 |
In my opinion first case should work like second case, because current
behavior is useless, at least for me.
On Sat, Mar 4, 2017, 11:29 AM Mika Vilpas ***@***.***> wrote:
In my use case I rarely use f to fix indentation. What I use instead is
https://github.com/Malabarba/aggressive-indent-mode
It corrects the indentation as I type, so I don't have to think about it.
Do you think it could work for you as well?
Here's my config for using it:
https://github.com/sp3ctum/spacemacs/blob/mika/.spacemacs#L420
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKYNxN85jJzcxyMSTSWSccY-LO-WwSgks5riSDYgaJpZM4MJuKs>
.
--
--
Best regards,
Andrew Tropin
|
It seems to me this is an issue with lispy itself. It could be rebound to another key, but it would require extra complexity.. it seems to me like lispy doesn't actually use a different keymap when the region is active. Instead each command handles the case individually and I don't see a good way to customize this. If you'd like to continue the discussion, can you clarify what it is that you're actually trying to accomplish? |
Ok. lispy seems to have a little bit strange behavior, when mark is activated. It strange, but
Probably it more intuitive behavior and in "marking mode" Sorry for confusing. |
i
have different meaning, when I mark something( and I have to usef
.It seems inconsistent. Probably it's necessary to remap
i
tolispy-flow
in "mark-mode".The text was updated successfully, but these errors were encountered: