syntax-tree-surfer
general.el
syntax-tree-surfer | general.el | |
---|---|---|
10 | 36 | |
455 | 966 | |
- | - | |
5.4 | 4.6 | |
3 months ago | 27 days ago | |
Lua | Emacs Lisp | |
MIT License | 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.
syntax-tree-surfer
-
Select text using Treesitter Queries and start typing right away with SelectEase.nvim
Your config, tree-surfer or nvim-treesitter-textobjects follow nodes using the syntax tree. Go to parent / child / next siblings ect....
-
mini.move - Move any selection in any direction
Cool stuff. It might be worth adding this one to a comparison/alternatives list: https://github.com/ziontee113/syntax-tree-surfer
-
What's the one plugin you'd love to see?
The closest to "treesitter-powered jumps" plugin I know is ziontee113/syntax-tree-surfer. Don't use it personally, but video demos look cool.
-
Ask HN: S/W development text editor have feature colorizing every iteration?
treesitter / neovim:
different code block indicators styles : https://github.com/lukas-reineke/indent-blankline.nvim#with-...
collapse / expand / navigate between code blocks : https://github.com/stevearc/aerial.nvim
not exactly colorize, but can customize to just show iteration / loop processes : https://github.com/ziontee113/syntax-tree-surfer
- Syntax Tree Surfer now supports Dot Repeat for Swapping nodes in Normal Mode
-
What do you use treesitter for other than highlighting?
I personally use it for an outline window for my code (aerial.nvim) and quick-selecting code blocks (nvim-treesitter-textsubjects). I've also seen but not used syntax-tree-surfer for code navigation/manipulation and refactoring.nvim for performing refactoring operations. You could also check out awesome-neovim and ctrl-f for "treesitter", though there are many other plugins out there either not on that list or that don't explicitly mention treesitter in their description.
-
How Neovim helped me to grow up as a developer, and a person.
I published syntax-tree-surfer a while ago didn't know that anyone will be interested to use it. Turns out people do enjoy what I do. When I was in school I didn't feel like I mattered to other people. Now I feel like I do, there are people out there that cares about me, giving me help, advices, etc.. It's just really amazing!
-
tree-climber.nvim - climb around the treesitter tree
I admit, the functionality is blatantly similar to syntax-tree-surfer, but tree-climber should work also in files with comments as well (unfortunately, I could not make syntax-tree-surfer work in my neovim setup at all).
-
Small Feature Update for Syntax Tree Surfer plugin: Go to the top most node and do something there
Plugin: https://github.com/ziontee113/syntax-tree-surfer
-
Extracting JSX into React component
You can use syntax-tree-surfer to select the parent.
general.el
-
Emacs Bedrock–A minimal Emacs starter kit
I can vouch for general.el[1]. It's easy to use and it integrates with use-package clauses, which-key and evil states. You can look at my config[2] for examples.
1. https://github.com/noctuid/general.el
-
Evil mode's kinda hacky
If you need more fine-grained keybindings control use https://github.com/noctuid/general.el
-
symbols function definition is void: map!
If you're relying heavily on Evil states and leader keys I also recommend this package: https://github.com/noctuid/general.el
-
bind.el -- A key binder with prefix, autoload, repeat-mode and save&restore support
If I have to say one or two things about them, general's readme looks a lot and may be hard to grasp for starters who just want to bind keys. I want bind to be the go to package for newcomers and unify people who are just bored of typing define-key or okay with looping since bind is close to that simplicity yet being powerful due to its design. If you are missing something, please open an issue and see if we can add it.
-
How do you call interactive commands with arguments like in vim?
For binding keys I highly recommend the package noctuid/general.el. Specifically binding to general-key-dispatch. Something like: (general-define-key :states '(normal visual) "/" (general-key-dispatch "/" 'ag-search :default 'evil-search-forward))
-
Best practice when configuring keybindings?
[1]https://jwiegley.github.io/use-package/keywords/ [2]https://github.com/noctuid/general.el
-
Anyone here uses evil-mode with Colemak-DH? How did you set up yours?
I use standard Colemak. I've added the following configuration to be able to exit insert mode by pressing l and h in sequence (that key combination is convenient to type, but still uncommon enough in most words, the main exception being localhost). (general-imap "l" (general-key-dispatch 'self-insert-command :timeout 0.25 "h" 'evil-normal-state)) The above code uses https://github.com/noctuid/general.el.
-
Help with setting up emacs on windows
https://github.com/noctuid/general.el Keybinding and leader-key manager for Emacs. There are other packages but this is the best one imo - it even includes vim-style map commands.
-
A good config with leader keys
Gonna drop a link to https://github.com/noctuid/general.el
-
any users of the Japanese input method? question about input-method.
(general is a keybinding helper package, not strictly necessary but way simpler than the default)
What are some alternatives?
tree-climber.nvim
use-package - A use-package declaration for simplifying your .emacs
refactoring.nvim - The Refactoring library based off the Refactoring book by Martin Fowler
emacs-which-key - Emacs package that displays available keybindings in popup
aerial.nvim - Neovim plugin for a code outline window
evil-collection - A set of keybindings for evil-mode
treesitter-unit - A Neovim plugin to deal with treesitter units
key-chord-multiple - A GNU Emacs minor mode that allows binding commands to multiple simultaneously pressed keys.
react-extract.nvim - Neovim plugin for extracting jsx into React component
.emacs.d - Centaur Emacs - A Fancy and Fast Emacs Configuration
nvim-treesitter-textobjects
evil - The extensible vi layer for Emacs.