Comments (3)
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.
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.
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)
- combobulate-navigate-{previous,next} crash with "Unknown key in procedure" HOT 7
- query-builder status is truncated without wide window HOT 4
- C-g quits all transients, not the innermost one HOT 3
- Adding support for a new language HOT 3
- Installation error from github -- submodule permission denied HOT 2
- Is there any methods to toggle hl-line-mode when start or end combobulate-mark-node-dwim command ? HOT 1
- binding esc key ot combobulate-proffer-map failed.
- Feature Request: vanish node HOT 4
- branch checkout failure on Windows OS with NTFS HOT 3
- Status of toml support HOT 1
- combobluate-avy-jump fails with Node type error. HOT 1
- What is proper way to remove a default highlight rule? HOT 6
- Symbol's value as variable is void: _ HOT 12
- Python annotation navigation behaviors HOT 2
- Which emacs theme did you use for the screenshots ?
- Warnings from transient HOT 3
- combobulate-proffer-indentation's interactive spec is broken
- Combabulate, Selection And Speking HOT 4
- Idea: optional single-key modal operation while in carousel
- disable cycling for expand region HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combobulate.