Anki/rslib/src/storage
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
..
card Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
config update to latest rusqlite 2021-06-25 16:22:21 +10:00
deck CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
deckconfig Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
graves update to latest rusqlite 2021-06-25 16:22:21 +10:00
note CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
notetype CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
revlog Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
tag add basic tag completion to backend 2021-09-09 15:38:08 +02:00
upgrades Refactor export-import code and resolve fixmes (#1723) 2022-03-18 19:31:55 +10:00
collection_timestamps.rs update to latest rusqlite 2021-06-25 16:22:21 +10:00
mod.rs Add apkg import/export on backend (#1743) 2022-05-02 21:12:46 +10:00
schema11.sql Add comment explaining why sfld column has type integer 2021-01-25 18:39:59 +08:00
sqlite.rs Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
sync.rs update to latest rusqlite 2021-06-25 16:22:21 +10:00
sync_check.rs zero out graves before comparison, instead of at creation 2021-06-30 10:08:52 +10:00