Changes file structure; experiments with better string; Search init in file list

This commit is contained in:
2026-02-11 16:47:43 +02:00
parent dbe46fbdfd
commit dfc3071702
26 changed files with 3577 additions and 59 deletions
+9
View File
@@ -11,6 +11,7 @@
#include "connection.h"
#include "main.h"
#include "file_list.h"
#include "query.h"
#include <widget.h>
@@ -61,6 +62,7 @@ int main(int argc, char **argv) {
int32_t process_user_input(app_t *app, callback_args_t *d_args) {
int32_t c;
ui_file_list_t *fui = (ui_file_list_t *) app->query_args->file_list_ui;
c = wgetch(app->win);
switch (c) {
case KEY_F(9):
@@ -72,6 +74,13 @@ int32_t process_user_input(app_t *app, callback_args_t *d_args) {
app->query_args->state = S_UPLOAD_FILE_SELECT;
break;
}
case 's':
case 'S':
if (!app->modal.is_initiated && !fui->active_search) {
fui->active_search = true;
draw_file_list(fui);
return OK;
}
default:
d_args->data = (void *)&c;
app->active_callback(d_args);