anki/ts/lib
Henrik Giesel 8f8f3bd465
Insert symbols overlay (#2051)
* Add flag for enabling insert symbols feature

* Add symbols overlay directory

* Detect if :xy is inserted into editable

* Allow naive updating of overlay, and special handling of ':'

* First step towards better Virtual Element support

* Update floating to reference range on insert text

* Position SymbolsOverlay always on top or bottom

* Add a data-provider to emulate API

* Show correct suggestions in symbols overlay

* Rename to replacementLength

* Allow replacing via clicking in menu

* Optionally remove inline padding of Popover

* Hide Symbols overlay on blur of content editable

* Add specialKey to inputHandler and generalize how arrow movement is detected

- This way macOS users can use Ctrl-N to mean down, etc.

* Detect special key from within SymbolsOverlay

* Implement full backwards search while typing

* Allow navigating symbol menu and accepting with enter

* Add some entries to data-provider

* Satisfy eslint

* Generate symbolsTable from sources

* Use other github source, allow multiple names

In return, symbol must be unique

* Automatically scroll in symbols dropdown

* Use from npm packages rather than downloading from URL

* Remove console.log

* Remove print

* Add pointerDown event to input-handler

- so that SymbolsOverlay can reset on field click

* Make tab do the same as enter

* Make font a bit smaller but increase relative icon size

* Satisfy type requirement of handlerlist

* Revert changing default size of DropdownItems

* Remove some now unused code for bootstrap dropdowns
2022-09-10 18:46:59 +10:00
..
i18n Consider using --force-message for ts/protobuf.bzl (#1694) 2022-02-27 17:35:07 +10:00
bridgecommand.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
BUILD.bazel Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
cards.ts fix inverted SchedBuried and UserBuried in cards.ts 2021-12-20 12:57:35 +10:00
children-access.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
context-keys.ts Field redesign (#2002) 2022-08-19 10:02:28 +10:00
cross-browser.ts Fix bug when selecting text next to frame by clicking three times (#1604) 2022-01-19 10:15:53 +10:00
dom.ts Instead of transforming to {\lt}, transform to < (#1818) 2022-04-25 13:42:54 +10:00
events.ts Replace (some) Bootstrap dropdowns with Floating UI (#1695) 2022-03-02 14:21:19 +10:00
functional.ts Last polishes for Surrounder class (#2017) 2022-08-17 16:00:37 +10:00
genfluent.py Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
globals.ts Split/Merge editor.py for its three use cases (#1581) 2022-01-12 14:51:43 +10:00
helpers.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
image-import.d.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
keys.ts Insert symbols overlay (#2051) 2022-09-10 18:46:59 +10:00
nightmode.ts Live theme changes (#1497) 2021-11-25 07:17:41 +10:00
node.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
parsing.ts Fix infinite update loop in editor with invalid input HTML (#1761) 2022-03-31 11:17:13 +10:00
platform.ts use different toolbar size on Mac 2021-06-05 11:28:36 +10:00
postrequest.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
promise.ts Set "no-non-null-assertion: off" by default (#1475) 2021-11-04 11:42:51 +10:00
proto.ts Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
runtime-require.ts Join RichTextAPI and RichTextContextAPI + Expose anki/RichTextInput (#1918) 2022-06-20 16:11:27 +10:00
shadow-dom.d.ts Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
shortcuts.ts Fix resetting of formatting modes when pressing modifer or dead keys (#1811) 2022-04-19 16:08:32 +10:00
styling.ts Change how resizable images work (#1859) 2022-05-13 12:57:07 +10:00
time.test.ts add missing copyright headers to *.ts 2021-04-13 18:57:08 +10:00
time.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
tsconfig.json Reverse-engineer surrounding with execCommand (#1377) 2021-11-18 19:18:39 +10:00
typing.ts Use WithFloating for MathjaxOverlay (#2011) 2022-09-05 17:20:00 +10:00
ui.ts Improved add-on extension API (#1626) 2022-02-03 14:52:11 +10:00
uuid.ts Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
wrap.ts Fix setting of caret when creating clozes (#1688) 2022-02-25 11:07:44 +10:00