fix #1814: option to disable auto-type title filter by default

This commit is contained in:
antelle 2021-05-12 21:00:51 +02:00
parent 3f4cddd2a2
commit a92a01095b
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
7 changed files with 18 additions and 3 deletions

View File

@ -258,7 +258,7 @@ const AutoType = {
if (entries.length === 0) { if (entries.length === 0) {
if (evt.filter.useUrl) { if (evt.filter.useUrl) {
evt.filter.useUrl = false; evt.filter.useUrl = false;
if (evt.filter.title) { if (evt.filter.title && AppSettingsModel.autoTypeTitleFilterEnabled) {
evt.filter.useTitle = true; evt.filter.useTitle = true;
} }
} }

View File

@ -325,7 +325,7 @@ async function findEntry(request, returnIfOneMatch, filterOptions) {
if (!entries.length) { if (!entries.length) {
if (AppSettingsModel.extensionFocusIfEmpty) { if (AppSettingsModel.extensionFocusIfEmpty) {
filter.useUrl = false; filter.useUrl = false;
if (filter.title) { if (filter.title && AppSettingsModel.autoTypeTitleFilterEnabled) {
filter.useTitle = true; filter.useTitle = true;
entries = filter.getEntries(); entries = filter.getEntries();
if (!entries.length) { if (!entries.length) {

View File

@ -18,6 +18,7 @@ const DefaultAppSettings = {
colorfulIcons: false, // use colorful custom icons instead of grayscale colorfulIcons: false, // use colorful custom icons instead of grayscale
useMarkdown: true, // use Markdown in Notes field useMarkdown: true, // use Markdown in Notes field
directAutotype: true, // if only one matching entry is found, select that one automatically directAutotype: true, // if only one matching entry is found, select that one automatically
autoTypeTitleFilterEnabled: true, // enable the title filtering in auto-type by default
titlebarStyle: 'default', // window titlebar style titlebarStyle: 'default', // window titlebar style
lockOnMinimize: true, // lock the app when it's minimized lockOnMinimize: true, // lock the app when it's minimized
lockOnCopy: false, // lock the app after a password was copied lockOnCopy: false, // lock the app after a password was copied

View File

@ -432,7 +432,8 @@
"setGenColorfulIcons": "Colorful custom icons in the list", "setGenColorfulIcons": "Colorful custom icons in the list",
"setGenUseMarkdown": "Markdown in notes", "setGenUseMarkdown": "Markdown in notes",
"setGenUseGroupIconForEntries": "Automatically use group icon for new entries", "setGenUseGroupIconForEntries": "Automatically use group icon for new entries",
"setGenDirectAutotype": "If only one matching entry is found, select that one automatically for Autotype", "setGenDirectAutotype": "If only one matching entry is found, select that one automatically for auto-type",
"setGenAutoTypeTitleFilterEnabled": "Filter entries by title in auto-type",
"setGenFunction": "Function", "setGenFunction": "Function",
"setGenAutoSyncOnClose": "Automatically save and sync on close", "setGenAutoSyncOnClose": "Automatically save and sync on close",
"setGenAutoSyncTimer": "Automatically save and sync periodically", "setGenAutoSyncTimer": "Automatically save and sync periodically",

View File

@ -53,6 +53,7 @@ class SettingsGeneralView extends View {
'change .settings__general-use-markdown': 'changeUseMarkdown', 'change .settings__general-use-markdown': 'changeUseMarkdown',
'change .settings__general-use-group-icon-for-entries': 'changeUseGroupIconForEntries', 'change .settings__general-use-group-icon-for-entries': 'changeUseGroupIconForEntries',
'change .settings__general-direct-autotype': 'changeDirectAutotype', 'change .settings__general-direct-autotype': 'changeDirectAutotype',
'change .settings__general-autotype-title-filter': 'changeAutoTypeTitleFilter',
'change .settings__general-field-label-dblclick-autotype': 'change .settings__general-field-label-dblclick-autotype':
'changeFieldLabelDblClickAutoType', 'changeFieldLabelDblClickAutoType',
'change .settings__general-device-owner-auth': 'changeDeviceOwnerAuth', 'change .settings__general-device-owner-auth': 'changeDeviceOwnerAuth',
@ -135,6 +136,7 @@ class SettingsGeneralView extends View {
useMarkdown: AppSettingsModel.useMarkdown, useMarkdown: AppSettingsModel.useMarkdown,
useGroupIconForEntries: AppSettingsModel.useGroupIconForEntries, useGroupIconForEntries: AppSettingsModel.useGroupIconForEntries,
directAutotype: AppSettingsModel.directAutotype, directAutotype: AppSettingsModel.directAutotype,
autoTypeTitleFilterEnabled: AppSettingsModel.autoTypeTitleFilterEnabled,
fieldLabelDblClickAutoType: AppSettingsModel.fieldLabelDblClickAutoType, fieldLabelDblClickAutoType: AppSettingsModel.fieldLabelDblClickAutoType,
supportsTitleBarStyles: Features.supportsTitleBarStyles, supportsTitleBarStyles: Features.supportsTitleBarStyles,
supportsCustomTitleBarAndDraggableWindow: supportsCustomTitleBarAndDraggableWindow:
@ -431,6 +433,11 @@ class SettingsGeneralView extends View {
AppSettingsModel.directAutotype = directAutotype; AppSettingsModel.directAutotype = directAutotype;
} }
changeAutoTypeTitleFilter(e) {
const autoTypeTitleFilterEnabled = e.target.checked || false;
AppSettingsModel.autoTypeTitleFilterEnabled = autoTypeTitleFilterEnabled;
}
changeFieldLabelDblClickAutoType(e) { changeFieldLabelDblClickAutoType(e) {
const fieldLabelDblClickAutoType = e.target.checked || false; const fieldLabelDblClickAutoType = e.target.checked || false;
AppSettingsModel.fieldLabelDblClickAutoType = fieldLabelDblClickAutoType; AppSettingsModel.fieldLabelDblClickAutoType = fieldLabelDblClickAutoType;

View File

@ -169,6 +169,11 @@
id="settings__general-direct-autotype" {{#if directAutotype}}checked{{/if}} /> id="settings__general-direct-autotype" {{#if directAutotype}}checked{{/if}} />
<label for="settings__general-direct-autotype">{{res 'setGenDirectAutotype'}}</label> <label for="settings__general-direct-autotype">{{res 'setGenDirectAutotype'}}</label>
</div> </div>
<div>
<input type="checkbox" class="settings__input input-base settings__general-autotype-title-filter"
id="settings__general-autotype-title-filter" {{#if autoTypeTitleFilterEnabled}}checked{{/if}} />
<label for="settings__general-autotype-title-filter">{{res 'setGenAutoTypeTitleFilterEnabled'}}</label>
</div>
<div> <div>
<input type="checkbox" class="settings__input input-base settings__general-field-label-dblclick-autotype" <input type="checkbox" class="settings__input input-base settings__general-field-label-dblclick-autotype"
id="settings__general-field-label-dblclick-autotype" {{#if fieldLabelDblClickAutoType}}checked{{/if}} /> id="settings__general-field-label-dblclick-autotype" {{#if fieldLabelDblClickAutoType}}checked{{/if}} />

View File

@ -1,6 +1,7 @@
Release notes Release notes
------------- -------------
##### v1.18.4 (TBD) ##### v1.18.4 (TBD)
`+` #1814: option to disable auto-type title filter by default
`-` fix #1810: extension connection on old macOS (10.11) `-` fix #1810: extension connection on old macOS (10.11)
`-` fix #1813: custom icon selection `-` fix #1813: custom icon selection
`-` fix #1811: app doesn't quit during update `-` fix #1811: app doesn't quit during update