mirror of
https://github.com/tomasriveral/NoteWrapper.git
synced 2026-08-12 02:18:38 +02:00
ncurse selector for notes
This commit is contained in:
@@ -213,7 +213,9 @@ int main() {
|
|||||||
printf("Available notes:\n");
|
printf("Available notes:\n");
|
||||||
for (size_t i = 0; i < filesCount; i++) {
|
for (size_t i = 0; i < filesCount; i++) {
|
||||||
printf("%s\n", filesArray[i]);
|
printf("%s\n", filesArray[i]);
|
||||||
}
|
}
|
||||||
|
char *noteSelected = ncursesSelect(filesArray, "note", filesCount);
|
||||||
|
printf("Selected note: %s", noteSelected);
|
||||||
} else if (vaultSelected == "Create a new vault") {
|
} else if (vaultSelected == "Create a new vault") {
|
||||||
|
|
||||||
} else if (vaultSelected == "Settings") {
|
} else if (vaultSelected == "Settings") {
|
||||||
|
|||||||
Reference in New Issue
Block a user