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

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

View File

@ -6,6 +6,8 @@ export type ISystemConfig = {
'memories.exiftool_no_local': boolean; 'memories.exiftool_no_local': boolean;
'memories.index.mode': string; 'memories.index.mode': string;
'memories.index.path': 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; 'memories.gis_type': number;

View File

@ -118,6 +118,24 @@
{{ t('memories', 'Clear all existing index tables:') }} {{ t('memories', 'Clear all existing index tables:') }}
<br /> <br />
<code>occ memories:index --clear</code> <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> </div>
</template> </template>