toasted-nutbread
1dcfbf6ba6
Support suspending new anki cards ( #1240 )
...
* Add new option: anki.suspendNewCards
* Update Anki APIs
* Suspend card based on options
* Add setting
* Disable wrap for toggle property
2021-01-14 22:42:11 -05:00
toasted-nutbread
d9f5d21d15
Fix profile conditions issues ( #1239 )
...
* Add an event for when the number of profile conditions changes
* Update count
* Fix stale data being used
* Add "Remove group" option
2021-01-14 22:01:01 -05:00
toasted-nutbread
29b6c98e9f
Clarify some settings descriptions ( #1238 )
...
* Clarify the meaning of the 'None' option; rename to 'No key'
* Clarify Auto-hide search popup
* Clarify Scan delay
* Move Support inputs for devices with touch screens; make advanced
2021-01-14 21:33:41 -05:00
toasted-nutbread
a97fbcde83
Add reset input to profile condition ( #1237 )
...
* Add _setType and _setOperator
* Add reset value menu option
2021-01-14 21:18:22 -05:00
toasted-nutbread
84d3af0f8d
Hotkeys ( #1236 )
...
* Set up hotkey inputs
* Improve key display
* Add setInput
* Add KeyboardShortcutController
* Update how display handles hotkeys
2021-01-14 20:56:18 -05:00
toasted-nutbread
39741bf1d2
Convert getDefaultOptions to a utility function ( #1235 )
2021-01-14 19:14:29 -05:00
toasted-nutbread
c1e4741f22
Use code instead of key ( #1234 )
...
* Update KeyboardMouseInputField to use .code instead of .key
* Update Display to use .code instead of .key
* Remove unused function
2021-01-14 19:08:05 -05:00
toasted-nutbread
33aeae4110
Search key handling refactor ( #1233 )
...
* Move super invocation
* Move active element check
* Simplify key handling
* Remove unused
2021-01-14 18:30:16 -05:00
toasted-nutbread
351d9b2e8e
Update KeyboardMouseInputField ( #1232 )
...
* Assign missing type
* Update KeyboardMouseInputField to use an array instead of a string
* Use "modifiers" instead of "value" or "inputs"
* Simplify
* Add support for using keys
* Use bool args instead of a string
2021-01-14 17:54:09 -05:00
toasted-nutbread
5ae3acf6ff
Anki note data abstraction ( #1228 )
...
* Create AnkiNoteData
* Create AnkiNoteDataDefinitionProxyHandler
* Update media injection
* Create AnkiNoteDataDefinitionSecondaryProperties
* Update note context format
* Expose url and cloze on definition
* Simplify for understandability
* Remove unused _createNoteData
* Update public object
* Remove trims on sentence, since it should already be trimmed
* Fix unused global
2021-01-12 22:47:07 -05:00
toasted-nutbread
b7c9fa1057
Refactor note document title ( #1227 )
...
* Pass url into setContent
* Update where url is checked from
* Add documentTitle to state information
* Update how _getNoteContext gets the document title
* Update how url is fetched for options context
* Pass document title in to 'searched' event
2021-01-12 18:04:26 -05:00
toasted-nutbread
983e2c7936
Refactor text scanner options context generation ( #1225 )
...
* Refactor how options context is created and updated
* Udpate TextScanner/QueryParser to use getSearchContext instead of getOptionsContext
2021-01-11 23:13:35 -05:00
toasted-nutbread
5e87a490f7
Refactor display anki functions ( #1224 )
...
* Refactor note adding/viewing functions
* Move _addDefinition
* Update where anki field templates are assigned
* Update _createNote to not include options/templates arguments
* Simplify getAnkiNoteInfo to not require duplicateScope
2021-01-11 18:37:07 -05:00
toasted-nutbread
4ed9493645
Refactor anki note building ( #1223 )
...
* Move TemplateRendererProxy creation into AnkiNoteBuilder
* Simplify _stringReplaceAsync
* Organize note generation
* Rename API
* Make the template rendering function more generic
2021-01-10 19:28:50 -05:00
toasted-nutbread
25080ac82e
Change popupActionBarLocation to top ( #1222 )
2021-01-10 16:49:40 -05:00
toasted-nutbread
7f07b905ab
Update how navigation sidebar visibility is controlled ( #1221 )
2021-01-10 16:48:31 -05:00
toasted-nutbread
1614335bb0
Fix profile panel not being able to be closed due to hidden sidebar ( #1220 )
2021-01-10 16:06:00 -05:00
toasted-nutbread
b1ce650aa7
Fix typo ( #1218 )
2021-01-10 14:47:22 -05:00
toasted-nutbread
f6a38f40dc
Customizable sentence parsing ( #1217 )
...
* Add new sentenceParsing options
* Update TextScanner.setOptions
* Assign terminator/quote maps
* Pass sentence parsing info to extractSentence
* Simplify setting
* Add setting for enableTerminationCharacters
* Create new settings for sentence termination characters
2021-01-10 14:43:06 -05:00
toasted-nutbread
083da93142
Refactor sentence parsing ( #1215 )
...
* Rename sentenceExtent with sentenceScanExtent
* Update TextScanner.setOptions
* Change function argument order
* Rename quote map variables
* Fix edge case quote handling
* Update terminator maps to support character inclusion
2021-01-09 23:10:55 -05:00
toasted-nutbread
da1e1e5c5b
Sentence parsing options ( #1214 )
...
* Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent
* Create sentence parsing icon
* Create new sentence parsing section
2021-01-09 21:25:04 -05:00
toasted-nutbread
d698911bc9
Refactor sentence scanning ( #1213 )
...
* Update tests
* Update extractSentence implementation
* Remove old extractSentence implementation
* Optimize maps/sets
2021-01-09 19:02:51 -05:00
toasted-nutbread
11e9eb2295
Add links to settings v2 headings ( #1212 )
2021-01-09 16:39:30 -05:00
toasted-nutbread
67d21d4988
Use ruby tag for frequency disambiguation ( #1211 )
2021-01-09 16:07:47 -05:00
toasted-nutbread
5b58a9aeef
Update term tags display and fix a layout issue ( #1208 )
...
* Fix layout issue with term expression display
* Update display of term tags
* Update tag notification to include disambiguation information
2021-01-09 16:02:03 -05:00
toasted-nutbread
06d23f59d8
Improve frequency display ( #1209 )
...
* Disable old frequencies
* Update layout
* Implement new frequency display
* Update count info
2021-01-09 10:41:17 -05:00
toasted-nutbread
b20622b2c8
Core refactor ( #1207 )
...
* Copy set intersection functions
* Remove unused functions
* Simplify url check
* Remove parseUrl
* Simplify stringReverse
* Remove hasOwn due to infrequent use
* Rename errorToJson/jsonToError to de/serializeError
For clarity on intended use.
* Fix time argument on timeout
* Add missing return value
* Throw an error for unexpected argument values
* Add documentation comments
2021-01-07 21:36:20 -05:00
toasted-nutbread
7d706df66b
Update DictionaryDataUtil to be able to be used in a sandbox frame ( #1206 )
2021-01-07 20:24:22 -05:00
toasted-nutbread
3760b22a25
Fix AnkiCardController using stale data ( #1204 )
2021-01-06 18:16:51 -05:00
toasted-nutbread
8c92c1cbc2
Refactor anki note generation ( #1202 )
...
* Create _injectAnkiNoteMedia function
* Remove unused code path
* Simplify modeOptions
2021-01-03 19:40:12 -05:00
toasted-nutbread
63971776a5
CSS lint ( #1201 )
...
* Use single quotes instead of double
* Install stylelint
* Set up config
* Update package/tests
* Fix lint issues
* Update CSS rules
2021-01-03 15:30:38 -05:00
toasted-nutbread
d50d7a4a3a
Update permissions pages with info about MV3 permissions ( #1200 )
2021-01-03 15:29:29 -05:00
toasted-nutbread
8e304b83c6
Translator regex replacements ( #1199 )
...
* Add support for regex replacements during the translation process
* Allow assignment of textReplacements
* Rename
* Set up test data
* Write expected data
* Set up options
* Prevent infinite loop if regex matches empty string
* Implement setting controller
* Add support for testing pattern replacements
2021-01-03 12:12:55 -05:00
toasted-nutbread
eda8534e19
Group templates near their relevant modal definitions ( #1198 )
2021-01-02 20:30:11 -05:00
toasted-nutbread
41f6de3e3a
Simplify collapseEmphaticOptions options ( #1196 )
2021-01-01 23:16:44 -05:00
toasted-nutbread
a02891e52c
Update copyright year ( #1194 )
...
* Update copyright year
* Remove redundant Author info
2021-01-01 14:50:41 -05:00
toasted-nutbread
41e8f056cc
Update version
2020-12-31 17:42:37 -05:00
toasted-nutbread
f808e6acde
Improve contrast of dark theme tag text color ( #1192 )
2020-12-31 17:26:10 -05:00
toasted-nutbread
369e4e40f4
Fix kanji selection area being on top of tags ( #1191 )
2020-12-31 15:07:45 -05:00
toasted-nutbread
155b2b27f6
Fix some issues with the display layout ( #1190 )
2020-12-31 14:58:48 -05:00
toasted-nutbread
889240311b
Improve tag scanning behaviour ( #1189 )
...
* Update include/exclude selectors for Display._definitionTextScanner
* Fix missing condition
2020-12-31 14:21:50 -05:00
toasted-nutbread
1b4ba1fb00
Simplify glossary layout setting ( #1188 )
...
* Add conditionalConvert transform
* Convert glossaryLayoutMode option to a toggle
2020-12-31 13:38:51 -05:00
toasted-nutbread
1ac4e979e4
Improve settings transforms ( #1187 )
2020-12-31 13:10:23 -05:00
toasted-nutbread
6c46afedf7
Fix incorrect body height on pitch accents preview page ( #1186 )
2020-12-31 11:16:50 -05:00
toasted-nutbread
32f233acfd
Fix display notification close button style ( #1185 )
2020-12-30 23:00:52 -05:00
toasted-nutbread
4650f0b542
Translator frequency data improvements ( #1184 )
...
* Specify if a frequency has a specific reading
* Make frequency data creation more standardized
* Update test data
2020-12-30 15:12:08 -05:00
toasted-nutbread
0f3b9ec7fc
Fix overlay panel animations for different action bar locations ( #1183 )
2020-12-30 13:49:48 -05:00
toasted-nutbread
9f2da58bfd
Simplify CSS rule ( #1182 )
2020-12-30 13:35:25 -05:00
toasted-nutbread
a8454568b1
Improve wrapping layout for small resolutions ( #1181 )
2020-12-30 13:32:41 -05:00
toasted-nutbread
973dfc581a
Improve location of Anki error message ( #1180 )
2020-12-30 12:39:33 -05:00