Copyright 2025 Syed Daanish

Crib

A TUI IDE.

TODO

  • Fix indentation logic

  • For "insertTextFormat": 2 in clangd and similar use only the last word in the signature when replacing

  • Keep a list of words in the current buffer. (for auto completion) (maybe?)

  • Add ecma to js and make tsx

  • Add support for LSP & autocomplete / snippets.

    • First research
      • textDocument/documentHighlight - for highlighting stuff (probably tree-sitter is enough)
      • textDocument/selectionRange //
      • textDocument/completion - Obviously
      • textDocument/onTypeFormatting - seems promising for auto formatting (indentation etc)
      • textDocument/formatting & textDocument/rangeFormatting
      • textDocument/semanticTokens/* (probably tree-sitter is enough)
      • textDocument/linkedEditingRange - probably useful
      • textDocument/foldingRange - i will never use this for folding but it might be useful for other things.
      • textDocument/rename & textDocument/prepareRename - probably useful
      • And a lot more (just go through each for clangd and then expand to say solargraph).
    • Make a universal plug for lsp. So focus more on making a general purpose solid communication interface. Instead of something specific.
      • With a 4ish pass system. (more like each returned value from the lsp is used in 4 ways)
        1. One for stuff like jump to x position. or rename symbol x to y. (stuff that explicitly requires user request to do something)
          • Maybe even hover goes here
        2. One for stuff that only affects highlighting and styles . like symbol highlighting etc.
        3. One for Warnings/errors and inlay hints etc. (stuff that adds virtual text to the editor)
        4. One for fromatting and stuff like that. (stuff that edits the buffer text)
  • Add codeium/copilot support for auto-completion (uses the VAI virtual text) as a test phase.

  • Add a whitespace highlighter (nerd font). for spaces and tabs at start/end of line. not as virtual but instead at render time.

  • Once renderer is proven to work well (i.e. redo this commit) merge experimental branch into main. commit 43f443e on experimental.

  • Add snippets from wherever i get them. (like luasnip or vsnip)

  • Add this thing where select at end of screen scrolls down. (and vice versa)

    • Can be acheived by updating main.cc to send drag events to the selected editor instead of just under cursor.
    • Then a drag event above or below will scroll the selected editor.
  • Add support for virtual cursor where edits apply at all the places.

  • Add alt + click to set multiple cursors.

  • Add search / replace along with search / virtual cursors are searched pos.

  • Add support for undo/redo.

  • Add splash screen / minigame jumping.

  • Normalize / validate unicode on file open. so use utf8 purely and fix other types of files

  • Add git stuff.

  • Add SQL support. (viewer and basic editor)

  • Add color picker/palette for hex or other css colors.

  • Fix bug where alt+up at eof adds extra line.

  • Think about how i would keep fold states sensical if i added code prettying/formatting.

  • Use tree-sitter to get the node path of the current node under cursor and add an indicator bar.

    • (possibly with a picker to jump to any node)
  • Add the highlight of block edges when cursor is on a bracket (or in). (prolly from lsp)

  • Add this thing where selection double click on a bracket selects whole block.

    • (only on the first time) and sets mode to WORD.
  • Redo cpp/c/h scm file . also pretty much all of them do manually

  • Try making lua-typed and man pages tree-sitter grammar.

  • Redo folding system and its relation to move_line_* functions. (Currently its a mess)

  • Make whole thing event driven and not clock driven.

  • Fix in kutu.rb such that windows arent focused on hover . they are only when they are true windows and not just popups . also popus are focused even without hover when they open.

Description
A TUI IDE.
Readme 3.6 MiB
Languages
C++ 50.1%
tree-sitter-query 48.8%
Makefile 1.1%