Thanks for suggesting RNote, i always use Xournal++ to take notes, but there are some problems and RNote seems to work much nicer with gestures. The only thing that i am missing is an option for saving pen configuration to easily switch between a black pen and a yellow marker.
If you want in line completions, you need a model that is trained on “fill in the middle” tasks. On their Huggingface page they even say that this is not supported and needs fine tuning:
A model that can do it is:
Another option is to just use the qwen model, but instead of only adding a few lines let it rewrite the entire function each time.