Skip to content

Possible solution for inner and outer local objects #302

@bigodel

Description

@bigodel

on line 2036 there is the following TODO:

lispyville/lispyville.el

Lines 2036 to 2050 in 32d6b1f

;; TODO only define in `lispyville-mode-map'
(evil-define-key nil evil-inner-text-objects-map
"a" #'lispyville-inner-atom
"l" #'lispyville-inner-list
"x" #'lispyville-inner-sexp
"f" #'lispyville-inner-function
"c" #'lispyville-inner-comment
"S" #'lispyville-inner-string)
(evil-define-key nil evil-outer-text-objects-map
"a" #'lispyville-a-atom
"l" #'lispyville-a-list
"x" #'lispyville-a-sexp
"f" #'lispyville-a-function
"c" #'lispyville-a-comment
"S" #'lispyville-a-string))

looking that the documentation for evil-surround i saw that they have a way to define local inner and outer text objects. i haven't been deep into their code, but it seems like lispyville could take a look into it to try and replicate. i opened up the issue in order to keep track of it, and i might tackle it if i manage to get some free time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions