1. 15
    1. 4

      I always wonder if there is a better way to indicate grouping than using parentheses, which is rather one dimensional and easy to lose track of even with editor’s assists. Ideally the textual representation can remain using parentheses, yet the editor could potentially use a better on-screen representation. It’s easier with indentation only highlighting, for which the editor can draw a line indicating the indentation level.

      There are rainbow-delimiters and the likes, but it just becomes angry fruit salad once the nesting level increases. Does anybody tried dynamic background colors, so different background colors (maybe differ in saturation only) show different levels of parentheses group?

      1. 3

        Full-fledged structural editors do this. The best I know of is Fructure, which works on Racket: https://github.com/disconcision/fructure

        It has a very sophisticated visualization system for code structure. I haven’t used it myself since I don’t write much Racket but I did try my hand at building my own for Fennel: https://git.sr.ht/~technomancy/anarres My visualization isn’t nearly as nice as Fructure’s tho, and I ended up putting the GUI implementation on hold in order to focus on the core editing flow and falling back to a textual representation for now (in the term-only branch). I do hope to revisit the visualization question in the future once I get the basics working as it’s a fascinating problem that I feel is largely overlooked.

        1. 2

          Looking forward to see the terminal version in action. The demo you did at fennel-conf was really cool

      2. 1

        I’ve tried a few experiments, from a touchscreen direct manipulation paradigm, that might be at least visually interesting:

        • ecola alternates red and blue enclosures, uses hierarchical zoom
        • tiramisu is a more typical tree structure, alternating background layers (though in the end this is just visual noise)
        • tiramisu5 is more visually clean, focuses on collapsing to S-exp form, retains the “drag to add sibling/ancestor” mechanic: brief video; live (note that there’s no implementation of editing text, and no visual for drag handles)
        • In the Round is radial tree that’s a bit out there…
    2. 2

      While neat, this project is no longer maintained and has been archived by the owner.

      1. 5

        There are maintained ports for Vim, NeoVim, Kaokune, Emacs (and Doom Emacs) - I’m also not convinced it won’t work just for being archived.

    3. 1

      I absolutely love this, and will be making a point try it out when things settle down. I’ve always struggled with making the jump to Paredit / Lispyville, partly because of the complexity of making evil’s keybinds play nice with them, but mostly because I just have Lisp to be writing haven’t put aside time to learn to manage these systems.

      This documentation is amazing, and reminds me of the homepage for Elastic Tabstops in that it’s similarly (if not so formally) clear. Maybe in another world these ideas would be available for more than just those with the interest and skill to seek out and install (or impliment) these unique approaches.

Stories with similar links:

  1. Parinfer - simpler Lisp editing via jturner 8 years ago | 48 points | 6 comments