Giter Site home page Giter Site logo

Comments (3)

mickeynp avatar mickeynp commented on June 20, 2024

There's no such thing as an agnostic language. That materially cannot exist as each grammar is its own, with its own set of rules and idiosyncrasies. Therefore, Combobulate can't do it either. Sure, you can probably wing it, but it will not work well.

Finding siblings with treesit-node-next-sibling will not help you write sensible sibling navigation code (and by extension, make dragging work, though that uses another approach that I am likely going to replace with the same system used by sibling nav.) as sibling navigation is one of the hardest things -- outside of editing -- to get right.

You'll need to load and update the rules with support for Julia, yes. The build-relationships script should do all the work for you, though you do need to add an URL to its internal dict to support it.

The production rules are required (for some things) because tree-sitter cannot tell you what the parents or children of certain nodes or fields are valid.

from combobulate.

RomeoV avatar RomeoV commented on June 20, 2024

I see, thanks for the reply. I used the helix editor for a short while, and have been missing the "select a increasingly growing region" quite a lot. I understand helix achieves this (somewhat "basic" behaviour) without specializing for every language, so I was hoping to get some basic similar functionality out of combobulate too. However, it seems combobulate is designed with more advanced functionality in mind.

I have found that the functionality I am looking for is mostly provided by plain treesit, and exposed e.g. through ts-movement, which seems to do the job for me with zero language specific customization. Still, probably combobulate can provide a much better interface if the language is supported.

from combobulate.

mickeynp avatar mickeynp commented on June 20, 2024

Expanding a region is a basic feature in Combobulate, and is easy to enable. Configure combobulate-navigation-default-nodes with the nodes you want it to expand to. You probably want most/all node types in there -- the rules file can help you get that list. See any number of example major modes.

Type M-h in Combobulate to engage expand region.

Sibling navigation has nothing to do with any of this, so if that's also something you need, it's distinct from expand region. Indeed, expand region (depending on how you choose to define it) is usually a case of picking nodes at point and expanding. It just so happens that Combobulate lets you configure which ones you want it to use.

from combobulate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.