Anki/ts/editor
Matthias Metelka 371f731e30
Editor Field Descriptions (#1476)
* Add description input to fields dialog

QLineEdit seems like the best option, as it saves space and motivates users to keep their descriptions concise.

* Add setDescriptions to note initialization script

Went for the extra function instead of including it in setFields to prevent potential add-on breakages.

* Add tooltip next to field name if description is set

* Refactor code according to suggestions

Set default tooltip placement to right instead of bottom

Use .get() for fld["description"]

Fix tab order in fields dialog

Swap out abbreviation "desc" for full length name to keep consistency

* Update Protobuf and Rust for description

Add description to notetypes.proto and schema11

Co-authored-by: RumovZ <RumovZ@users.noreply.github.com>

* Fix tooltips not updating with description

Remove redundant variable tooltipOptions

Update previousTooltip within reactive function

* Move LabelDescription out of LabelName

Co-authored-by: Henrik Giesel <hgiesel@users.noreply.github.com>

* Decrease icon size and fix alignment

Co-Authored-By: Henrik Giesel <hengiesel@gmail.com>

* the new key needs to be cleared from fields, not the notetype itself

Co-authored-by: RumovZ <RumovZ@users.noreply.github.com>
Co-authored-by: Henrik Giesel <hengiesel@gmail.com>
Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2021-11-06 09:42:48 +10:00
..
image-overlay fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
mathjax-overlay Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
AddonButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
AddTagBadge.svelte update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
AutocompleteItem.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
BUILD.bazel Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
change-timer.ts Add ChangeTimer.prototype.fireImmediately 2021-09-16 14:47:05 +02:00
ClozeButton.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
code-mirror.ts Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
CodeMirror.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
ColorButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
CommandIconButton.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Components.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
CustomStyles.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
DecoratedElements.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
destroyable.ts Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
EditingArea.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
editor-base.scss Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
EditorField.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
EditorToolbar.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
Fields.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
FieldsEditor.svelte Svelte Editor hotfixes (#1436) 2021-10-19 08:38:06 +10:00
FieldState.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
FormatBlockButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
FormatInlineButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
HandleBackground.svelte Always correctly update MathjaxHandle position 2021-09-15 17:05:43 +02:00
HandleControl.svelte update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
HandleLabel.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
HandleSelection.svelte Always correctly update MathjaxHandle position 2021-09-15 17:05:43 +02:00
helpers.ts Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
icons.ts Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
index.ts Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
index_wrapper.ts Export editor globals under anki namespace 2021-07-06 03:48:33 +02:00
LabelContainer.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
LabelDescription.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
LabelName.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
legacy.scss Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
NoteEditor.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
NoteTypeButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
Notification.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
OldEditorAdapter.svelte Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
PlainTextBadge.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
PlainTextInput.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
PreviewButton.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
RichTextBadge.svelte Highlight field badges when toggled to non-default state (#1466) 2021-10-31 07:48:37 +10:00
RichTextInput.svelte Use trailingComma: all setting in .prettierrc (#1435) 2021-10-19 09:06:00 +10:00
RichTextStyles.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
SelectedTagBadge.svelte update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
SetContext.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
StickyBadge.svelte Several editor fixes (#1478) 2021-11-05 11:29:02 +10:00
StyleLink.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
StyleTag.svelte Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
Tag.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
TagDeleteBadge.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
TagEditMode.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
TagEditor.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
TagInput.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
TagOptionsBadge.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
tags.ts add basic tag completion to backend 2021-09-09 15:38:08 +02:00
TagWithTooltip.svelte Several CSS fixes - Editor Cleanup (#1470) 2021-10-31 08:29:22 +10:00
TemplateButtons.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
tsconfig.json Translate Editor entirely to Svelte (#1403) 2021-10-18 22:01:15 +10:00
WithAutocomplete.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
WithColorHelper.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00