SthephanShinkufag / Dollchan-Extension-Tools

The best way to browse imageboards
https://dollchan.net/extension/
MIT License
368 stars 67 forks source link

[Enhancement] Ability to disable spells autoformating #1411

Open GoldRobot opened 3 years ago

GoldRobot commented 3 years ago

Ваш запрос на улучшение функционала связан с проблемой? Autoformating constantly break my spells which I use periodicaly. To turn such spells off I mark them as comment putting '//' at the start of line with spell. So the problem is, spells longer than some treshold always get splited in 5-6 lines, so I can't then disable them when I need by just adding '//' at start of line, I forced to reformat spell back or repeat adding '//' 5-6 times more for each line.

Example, text before apply:

(#name(somethingsomething) &!#img & !#video) |  // can be disabled by putting just two //
#words(....) |
#words(...)

After apply:

(
    #name(somethingsomething) & // now requires to do 5 times more work to disable
    !#img &
    !#video
)  |
#words(....) |
#words(...)

Опишите ваше решение, которое вы хотели бы увидеть в реализаци Simple solution - Option to disable autoformat Overcomplicated solution but better - Rework spells completely, allowing user to create their own 'Scrolls' which contains many spells, and which can be enabled-disabled by check mark. So, I for example can create bunch of scrolls, and disable them as I need.