summaryrefslogtreecommitdiff
path: root/src/dged/window.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-06-14 00:03:47 +0200
committerAlbert Cervin <albert@acervin.com>2023-07-11 21:26:49 +0200
commit3a8ae83aa13636679c151027cace905fa87ebd8e (patch)
tree4a68bfb1e32dc1d6dbd4c8779312f0f32fcba926 /src/dged/window.h
parentbc5696e5bbd4739691f53563f3506b30b9be1ad3 (diff)
downloaddged-3a8ae83aa13636679c151027cace905fa87ebd8e.tar.gz
dged-3a8ae83aa13636679c151027cace905fa87ebd8e.tar.xz
dged-3a8ae83aa13636679c151027cace905fa87ebd8e.zip
Implement replace + autocomplete
Autocomplete is currently a POC and works only with find-file.
Diffstat (limited to 'src/dged/window.h')
-rw-r--r--src/dged/window.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dged/window.h b/src/dged/window.h
index be9b952..30c1061 100644
--- a/src/dged/window.h
+++ b/src/dged/window.h
@@ -22,6 +22,8 @@ void windows_render(struct display *display);
struct window *root_window();
struct window *minibuffer_window();
+struct window *popup_window();
+bool popup_window_visible();
void windows_set_active(struct window *window);
struct window *windows_focus(uint32_t id);
@@ -30,6 +32,8 @@ struct window *windows_focus_next();
struct window *window_find_by_buffer(struct buffer *b);
void window_set_buffer(struct window *window, struct buffer *buffer);
+void window_set_buffer_e(struct window *window, struct buffer *buffer,
+ bool modeline, bool line_numbers);
struct buffer *window_buffer(struct window *window);
struct buffer_view *window_buffer_view(struct window *window);
struct buffer *window_prev_buffer(struct window *window);
@@ -47,3 +51,7 @@ void window_hsplit(struct window *window, struct window **new_window_a,
struct window **new_window_b);
void window_vsplit(struct window *window, struct window **new_window_a,
struct window **new_window_b);
+
+void windows_show_popup(uint32_t row, uint32_t col, uint32_t width,
+ uint32_t height);
+void windows_close_popup();