evil-textobj-tree-sitter
evil-snipe
Our great sponsors
evil-textobj-tree-sitter | evil-snipe | |
---|---|---|
12 | 4 | |
184 | 331 | |
- | - | |
6.6 | 3.0 | |
6 days ago | 8 months ago | |
Scheme | Emacs Lisp | |
Apache License 2.0 | MIT License |
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.
evil-textobj-tree-sitter
-
Let's write an Emacs treesitter major mode
You may be aware but the author of TFA also has a tree-sitter based minor mode called Combobulate for exactly that:
https://www.masteringemacs.org/article/combobulate-structure...
There is also evil-textobj-tree-sitter for tree-sitter based text objects for Evil mode:
https://github.com/meain/evil-textobj-tree-sitter
-
How to Get Started with Tree-Sitter
here are the structural editing tools, and they're great - https://github.com/meain/evil-textobj-tree-sitter
- evil-textobj-tree-sitter: Tree-sitter powered textobjects for evil mode in Emacs
-
Tree-sitter starter guide
evil-mode users already have options, and there seems to be a new package with general applicability too.
-
Best packages to use with evil mode .
evil-textobj-tree-sitter: provides new textobjects to evil-mode, thanks to treesitter
-
Are we living in the golden age of Emacs?
I have a package which lets you target language level constructs like functions, classes, conditionals etc for text objects using tree-sitter. This is specific to evil mode as of now, though making it work outside evil would not be that big an effort. https://github.com/meain/evil-textobj-tree-sitter
-
Tree Sitter and the Complications of Parsing Languages
Other than combobulate, these packages also use tree-sitter for changing code (not just highlighting): * https://codeberg.org/FelipeLema/tree-sitter-indent.el * https://github.com/meain/evil-textobj-tree-sitter
-
Using tree-sitter to create better snippets
this might interest you: https://github.com/meain/evil-textobj-tree-sitter
-
The State of Structural Editing in Emacs?
not lsp, treesitter is the way to go. lsp does not provide AST ATM. There is already https://github.com/meain/evil-textobj-tree-sitter . As a side note, smartparens work on non-lispy code. I am very happy with using in combination with evil-cleverparens.
evil-snipe
-
Is there an evil-mode equivalent to nvim's Leap?
I think evil-snipe is pretty similar. Maybe avy-goto-char-2 is also worth a look?
-
Best packages to use with evil mode .
evil-snipe: fast 2-char search, optionally overrides f/F and t/T to work on multiple lines
-
How to display distance number from cursor position above every character of the current line
If you want to minimize the number of times you have to press ';', the evil-snipe package lets you the same thing with a 2 character search instead of one. So with that package installed, if you have a line containing "HTTP request sent, awaiting response... 200 OK" and you want to get to the 'e' at the end of 'response', you'd press se., and your cursor goes right to it. (The package is included in Doom Emacs and is maintained by the same developer.)
-
Rebind everything
If you install evil-snipe, it'll take over the S key for quick 2-character searching. (How often does anyone use the substitute command anyway?). It also makes the T and F commands work better (You can repeat searches by just pressing the key again. So you'd avoid having to use a modifier to reach "," or ";").
What are some alternatives?
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
avy - Jump to things in Emacs tree-style
combobulate - Structured Editing and Navigation in Emacs with Tree-Sitter
meow - Yet another modal editing on Emacs / 猫态编辑
lispy - Short and sweet LISP editing
evil-man - Evil Man - 中国男性之恶
nvim-gps - Simple statusline component that shows what scope you are working inside
emacs-solaire-mode - If only certain buffers could be so grossly incandescent.
things.el - Extensions to thingatpt.el
evil-collection - A set of keybindings for evil-mode
evil-cleverparens - Evil normal-state minor-mode for editing lisp-like languages