You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An important part of my workflow is reviewing notes to prune, organize, and combine notes. I've written a script to iterate over notes in a notebook, display them, and prompt for deletion, edit, or simply skipping. I think this functionality might be more useful integrated in nb, but think of this as a proof of concept.
#!/usr/bin/fish## must pass valid notebook nameset-l notebook $argv[1]
ifnot nb notebook $notebookecho"Run nb_review with a valid nb notebook"returnendset-l nb_filenames (nb $notebook:run ls)
for filename in$nb_filenamesset-lid (nb $notebook:index get_id $filename)
nb $notebook:show $id|catread answer -p"echo; set_color -o -u red; printf '(d)elete (e)dit (c)ontinue'; set_color normal; printf ': '"switch$answercase"d"echo"Deleting $filename"
nb $notebook:delete --force$idcase"e"
nb $notebook:edit $idcase"c"echo"Skipping $filename"end
clear
end
The text was updated successfully, but these errors were encountered:
An important part of my workflow is reviewing notes to prune, organize, and combine notes. I've written a script to iterate over notes in a notebook, display them, and prompt for deletion, edit, or simply skipping. I think this functionality might be more useful integrated in
nb
, but think of this as a proof of concept.The text was updated successfully, but these errors were encountered: