Skip to content

Grow Selection Could Consider "Form Pairs" in :let Bindings #2988

@jramosg

Description

@jramosg

In Cursive the Grow Selection command is aware of "form pairs". So in a let binding for instance it first selects the closest form, then the other form in the binding pair. However, in :let vectors within for loops, Calva does not exhibit this behavior, jumping directly to the whole vector instead.

Example:

(for [x [1 2]
      :let [a |b
            c d]]
  [a c])

Grow Selection 1: Selects the value form b (assuming cursor at |)

Grow Selection 2: Should select the binding pair a b, but currently skips to the whole :let vector.

Grow Selection 3: Selects the whole :let vector [a b c d]

Grow Selection 4: Selects the whole for form.

Calva should implement form pairs selection for :let bindings, consistent with let behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions