2021-12-07 23:40:48 +01:00
|
|
|
qt-accel-about = &About
|
2020-11-17 11:10:09 +01:00
|
|
|
qt-accel-cards = &Cards
|
|
|
|
qt-accel-check-database = &Check Database
|
2021-12-07 23:40:48 +01:00
|
|
|
qt-accel-check-media = Check &Media
|
2020-11-17 11:10:09 +01:00
|
|
|
qt-accel-edit = &Edit
|
|
|
|
qt-accel-exit = E&xit
|
|
|
|
qt-accel-export = &Export...
|
|
|
|
qt-accel-export-notes = &Export Notes...
|
|
|
|
qt-accel-file = &File
|
|
|
|
qt-accel-filter = Fil&ter
|
|
|
|
qt-accel-find = &Find
|
|
|
|
qt-accel-find-and-replace = Find and Re&place...
|
|
|
|
qt-accel-find-duplicates = Find &Duplicates...
|
|
|
|
qt-accel-go = &Go
|
2021-12-07 23:40:48 +01:00
|
|
|
qt-accel-guide = &Guide
|
2020-11-17 11:10:09 +01:00
|
|
|
qt-accel-help = &Help
|
|
|
|
qt-accel-import = &Import...
|
|
|
|
qt-accel-info = &Info...
|
|
|
|
qt-accel-invert-selection = &Invert Selection
|
|
|
|
qt-accel-next-card = &Next Card
|
|
|
|
qt-accel-note = N&ote
|
|
|
|
qt-accel-notes = &Notes
|
2021-12-07 23:40:48 +01:00
|
|
|
qt-accel-preferences = &Preferences
|
2020-11-17 11:10:09 +01:00
|
|
|
qt-accel-previous-card = &Previous Card
|
|
|
|
qt-accel-select-all = Select &All
|
|
|
|
qt-accel-select-notes = Select &Notes
|
2021-12-07 23:40:48 +01:00
|
|
|
qt-accel-support-anki = &Support Anki
|
2020-11-17 11:10:09 +01:00
|
|
|
qt-accel-switch-profile = &Switch Profile
|
|
|
|
qt-accel-tools = &Tools
|
|
|
|
qt-accel-undo = &Undo
|
2021-05-19 07:18:39 +02:00
|
|
|
qt-accel-redo = &Redo
|
Rework reschedule tool
The old rescheduling dialog's two options have been split into two
separate menu items, "Forget", and "Set Due Date"
For cards that are not review cards, "Set Due Date" behaves like the
old reschedule option, changing the cards into a review card, and
and setting both the interval and due date to the provided number of
days.
When "Set Due Date" is applied to a review card, it no longer resets
the card's interval. Instead, it looks at how much the provided number
of days will change the original interval, and adjusts the interval by
that amount, so that cards that are answered earlier receive a smaller
next interval, and cards that are answered after a longer delay receive
a bonus.
For example, imagine a card was answered on day 5, and given an interval
of 10 days, so it has a due date of day 15.
- if on day 10 the due date is changed to day 12 (today+2), the card
is being scheduled 3 days earlier than it was supposed to be, so the
interval will be adjusted to 7 days.
- and if on day 10 the due date is changed to day 20, the interval will
be changed from 10 days to 15 days.
There is no separate option to reset the interval of a review card, but
it can be accomplished by forgetting the card(s), and then setting the
desired due date.
Other notes:
- Added the action to the review screen as well.
- Set the shortcut to Ctrl+Shift+D, and changed the existing Delete
Tags shortcut to Ctrl+Alt+Shift+A.
2021-02-07 11:58:16 +01:00
|
|
|
qt-accel-set-due-date = Set &Due Date...
|
|
|
|
qt-accel-forget = &Forget
|
2022-02-17 07:31:46 +01:00
|
|
|
qt-accel-view = &View
|
|
|
|
qt-accel-full-screen = Toggle &Full Screen
|
2022-09-20 04:56:59 +02:00
|
|
|
qt-accel-layout = &Layout
|
|
|
|
qt-accel-layout-auto = &Auto
|
|
|
|
qt-accel-layout-vertical = &Vertical
|
|
|
|
qt-accel-layout-horizontal = &Horizontal
|
2022-02-17 07:31:46 +01:00
|
|
|
qt-accel-zoom-in = Zoom &In
|
|
|
|
qt-accel-zoom-out = Zoom &Out
|
|
|
|
qt-accel-reset-zoom = &Reset Zoom
|
|
|
|
qt-accel-zoom-editor-in = Zoom Editor &In
|
|
|
|
qt-accel-zoom-editor-out = Zoom Editor &Out
|
Backup improvements (#1728)
* Collection needs to be closed prior to backup even when not downgrading
* Backups -> BackupLimits
* Some improvements to backup_task
- backup_inner now returns the error instead of logging it, so that
the frontend can discover the issue when they await a backup (or create
another one)
- start_backup() was acquiring backup_task twice, and if another thread
started a backup between the two locks, the task could have been accidentally
overwritten without awaiting it
* Backups no longer require a collection close
- Instead of closing the collection, we ensure there is no active
transaction, and flush the WAL to disk. This means the undo history
is no longer lost on backup, which will be particularly useful if we
add a periodic backup in the future.
- Because a close is no longer required, backups are now achieved with
a separate command, instead of being included in CloseCollection().
- Full sync no longer requires an extra close+reopen step, and we now
wait for the backup to complete before proceeding.
- Create a backup before 'check db'
* Add File>Create Backup
https://forums.ankiweb.net/t/anki-mac-os-no-backup-on-sync/6157
* Defer checkpoint until we know we need it
When running periodic backups on a timer, we don't want to be fsync()ing
unnecessarily.
* Skip backup if modification time has not changed
We don't want the user leaving Anki open overnight, and coming back
to lots of identical backups.
* Periodic backups
Creates an automatic backup every 30 minutes if the collection has been
modified.
If there's a legacy checkpoint active, tries again 5 minutes later.
* Switch to a user-configurable backup duration
CreateBackup() now uses a simple force argument to determine whether
the user's limits should be respected or not, and only potentially
destructive ops (full download, check DB) override the user's configured
limit.
I considered having a separate limit for collection close and automatic
backups (eg keeping the previous 5 minute limit for collection close),
but that had two downsides:
- When the user closes their collection at the end of the day, they'd
get a recent backup. When they open the collection the next day, it
would get backed up again within 5 minutes, even though not much had
changed.
- Multiple limits are harder to communicate to users in the UI
Some remaining decisions I wasn't 100% sure about:
- If force is true but the collection has not been modified, the backup
will be skipped. If the user manually deleted their backups without
closing Anki, they wouldn't get a new one if the mtime hadn't changed.
- Force takes preference over the configured backup interval - should
we be ignored the user here, or take no backups at all?
Did a sneaky edit of the existing ftl string, as it hasn't been live
long.
* Move maybe_backup() into Collection
* Use a single method for manual and periodic backups
When manually creating a backup via the File menu, we no longer make
the user wait until the backup completes. As we continue waiting for
the backup in the background, if any errors occur, the user will get
notified about it fairly quickly.
* Show message to user if backup was skipped due to no changes
+ Don't incorrectly assert a backup will be created on force
* Add "automatic" to description
* Ensure we backup prior to importing colpkg if collection open
The backup doesn't happen when invoked from 'open backup' in the profile
screen, which matches Anki's previous behaviour. The user could
potentially clobber up to 30 minutes of their work if they exited to
the profile screen and restored a backup, but the alternative is we
create backups every time a backup is restored, which may happen a number
of times if the user is trying various ones. Or we could go back to a
separate throttle amount for this case, at the cost of more complexity.
* Remove the 0 special case on backup interval; minimum of 5 minutes
https://github.com/ankitects/anki/pull/1728#discussion_r830876833
2022-03-21 10:40:42 +01:00
|
|
|
qt-accel-create-backup = Create &Backup
|