Ask Save or Don't save, and show useful status facts
Phase 5-7. - A changed tab asks Save, Don't save, or Cancel through the native dialog, instead of OK and Cancel to discard. - The conflict banner uses --rs-warn with a warning icon. Keep my edits is the primary choice and comes first. Use disk version comes last, in the error color. The banner wraps in a narrow pane. - The status bar shows the save state, the line and column, the word count, the line endings, and the view. It shows the watch mode only when it polls a network folder. - The outline and the document facts follow the active tab. A tab without a document has no outline and no document facts. - Tables: only formula cells have a hover hint, so no hint covers the next cell. The table adds no gap above its control area. The add controls show while a cell has focus. - The plugin review marks Install and enable as the primary action. The other choice is Install, keep disabled. - Read follows CommonMark soft breaks. Settings, General, Keep line breaks shows each source line break. The table preview and cell editors of Write keep their line breaks, because their editing depends on them. - Catalog rows in French, Japanese, and Simplified Chinese. - Docs: UI-053, the user guide, and plugins.md. Tests: the new layout/plainFixes, the keepLineBreaks cases in the settings unit tests, and the new install button name.
This commit is contained in:
@@ -16,7 +16,7 @@ test('Migration reads the four old keys and the theme backup, and normalizes eac
|
||||
'runestone.language': 'fr',
|
||||
}));
|
||||
assert.deepEqual(sections, {
|
||||
general: { autosaveEnabled: false, autosaveSeconds: 5, showInternalFolder: false, tableFormulas: true, showFileTitle: true },
|
||||
general: { autosaveEnabled: false, autosaveSeconds: 5, showInternalFolder: false, tableFormulas: true, showFileTitle: true, keepLineBreaks: false },
|
||||
language: 'fr',
|
||||
customThemes: [{ ...custom, schema: 3, mode: 'dark' }],
|
||||
customThemesLegacy: [{ schema: 1, id: 'kept' }],
|
||||
@@ -50,7 +50,7 @@ test('Damaged old values become defaults and unknown languages become English',
|
||||
'runestone.language': 'de',
|
||||
}));
|
||||
assert.deepEqual(sections, {
|
||||
general: { autosaveEnabled: true, autosaveSeconds: 5, showInternalFolder: false, tableFormulas: true, showFileTitle: true },
|
||||
general: { autosaveEnabled: true, autosaveSeconds: 5, showInternalFolder: false, tableFormulas: true, showFileTitle: true, keepLineBreaks: false },
|
||||
language: 'en',
|
||||
appearance: { theme: 'default', mode: 'dark' },
|
||||
});
|
||||
|
||||
@@ -64,7 +64,7 @@ test('The first start migrates the old localStorage values, and later reads come
|
||||
assert.deepEqual(calls.filter(call => !call.command.startsWith('plugin:')).map(call => call.command), ['settings_read', 'settings_migrate']);
|
||||
assert.equal(calls[0].command, 'plugin:event|listen', 'The listener starts before the read');
|
||||
assert.equal(store.readSection('language'), 'ja');
|
||||
assert.deepEqual(store.readSection('general'), { autosaveEnabled: true, autosaveSeconds: 12, showInternalFolder: false, tableFormulas: true, showFileTitle: true });
|
||||
assert.deepEqual(store.readSection('general'), { autosaveEnabled: true, autosaveSeconds: 12, showInternalFolder: false, tableFormulas: true, showFileTitle: true, keepLineBreaks: false });
|
||||
assert.equal(legacy.get('runestone.language'), 'ja', 'The old value stays in place');
|
||||
assert.equal(store.takeSettingsNotice(), 'Notice once');
|
||||
assert.equal(store.takeSettingsNotice(), null);
|
||||
|
||||
Reference in New Issue
Block a user