text: #include <unistd.h>
  #include "notebook/index.h"
  #include "debug.h"
  #include "entrypoints.h"
  
  
  void* thread_indexer(void* notebook) {
    Notebook* nb = (Notebook*) notebook;
  
    // TODO: Use file-system apis to monitor for changes
    while(1) {
      DEBUG_PRINT("Indexing notebook with root %s\n", nb->root);
      nb_index(nb);
      sleep(APP_INDEX_WAIT);
    }
  }
  