robotdana / spellr

Spell check your source code
MIT License
34 stars 2 forks source link

create new wordlists/languages while interactive #66

Open robotdana opened 4 years ago

robotdana commented 4 years ago

it would be nice to dynamically create new languages to add words to, associating the current path, or adding the current path to a language that doesn't currently apply to it.

I don't yet know how i want to do this, as i don't want to dynamically write to the .yml and remove comments.

Possibly just append a new key to the file interactive_session_[timestamp]: then merge all these in at the end, and someone tidy can manually merge their yaml file together if they wish.

or create a new .spellr-[timestamp].yml that we glob and merge. (I think i like this better)

For now, you can ctrl-C, then modify .spellr.yml, then spellr -i again.