diff options
author | pommicket <pommicket@gmail.com> | 2022-12-20 15:43:24 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-20 15:43:24 -0500 |
commit | d3375f02cfed99ed40c28631e62654af23817729 (patch) | |
tree | 575072b13497c3e2f6ba73f3d9feb90214ad6c70 /main.c | |
parent | 9dc4d70511862004661cd5b0c02adc500c35f42e (diff) |
start completion requests
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,10 +1,14 @@ -/* o +/* @TODO: +- make sure autocomplete is closed when you switch buffers +- scroll through completions +- figure out under which circumstances backspace should close completions - rename buffer->filename to buffer->path - rust-analyzer bug reports: - bad json can give "Unexpected error: client exited without proper shutdown sequence" - rust-analyzer should wait until cargo metadata/check is done before sending initialize response FUTURE FEATURES: +- robust find (results shouldn't move around when you type things) - configurable max buffer size + max view-only buffer size - :set-build-command, don't let ../Cargo.toml override ./Makefile - add numlock as a key modifier @@ -977,7 +981,7 @@ int main(int argc, char **argv) { autocomplete_frame(ted); } } else { - ted->autocomplete = false; + autocomplete_close(ted); text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", window_width * 0.5f, window_height * 0.5f, ted_color(ted, COLOR_TEXT_SECONDARY), ANCHOR_MIDDLE); text_render(font); |