diff --git a/README.md b/README.md index fbedd40..278f8ff 100644 --- a/README.md +++ b/README.md @@ -6,28 +6,57 @@ A TUI IDE. # TODO +- [ ] Overwrite empty space between line number and line. (in the renderer) +- [ ] Make iterator for next/prev line reuse same allocation buffer (so only free once with iterator). +- [ ] Add tab/untab with [,<] and [.>] +- [ ] Add something that works like `p` but doesnt move cursor. +- [ ] Fix the fact that hooks arent updated when a line is deleted/added. +- [ ] also use this sorta rules apart from previous lines indentation for the indentor. + - if previous line ends with { or similar → indent +1 + - (i.e. just check the last line that is not string or comment or empty) + - language-specific rules later if you want + - ignore comments that dedent etc. - anything else should be handled by LSP. +- [ ] Fix bug where clicking outside eof sets to top. +- [ ] Add this thing where select at end of screen scrolls down. (and vice versa) +- [ ] Add a virtual text support (text that is rendered in the editor but not in the actual text) + - Add a whitespace highlighter (nerd font). for spaces and tabs at start/end of line. +- [ ] 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/inlayHint` & `textDocument/inlineHint` & `textDocument/codeLens` + - `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 snippets from wherever i get them. (like luasnip or vsnip) - [ ] 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 `.scm` files for all the supported languages. (2/14) Done. - [ ] Add splash screen / minigame jumping. -- [ ] Add support for LSP & autocomplete / snippets. - [ ] Add codeium/copilot support. - [ ] Normalize / validate unicode on file open. - [ ] 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. - -- [ ] Retry get proper blocks from tree-sitter. - - And use it for full block selection (including inline ones). - - And for indenting. - - And highlighting block edges etc. -- [ ] Add feature where doing enter uses tree-sitter to add newline with indentation. - - it should also put stuff like `}` on the next line. -- [ ] Add the highlight of block edges when cursor is on a bracket (or in). +- [ ] 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 folding system and its relation to move_line_* functions. -- [ ] Also try regex based indentation. -- [ ] And indentation based blocks +- [ ] Redo folding system and its relation to move_line_* functions. (Currently its a mess)