Closed maxamundsen closed 6 months ago
Looking pretty good. Thanks for your attention to detail. I'm going to try it out and merge if ok
Overall I'm impressed with the quality of your PR. Thanks for your work.
I've made a few changes and am planning to make a few more later. This was actually the next item on my list and if you submitted it a few hours later there might've been conflicts. It might be a good idea to check with us before starting a sizeable piece of work to avoid conflicts or possible PR rejection.
Adds
choose_language
command and dialog for selecting the language of the current buffer.Buffer.Lang
enum. Perhaps we want a 'prettier' string to print, but this is a simple solution that doesn't require manually mapping a string for each enum.Plain_Text
, it will clear all of the active regions and tokens for the buffer, clearing all highlighting. (Originally, I implemented a basic tokenizer which set all tokens to .default, later realizing this was totally unnecessary 😂)