Comments (1)
These are all valid points, Damien. Thank you taking the time to writing this out.
Right now, my main interest is experimenting with the ergonomics of tree-sitter-aware semantic tools. I will indeed split out (and remove) dependencies to third-party libs as I never wanted to thrust those on people; they're there right now for no other reason than to test what is possible --- combulate's just an alpha prototype, and it's got more important issues than those right now to tackle than MVC.
Namely:
- Having to build and maintain sparse trees of 'interesting' nodes. This is slow.
- Dealing with the complexities around whether point is intersecting the right node. If point is to the right of
<foo/>-!-
(for example) it's effectively outside it, and detecting adjacency without interval trees (which I've also experimented with, but are hard to keep in sync with TS without reinventing the whole thing) or another datastructure that is quick to check for adjacency due to the sluggish performance of having to walk the tree to check every time.
This is a serious issue, actually, because node spans are just the length of their syntactic unit, notwithstanding generalised ones that might span a whole semantic class of things, like a whole function or a class.
Consider:
def foo():
print("foo")
-!-
Point is at module
and not inside a function. Technically correct.... but unhelpful. You could nav backward until you encounter a non-whitespace char and then back once more --- I did this with an experimental indentation engine I wrote for Python using TS -- but that brings a whole host of awkward corner cases along with it.
-
How can I extend Emacs's builtin navigation and editing facilities in a way that is mostly transparent and builds on what's already there with additional semantic and syntactic awareness
-
Handling undo, and dealing with the tree sitter parse tree going out of sync with the buffer text during buffer changes made in elisp.
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.