jupyterlab-contrib / spellchecker

Spellchecker for JupyterLab notebook markdown cells and file editor.
BSD 3-Clause "New" or "Revised" License
204 stars 20 forks source link

Overview/list of all mis-spelt words in the notebook/script #68

Open krassowski opened 3 years ago

krassowski commented 3 years ago

Sometimes I have long notebooks that I created a while ago. When I go back I sometimes spot errors, but it requires me to enter the markdown cell to see those. I would like to be able to see a summary of mis-spelt words somewhere to be able to navigate to those easily.

Design ideas:

The listing would ideally include:

ocordes commented 3 years ago

I fully agree, I have the same problem with the notebooks. Your solutions are well listed, but at the beginning, if we spot a misspelt word in the notebook, in your case the markdown cell is not in edit mode. Can we update the cell without open the cell for rerendering? I mean if we can do this, then I think a solution should be to have something like an interactive task which checks the notebook completely and then ask if a misspelt word should be changed or not like a normal text editor? I totally agree that the context is necessary and should be editable as well ;-)

krassowski commented 3 years ago

Good points.

in your case the markdown cell is not in edit mode. Can we update the cell without open the cell for rerendering?

the search & replace function in JupyterLab silently switches all Markdown cells to edit mode when it analyses notebook, and then keeps cells with matches in the edit mode. We could do the same in the interactive spellchecking task. Edit: to directly answer the question, yes I believe that we can also modify the cells whether they are in editing or rendering mode.

Another idea would be to modify markdown renderer to make it to highlight typos; I do not know how feasible it is, but I would like to be able to see these without entering the cell indeed.

ocordes commented 3 years ago

Oh, I never tested the search & replace function but this looks similar what I think one can use for the interactive spellchecking task. Highlighting typos in rendered cells sounds good, but for myself when I use a notebook during a lecture I don't want to have a highlight in the cell. I mean highlighting typos are good, but sometimes I have words which are spelled correctly but are not in the word list. Then the mark is somewhat annoying ...

krassowski commented 3 years ago

Highlighting typos in rendered cells sounds good, but for myself when I use a notebook during a lecture I don't want to have a highlight in the cell. I mean highlighting typos are good, but sometimes I have words which are spelled correctly but are not in the word list. Then the mark is somewhat annoying ...

I agree, if such functionality gets introduced it should be optional. We could also take care to turn it off in the presenter mode.

krassowski commented 3 years ago

As for the sidebar option and providing the context, I implemented something similar in jupyterlab-citation-manager extension.