import * as React from "react"; import { InfioSettings } from '../../types/settings'; import SettingsItem from "./SettingsItem"; type Props = { settings: InfioSettings; updateSettings: (update: Partial) => void; errors: Map; } export default function PrivacySettings({ settings, updateSettings, errors }: Props): React.JSX.Element { return ( <>

This field enables you to specify files and directories that the plugin should ignore. When you open any of these files, the plugin will automatically disable itself and display a 'disabled' status in the bottom menu. Enter one pattern per line. These patterns function similar to glob patterns. Here are some frequently used patterns:

  • path/to/folder/**: This pattern ignores all files and sub folders within this folder.
  • "**/secret/**": This pattern ignores any file located inside a 'secret' directory, regardless of its location in the path.
  • !path/to/folder/example.md: This pattern explicitly undoes an ignore, making this file noticeable to the plugin.
  • **/*Python*.md: This pattern ignores any file with 'Python' in its name, irrespective of its location.
} display={"block"} errorMessage={errors.get("ignoredFilePatterns")} >