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

the slurp work incorrectly. #3997

Closed
JaydenFish opened this issue Nov 30, 2015 · 6 comments
Closed

the slurp work incorrectly. #3997

JaydenFish opened this issue Nov 30, 2015 · 6 comments
Labels
- Forum - Evil-lisp-state stale marked as a stale issue/pr (usually by a bot)

Comments

@JaydenFish
Copy link

SPC k s work incorrectly.
like this:
a = dict[2]
a= di()ct[[2]
a=di(ct)[2]
a=di(ct [2])

There is a needless space between 'ct [2]'.
Could you please repair this mistake?

@syl20bnr
Copy link
Owner

Since you are not in a lisp dialect, can you try the hybrid version SPC k s` (this is a backtick) ?

@JaydenFish
Copy link
Author

This one is also incorrectly.
I want to use this function in C++ and python.
It's very useful.
Could please repair this mistake?

@StreakyCobra
Copy link
Contributor

[...]
Could please repair this mistake?


[...]
Could please repair this mistake?


This is probably not a mistake as SPC k is made for the lisp language, not Python, so it's at most an enhancement or a feature request, not a mistake. Also if you want to see it corrected the soonest as possible, code contribution are always welcome https://github.com/syl20bnr/evil-lisp-state

@TheBB
Copy link
Contributor

TheBB commented Feb 23, 2016

I get the expected behaviour by using sp-slurp-hybrid-sexp on SPC k s s ` s...

a = dict[2]
()a = dict[2]
(a) = dict[2]
(a = dict)[2]
(a = dict[2])

Note that you can't do SPC k ` s s s s... as that will call the hybrid function first and the regular one after that.

It sure would be nice if evil-lisp-state could "promote" the hybrid commands somehow in non-lisp modes so I didn't have to go to the backtick every time. Or perhaps enter an evil-hybrid-lisp-state on SPC k ` so I only had to use it the first time.

@syl20bnr
Copy link
Owner

It sure would be nice if evil-lisp-state could "promote" the hybrid commands somehow in non-lisp modes so I didn't have to go to the backtick every time. Or perhaps enter an evil-hybrid-lisp-state on SPC k ` so I only had to use it the first time.

Would be nice indeed.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Forum - Evil-lisp-state stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

4 participants