Oct-15-2022, 06:32 PM
(This post was last modified: Oct-15-2022, 09:07 PM by Gribouillis.)
(Oct-13-2022, 04:35 AM)kucingkembar Wrote: so, any tips, software, or idea to handle this?I use a program that I wrote myself to manage not only code snippets but innumerable small pieces of information. It is a command line application which basically queries a small database (currently a json file). The name of the program is kno-g, so for example if I type this in a terminal
Output:$ kno-g warnings
The program shows me a list of all the notes that contain the word 'warnings'. In this case there are only 2 notes as you can see in the attached screenshot.Then I can choose to view the note or to edit it, which opens a text editor to do so and I see the contents of the note.
Each note has a first line with a question, which is used to create the list of notes to choose from, and it has a body, the answer to the question. For example here is one note (in french, the question is how to remove all warnings from python)
Output:Comment supprimer tous les warnings de python ?
mettre tout en haut
import warnings
warnings.filterwarnings("ignore")
aussi en ligne de commande: python -W ignore
The search engine is extremely simple: for every word in the notes, the program keeps a reference of all the notes that contain this word.I have been using this program for many years, I use it every day and as simple as it is, it saved me a lot of time and efforts.