anki/rslib
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
..
.cargo initial Bazel conversion 2020-11-01 14:26:58 +10:00
build Remove native HelpPage enum 2021-07-22 16:32:49 +02:00
cargo update Rust deps with cargo-raze 0.13.0 2021-10-26 08:16:40 +10:00
i18n update Rust deps with cargo-raze 0.13.0 2021-10-26 08:16:40 +10:00
src Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
tests use separate integration test for links 2021-07-24 10:12:25 +10:00
.gitignore initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel convert sql_format to ts_project; move into separate folder 2021-10-18 19:39:45 +10:00
Cargo.toml Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
empty.rs add a valid, empty file so the check action works in Rust Analyzer 2021-05-05 15:53:27 +10:00
README.md add some code editing/completion docs 2020-12-16 14:16:08 +10:00
rustfmt.bzl update to the latest rules_rust + security framework update 2021-03-27 19:28:19 +10:00
rustfmt.toml tidy up Rust imports 2021-04-18 18:38:54 +10:00

Anki's Rust code.

backend.proto stores the interfaces used to communicate backend messages between Rust, Python and TypeScript.