ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
390 stars 16 forks source link

`tree-view-mode` hardcoded to work only with `evil-tree-edit` #50

Closed Honeypot95 closed 2 years ago

Honeypot95 commented 2 years ago

Hi! I recently tried to run the code, and got prompted by this message: tree-edit-view--setup: Sorry, I hardcoded this mode to only work with evil-tree-edit. Please remind me if I forgot!

I understand that this is a work in progress and I do not expect this to be fixed soon (or at all, as you owe nothing to us), but I wanted to ask if the code may be ready for use without evil-tree-edit and you just forgot about the prompt!

In any case, I thought that it may be useful to keep this github issue open until that changes.

Thank you!

ethan-leba commented 2 years ago

Ah, yeah I should probably fix that! tree-edit-view-mode is a 'fork' of tree-sitter-debug-mode, so you could use that in it's place. That said, the library of tree-edit should be completely useable without evil (examples here). If you're looking for a prepackaged non-evil mode with keybindings, that unfortunately doesn't exist yet, but @fgeller has a work-in-progress that we're discussing in #40.

Did you trigger M-x tree-edit-view-mode manually, or was that a side effect of some other command? Just curious how you ran up against that error.

Thanks for checking out my project!

ethan-leba commented 2 years ago

e5aab26 * refactor: move tree-view to evil package