Anki/proto/anki
RumovZ 6da5e5b042
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
..
backend.proto Card type error (#1749) 2022-03-28 22:17:50 +10:00
card_rendering.proto replace the old stripHTML() methods with the backend implementation 2021-10-01 23:15:45 +10:00
cards.proto Switch card.original_position to a proto3 optional 2022-03-10 20:48:26 +10:00
collection.proto Add more progress + abort points to export code 2022-05-06 15:32:23 +10:00
config.proto Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
deckconfig.proto Add relative overdueness to review order (#1757) 2022-04-09 13:20:09 +10:00
decks.proto Remove top_deck_id arg in deck_tree() (#1702) 2022-03-02 15:30:32 +10:00
generic.proto Card info cleanup (#1446) 2021-10-23 11:00:43 +10:00
i18n.proto refactor protobuf handling for split/import 2021-07-10 19:17:05 +10:00
import_export.proto CSV import/export fixes and features (#1898) 2022-06-09 10:28:01 +10:00
links.proto Card type error (#1749) 2022-03-28 22:17:50 +10:00
media.proto split out remaining tags, stats, media and rendering 2021-07-10 23:16:18 +10:00
notes.proto support updating multiple notes in one transaction/undo op 2021-08-02 17:07:26 +10:00
notetypes.proto Plaintext import/export (#1850) 2022-06-01 20:26:16 +10:00
scheduler.proto Rework display of available cards in custom study 2022-05-20 17:52:02 +10:00
search.proto Extends the SearchNode interface to support field and unqualified searches (#1821) 2022-04-28 14:09:51 +10:00
stats.proto Add support for proto3 optional scalars 2022-02-27 19:42:06 +10:00
sync.proto split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
tags.proto bikeshedding: amount -> match_limit 2021-09-12 11:57:49 +10:00