Anki/rslib/src/notetype
RumovZ d92f8c67a2 CSV import/export fixes and features (#1898)
* Fix footer moving upwards

* Fix column detection

Was broken because escaped line breaks were not considered.
Also removes delimiter detection on `#columns:` line. User must use tabs
or set delimiter beforehand.

* Add CSV preview

* Parse `#tags column:`

* Optionally export deck and notetype with CSV

* Avoid clones in CSV export

* Prevent bottom of page appearing under footer (dae)

* Increase padding to 1em (dae)

With 0.5em, when a vertical scrollbar is shown, it sits right next to
the right edge of the content, making it look like there's no right
margin.

* Experimental changes to make table fit+scroll (dae)

- limit individual cells to 15em, and show ellipses when truncated
- limit total table width to body width, so that inner table is shown
with scrollbar
- use class rather than id - ids are bad practice in Svelte components,
as more than one may be displayed on a single page

* Skip importing foreign notes with filtered decks

Were implicitly imported into the default deck before.
Also some refactoring to fetch deck ids and names beforehand.

* Hide spacer below hidden field mapping

* Fix guid being replaced when updating note

* Fix dupe identity check

Canonify tags before checking if dupe is identical, but only add update
tags later if appropriate.

* Fix deck export for notes with missing card 1

* Fix note lines starting with `#`

csv crate doesn't support escaping a leading comment char. :(

* Support import/export of guids

* Strip HTML from preview rows

* Fix initially set deck if current is filtered

* Make isHtml toggle reactive

* Fix `html_to_text_line()` stripping sound names

* Tweak export option labels

* Switch to patched rust-csv fork

Fixes writing lines starting with `#`, so revert 5ece10ad05.

* List column options with first column field

* Fix flag for exports with HTML stripped
2022-06-09 10:28:01 +10:00
..
cardgen.rs Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
cloze_styling.css Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
emptycards.rs use aux var when retrieving last deck for notetype 2021-04-29 19:15:27 +10:00
fields.rs Editor Field Descriptions (#1476) 2021-11-06 09:42:48 +10:00
header.tex move latex header and styling into separate files 2020-05-12 21:13:33 +10:00
mod.rs CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
notetypechange.rs Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
render.rs Fix some clippy lints + imports 2022-03-17 21:03:39 +10:00
schema11.rs fix Clippy lints in Rust 1.57 2021-12-03 19:53:37 +10:00
schemachange.rs Always generate missing cards when saving card templates 2022-05-26 12:44:57 +10:00
stock.rs Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
styling.css Mathjax editor improvements (#1502) 2021-11-23 10:27:32 +10:00
templates.rs Card info cleanup (#1446) 2021-10-23 11:00:43 +10:00
undo.rs Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00