spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.2k stars 1.59k forks source link

Make Editor annotations work in lower case #22341

Open kr-g opened 1 month ago

kr-g commented 1 month ago

Problem Description

editor code annotations (available via preferences > editor > advanced settings) only display a marker to the left of line number when case matches.

What steps reproduce the problem?

  1. go to preferences > editor > advanced settings check annotations box, apply and close dialog
  2. go to source editor and create a line "# TODO" and wait a second until a check marker appear left to line number
  3. change the line to "# todo"and wait for a second, the marker will disappear

What is the expected output? What do you see instead?

the marker should not disappear, the application logic should be changed to be case insensitive

Paste Traceback/Error Below (if applicable)

na.

Versions

Dependencies

na.

dalthviz commented 1 month ago

Hi @kr-g thank you for the feedback! I think @todo should trigger a marker too, kind of like a workaround but is that an option for you? Or maybe in general you would like for all the annotations that trigger a mark to be case insentive? So instead of the mark being triggered by only TODO, FIXME, XXX, HINT, TIP, @todo, HACK, BUG, OPTIMIZE, !!!, and ??? to be also triggered by todo, fixme, xxx, hint, tip, @TODO, hack, bug and optimize?

What do you think @spyder-ide/core-developers ?

ccordoba12 commented 1 month ago

I think this is a good idea 👍🏽

mrclary commented 1 month ago

I this is a good idea, also. 👍🏼