news.volyx.in

Ki Editor - an editor that operates on the AST (ki-editor.org)

433 points by ravenical · 178 days ago · 148 comments on HN

Article summary

The Ki Editor is a multi-cursor structural editor that operates on the Abstract Syntax Tree (AST) of code, allowing for direct manipulation of syntax structures. It aims to bridge the gap between coding intent and action, providing features like multiple cursors and selection modes for efficient editing. The editor is designed to be flexible and consistent, with a focus on syntax-based navigation. The Ki Editor is available as a terminal and VSCode extension.

Main themes

  • Structural editing
  • AST-based editing
  • Multi-cursor support
  • Syntax-based navigation
  • Editor comparison
  • Vim and Neovim

What commenters say

  • The Ki Editor's multi-cursor feature is a game-changer for efficient editing, especially when combined with syntax node selection and navigation.
  • Some users find the Ki Editor's keybindings to be incoherent and prefer the more traditional Vim or Neovim approach.
  • The use of AST-based editing can be a paradigm shift, but it may not be necessary or useful for all types of editing tasks.
  • Emacs is a unique editor that is more than just a text editor, with a scripting language and extensibility that sets it apart from other editors.
  • The concept of structural editing is not new and has been implemented in other editors, such as IntelliJ and Helix, with varying degrees of success.
  • Some users prefer the flexibility and customizability of Vim and Neovim, and do not see the need for a new editor like Ki.
  • The discussion around editors often revolves around personal preference and workflow, with different users having different needs and opinions on the best approach.
  • The idea of using an editor that operates on the AST of code can be powerful, but it may require a significant change in editing habits and mindset.