feat(indexing): allow to ignore dot and at starting files (UI)

pull/1015/head
Saninn Salas Diaz 2024-01-22 13:46:33 +01:00
parent b044cc2cba
commit 0d16140ca5
3 changed files with 23 additions and 0 deletions

View File

@ -34,6 +34,9 @@ class SystemConfig
// Path to index (only used if indexing mode is 3)
'memories.index.path' => '/',
'memories.index.ignore_file_with_starting_dot' => false,
'memories.index.ignore_file_with_starting_at' => false,
// Places database type identifier
'memories.gis_type' => -1,

View File

@ -6,6 +6,8 @@ export type ISystemConfig = {
'memories.exiftool_no_local': boolean;
'memories.index.mode': string;
'memories.index.path': string;
'memories.index.ignore_file_with_starting_dot': boolean;
'memories.index.ignore_file_with_starting_at': boolean;
'memories.gis_type': number;

View File

@ -118,6 +118,24 @@
{{ t('memories', 'Clear all existing index tables:') }}
<br />
<code>occ memories:index --clear</code>
<h3>Ignore:</h3>
<NcCheckboxRadioSwitch
:checked.sync="config['memories.index.ignore_file_with_starting_dot']"
@update:checked="update('memories.index.ignore_file_with_starting_dot')"
type="switch"
>
{{ t('memories', `Ignore files and folders starting with "."`) }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
:checked.sync="config['memories.index.ignore_file_with_starting_at']"
@update:checked="update('memories.index.ignore_file_with_starting_at')"
type="switch"
>
{{ t('memories', `Ignore files and folders starting with "@"`) }}
</NcCheckboxRadioSwitch>
</div>
</template>