Skip to content

Sticky Lines: Show all nested things, not just functions? #3071

Description

@nhooey

The Sticky Lines feature only picks up functions, and not nested data structures. It would be really helpful when using API frameworks like reitit to show the nesting inside of any collection (list or map).

Context

There is an official feature in JetBrains IDE called "Sticky Lines", configurable in Editor > General > Sticky Lines that can show up to 5 lines of nesting context to show the user whatever function or data structure the cursor is currently inside. There are two types of Sticky Lines that I'm calling "Arrow" and "Text".

Currently when using Cursive, the "Arrow" Sticky Line will show the control structure that you're inside.

Current behaviour

"Arrow" Sticky Line shows scraper.api > router:
Image

"Arrow" Sticky Line unchanged,
"Text" Sticky Lines show:

(def router
            :handler (fn [req]
Image

"Arrow Sticky Line shows control structure: scraper.api > router > fn > if-let doc:
Image

Expected behaviour

It would be helpful if the "Text" Sticky LInes showed the nesting of the current data structure, so it would show exactly where you are inside of a list or a map.

Activity

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

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