tree-edit
combobulate
tree-edit | combobulate | |
---|---|---|
8 | 16 | |
381 | 817 | |
- | - | |
6.5 | 9.3 | |
5 months ago | 17 days ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-edit
- tree-edit: 🌲 Structural editing in Emacs for any™ language!
-
Using_Prolog_as_the_AST
I am using this idea to build an ai-first, reactive IDE (after talking to marcelle, who's brilliant). DM me at @eating_entropy on Twitter or email me at [email protected] if you are interested.
Also it seems tree-edit implements something similar using reazon, a relational language library in elisp.
https://github.com/ethan-leba/tree-edit
- Show HN: Structural editing in Emacs with tree-sitter and relational programming
- Emacs is Not Enough
-
Best packages for structural editing?
tree-edit
-
Does anybody else find Evil very painful for working in lisp?
I use it daily, so I suppose it's useable enough; there's some weird edge cases and annoying behaviors I never bothered to solve, and the README isn't complete. Development has pretty much stalled due to some loftier projects of mine but if there's interest I could be convinced to clean it up a bit more :)
-
Tree Sitter and the Complications of Parsing Languages
you can add this one to the list ;) https://github.com/ethan-leba/tree-edit
combobulate
-
Emacs 29.1 Released
Eh, I've been looking and haven't found anything for other editors that actually tries to use TreeSitter for anything beyond highlighting. The Emacs structural editing packages are still very WIP but at least they exist.
(And also some have been based on the out of tree implementation that's been around for a while now)
Example: https://github.com/mickeynp/combobulate
-
Indent with tree-sitter is nice
Looking at https://github.com/mickeynp/combobulate/blob/master/combobulate-python.el, it at the very least delegates to python-indent-calculate-levels, so the logic is mixed.
- Paredit-like features in non-lisp modes?
-
Could you guys share your experience with different python dev set-ups (elpy, lsp, etc)? What is more simple/beginer friendly?
I went from an old config rich setups from before lsp's to lsp-mode ones etc... Right now I would say that eglot + pylsp gives you the best experience, you can use pyenv and pyvenv mode to manage your virtual environments. Now that treesitter is also being used you can try out https://github.com/mickeynp/combobulate
-
ts-movement: a package to navigate the tree-sitter syntax tree (supports multiple-cursors)
I think the following packages would fit your wishlist, as it is very similar to mine. As mentioned in the replies, there is (https://github.com/magnars/expand-region.el) and (https://github.com/mickeynp/combobulate). I regularly use (https://github.com/Fuco1/smartparens).
-
noob question about tree-sitter in the presence of lsp-mode
re syntactic text objects: https://github.com/mickeynp/combobulate
-
paredit based on treesitter
I haven't used it, but based on the description, it looks like combobulate would be an example of this:
-
Ask HN: S/W development text editor have feature colorizing every iteration?
from github README.rst "Emacs package that provides a standardized framework for manipulating and navigating your source code using tree sitter's concrete syntax tree " -> https://github.com/mickeynp/combobulate
https://www.spacemacs.org/ with https://github.com/emacs-tree-sitter/elisp-tree-sitter then write a iterator/loop query for language(s) editing per https://tree-sitter.github.io/tree-sitter/syntax-highlightin...
tad less installation heavy (sorta) but also makes use of tree-sitter syntax queries : https://www.lunarvim.org (neovim with treesitter syntax)
blockman usage examples: https://www.youtube.com/channel/UC5539gDeAdWqeXcczWuhnBA
Alternative examples / takes (per user interface):
### embedding a block of source code in a document:
** carrotsearch.gethub.io/apidocs/code-blocks
-
Commercial-Emacs
I don't know what this fork brings to table, but you could try tree-sitter today with your vanilla Emacs using a package[1] that works via dynamic module.
Personally I am more interested in getting structural selection and navigation reliably working for any language. There is also a package named combobulate[2] to help with that.
[1] https://emacs-tree-sitter.github.io/
[2] https://github.com/mickeynp/combobulate
-
tree-sitter highlighting rocks
TIL https://github.com/mickeynp/combobulate Thank you, @snafuchs !
What are some alternatives?
evil-cleverparens - Evil normal-state minor-mode for editing lisp-like languages
tree-sitter-org - Org grammar for tree-sitter
evil-textobj-tree-sitter - Tree-sitter powered textobjects for evil mode in Emacs
lispy - Short and sweet LISP editing
tree-sitter-norg - A TreeSitter parser for the Neorg File Format
tree-sitter-langs - Language bundle for Emacs's tree-sitter package
commercial-emacs - "Evil will always triumph, because good is dumb." -- Spaceballs (1987)
lispyville - lispy + evil = lispyville
neorg - Modernity meets insane extensibility. The future of organizing your life in Neovim.
orgmode - Orgmode clone written in Lua for Neovim 0.9+.
smartparens - Minor mode for Emacs that deals with parens pairs and tries to be smart about it.