add space key for marking todos

This commit is contained in:
2024-01-07 12:13:45 +01:00
parent 71939366c7
commit dd148396f1

2
main.c
View File

@@ -33,6 +33,7 @@ enum Command {
UP_ARROW = KEY_UP,
DOWN_ARROW = KEY_DOWN,
SPACE = ' '
};
void clear_todos(void) {
@@ -309,6 +310,7 @@ int main(int argc, char **argv) {
add_command_handler(terminal_width, terminal_height);
break;
case MARK:
case SPACE:
mark_command_handler(current_line);
break;
case REMOVE: