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

feature: add vi-{a/inner}-{sexp/list} command. #1607

Open
sakurawald opened this issue Nov 16, 2024 · 1 comment
Open

feature: add vi-{a/inner}-{sexp/list} command. #1607

sakurawald opened this issue Nov 16, 2024 · 1 comment

Comments

@sakurawald
Copy link
Contributor

To extends the text object in vi-mode. Like:

(define-key lem-vi-mode/binds::*inner-text-objects-keymap* "s" 'mark-sexp)
(define-key lem-vi-mode/binds::*outer-text-objects-keymap* "s" 'mark-sexp)

The mark-sexp didn't work well, its semantics is not the same as vi-a-sexp or vi-inner-sexp.
It's good to have extended text objects for vi-mode.

What i would like to configure is:

(define-key lem-vi-mode/binds::*inner-text-objects-keymap* "s" 'vi-inner-sexp)
(define-key lem-vi-mode/binds::*outer-text-objects-keymap* "s" 'vi-a-sexp)
(define-key lem-vi-mode/binds::*inner-text-objects-keymap* "l" 'vi-inner-list)
(define-key lem-vi-mode/binds::*outer-text-objects-keymap* "l" 'vi-a-list)
@sakurawald
Copy link
Contributor Author

sakurawald commented Dec 11, 2024

The list text-object is already impl as paren-text-object.
And the sexp text-object is almost the word text-object in lisp-mode. (The iskeyword vi option for lisp mode is modified to adept the lisp syntax).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants